/**
 * Blog Archive & Single Post Styles
 * Matches Riverside Farm design system and shop styles
 */

/* ============================================
   Reset & Conflict Prevention
   ============================================ */
/* Ensure blog styles take precedence over plugin styles */
.rf-blog-wrapper *,
.rf-single-post-wrapper *,
.rf-blog-post--featured *,
.rf-blog-post--regular * {
    box-sizing: border-box;
}

/* Reset margins and paddings that might conflict */
.rf-blog-wrapper article,
.rf-blog-wrapper section,
.rf-blog-wrapper header,
.rf-blog-wrapper footer {
    margin: 0;
    padding: 0;
}

/* Ensure images are responsive */
.rf-blog-wrapper img,
.rf-single-post-wrapper img {
    max-width: 100%;
    height: auto;
}

/* Override any conflicting link styles */
.rf-blog-wrapper a,
.rf-single-post-wrapper a {
    text-decoration: none;
}

.rf-single-post-content a {
    text-decoration: underline !important;
}

/* Ensure proper list styles in content */
.rf-single-post-content ul,
.rf-single-post-content ol {
    list-style-position: outside;
}

/* ============================================
   Blog Wrapper & Layout
   ============================================ */
.rf-blog-wrapper {
    background: #F3F3F1;
    padding: 2rem 0 4rem;
    padding-top: 180px; /* Account for fixed navigation */
    min-height: 60vh;
}
.category .rf-blog-wrapper{
    padding-top: 130px;
}
.rf-blog-wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Blog Header (Main Blog Page - No Background)
   ============================================ */
.rf-blog-header {
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem 0;
}
body .rf-blog-wrapper header{
    margin-bottom: 2rem;
}
.rf-blog-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--rf-text-primary, #28333A);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.rf-blog-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-body, #595954);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Category Page Header (With Background Image)
   ============================================ */
.rf-blog-header--category.rf-blog-header--has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5.6rem 2rem;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
}

.rf-blog-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.rf-blog-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rf-blog-header--has-bg .rf-blog-title {
    color: white;
}

.rf-blog-header--has-bg .rf-blog-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.rf-blog-category-label {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

/* ============================================
   Breadcrumbs (Same style as shop)
   ============================================ */
.rf-breadcrumbs {
    margin: 0 auto 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    display: inline-flex;
    width: auto;
}

.rf-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.rf-breadcrumb-item {
    display: flex;
    align-items: center;
}

.rf-breadcrumb-separator {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    margin: 0 2px;
}

.rf-breadcrumb-separator svg {
    width: 14px;
    height: 14px;
}

.rf-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    padding: 11px;
    transition: color 0.2s ease;
}

.rf-breadcrumb-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rf-breadcrumb-home {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 24px;
    border-radius: 100px;
    margin: 0 7px;
    background: #1a2227;
}

.rf-breadcrumb-home:hover {
    color: #ffffff;
    background: #000000;
    text-decoration: none;
}

.rf-breadcrumb-home:active {
    transform: scale(0.98);
}

.rf-breadcrumb-home svg {
    width: 16px;
    height: 16px;
}

.rf-breadcrumb-current .rf-breadcrumb-text {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rf-breadcrumb-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ============================================
   Category Filter Buttons (Same as shop)
   ============================================ */
.rf-blog-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.rf-blog-category-button {
    display: inline-flex;
    align-items: center;
    padding: 0.275rem 1rem;
    background: transparent;
    color: var(--color-text-light, #7a7a73);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid #d0d0d0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rf-blog-category-button:hover {
    background: rgba(34, 136, 201, 0.08);
    color: var(--color-primary, #2288c9);
    border-color: var(--color-primary, #2288c9);
}

.rf-blog-category-button--active {
    background: rgba(34, 136, 201, 0.12);
    color: var(--color-primary, #2288c9);
    border-color: var(--color-primary, #2288c9);
    font-weight: 600;
}

.rf-blog-category-button:active {
    transform: scale(0.98);
}

/* ============================================
   Blog Posts Grid
   ============================================ */
.rf-blog-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure all blog posts are visible regardless of WordPress classes */
.rf-blog-post,
article.rf-blog-post {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* ============================================
   Blog Post Card - Featured (Image Top)
   ============================================ */
.rf-blog-post--featured,
article.rf-blog-post--featured,
.post.rf-blog-post--featured {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
}

.rf-blog-post--featured:hover,
article.rf-blog-post--featured:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

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

.rf-blog-post--featured .rf-blog-post-image {
    width: 100%;
    height: 480px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.rf-blog-post--featured .rf-blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rf-blog-post--featured:hover .rf-blog-post-image img {
    transform: scale(1.05);
}

.rf-blog-post--featured .rf-blog-post-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Blog Post Card - Regular (Image Left)
   ============================================ */
.rf-blog-post--regular,
article.rf-blog-post--regular,
.post.rf-blog-post--regular {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rf-blog-post--regular:hover,
article.rf-blog-post--regular:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.rf-blog-post--regular .rf-blog-post-link,
article.rf-blog-post--regular .rf-blog-post-link {
    text-decoration: none;
    color: inherit;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    min-height: 300px;
    width: 100%;
}

.rf-blog-post--regular .rf-blog-post-image,
article.rf-blog-post--regular .rf-blog-post-image {
    width: 40%;
    min-width: 320px;
    max-width: 450px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.rf-blog-post--regular .rf-blog-post-image img,
article.rf-blog-post--regular .rf-blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rf-blog-post--regular:hover .rf-blog-post-image img,
article.rf-blog-post--regular:hover .rf-blog-post-image img {
    transform: scale(1.05);
}

.rf-blog-post--regular .rf-blog-post-content,
article.rf-blog-post--regular .rf-blog-post-content {
    padding: 2.5rem 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

/* ============================================
   Blog Post Content Elements
   ============================================ */
.rf-blog-post-category {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #9d8b6c;
    margin-bottom: 0.875rem;
}

.rf-blog-post-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
    color: #2d2d2a;
    margin: 0 0 1.25rem 0;
    transition: color 0.2s ease;
}

.rf-blog-post--featured .rf-blog-post-title {
    font-size: 2.25rem;
}

.rf-blog-post-link:hover .rf-blog-post-title {
    color: #9d8b6c;
}

.rf-blog-post-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #595954;
    margin-bottom: 1.5rem;
}

.rf-blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #7a7a73;
}

.rf-blog-post-author,
.rf-blog-post-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.rf-blog-post-author svg,
.rf-blog-post-date svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ============================================
   No Posts Message
   ============================================ */
.rf-no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    color: var(--color-text-body, #595954);
}

/* ============================================
   Pagination
   ============================================ */
.rf-pagination,
.pagination,
nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-top: 3rem !important;
    flex-wrap: wrap !important;
    border: none !important;
    white-space: normal !important;
}

.rf-pagination .page-numbers,
.pagination .page-numbers,
nav.woocommerce-pagination ul li,
.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    background: white !important;
    color: #999 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    border: 1px solid #e8e8e8 !important;
    border-right: 1px solid #e8e8e8 !important;
    border-left: 1px solid #e8e8e8 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
}

.rf-pagination .page-numbers:hover:not(.current),
.pagination .page-numbers:hover:not(.current),
nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul li span:hover:not(.current),
.woocommerce nav.woocommerce-pagination ul li span:hover:not(.current) {
    background: #f5f5f5 !important;
    color: var(--color-text-body, #595954) !important;
    border-color: #d0d0d0 !important;
    border-right-color: #d0d0d0 !important;
    border-left-color: #d0d0d0 !important;
    transform: scale(1.05) !important;
}

.rf-pagination .page-numbers.current,
.pagination .page-numbers.current,
nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li a.current,
.woocommerce nav.woocommerce-pagination ul li a.current {
    background: var(--color-primary, #2288c9) !important;
    color: white !important;
    border-color: var(--color-primary, #2288c9) !important;
    border-right-color: var(--color-primary, #2288c9) !important;
    border-left-color: var(--color-primary, #2288c9) !important;
    font-weight: 600 !important;
    cursor: default !important;
}

.rf-pagination .page-numbers.prev,
.rf-pagination .page-numbers.next,
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    color: #666;
}

.rf-pagination .page-numbers.prev:hover,
.rf-pagination .page-numbers.next:hover,
.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: #f5f5f5;
    color: var(--color-text-body, #595954);
}

.rf-pagination .page-numbers svg,
.pagination .page-numbers svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Single Post Page
   ============================================ */
.rf-single-post-wrapper {
    background: #F3F3F1;
    min-height: 60vh;
    padding-top: 125px; /* Account for fixed navigation */
    padding-bottom: 80px;
}

/* Back Button */
.rf-back-button-wrapper {
    max-width: 950px;
    margin: 0 auto;
    padding: 1.5rem 0 1rem 0;
}

.rf-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    color: var(--color-text-body, #595954);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: var(--font-body);
    border: 1px solid #e0e0e0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.rf-back-button:hover {
    background: var(--color-primary, #2288c9);
    color: white;
    border-color: var(--color-primary, #2288c9);
    transform: translateX(-3px);
    box-shadow: 0 6px 12px rgba(34, 136, 201, 0.2);
}

.rf-back-button:active {
    transform: translateX(-1px);
    transition-duration: 0.1s;
}

.rf-back-button svg {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rf-back-button:hover svg {
    transform: translateX(-3px);
}

.rf-single-post-hero {
    max-width: 950px;
    margin: 0 auto 0 auto;
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.rf-single-post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.rf-single-post {
    background: white;
    border-radius: 0 0 16px 16px;
    max-width: 950px;
    margin: 0 auto 2rem auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.rf-single-post-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
    padding-top:0;
}

/* Single Post Breadcrumbs */
.rf-single-breadcrumbs {
    background: #28333A;
    margin: 0 -2rem 2rem -2rem;
    padding: .8rem 2rem;
    border-radius: 0;
}

.rf-single-breadcrumbs .rf-breadcrumb-link,
.rf-single-breadcrumbs .rf-breadcrumb-separator,
.rf-single-breadcrumbs .rf-breadcrumb-text {
    color: rgba(255, 255, 255, 0.8);
}

.rf-single-breadcrumbs .rf-breadcrumb-home {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.rf-single-breadcrumbs .rf-breadcrumb-home:hover {
    background: var(--color-primary, #2288c9);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 136, 201, 0.2);
}

.rf-single-breadcrumbs .rf-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.4);
}

.rf-single-breadcrumbs .rf-breadcrumb-link:hover {
    color: white;
}

/* Single Post Header */
.rf-single-post-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.rf-single-post-category {
    margin-bottom: 1rem;
}

.rf-single-post-category a {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #9d8b6c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rf-single-post-category a:hover {
    color: #8a7a5d;
}

.rf-single-post-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-heading, #2d2d2a);
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
}

.rf-single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light, #7a7a73);
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f3f1;
}

.rf-single-post-author,
.rf-single-post-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.rf-single-post-author svg,
.rf-single-post-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Single Post Content */
.rf-single-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-body, #595954);
    margin-bottom: 2.5rem;
}

.rf-single-post-content p {
    margin-bottom: 1.5rem;
    font-size: .98rem;
}
.rf-blog-category-button:hover, .rf-post-nav-link:hover{
    text-decoration: none;
}
.rf-single-post-content h2,
.rf-single-post-content h3,
.rf-single-post-content h4,
.rf-single-post-content h5,
.rf-single-post-content h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-heading, #2d2d2a);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.rf-single-post-content h2 {
    font-size: 1.5rem;
}

.rf-single-post-content h3 {
    font-size: 1.2rem;
}

.rf-single-post-content h4 {
    font-size: 1.1rem;
}

.rf-single-post-content h5 {
    font-size: 1.125rem;
}

.rf-single-post-content h6 {
    font-size: 1rem;
}

.rf-single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0;
}

.rf-single-post-content ul,
.rf-single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.5;  
    font-size: .9rem;
}

.rf-single-post-content ul {
    list-style-type: disc;
}

.rf-single-post-content ol {
    list-style-type: decimal;
}

.rf-single-post-content li {
    margin-bottom: 0.7rem;
    padding-left: 0.5rem;
}

.rf-single-post-content li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.rf-single-post-content ul ul,
.rf-single-post-content ol ol,
.rf-single-post-content ul ol,
.rf-single-post-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.rf-single-post-content ul ul {
    list-style-type: circle;
}

.rf-single-post-content ul ul ul {
    list-style-type: square;
}

/* List items with links */
.rf-single-post-content li a {
    font-weight: 500;
}

.rf-single-post-content blockquote, .rf-single-post-content blockquote p {
    border-left: 4px solid var(--color-primary, #2288c9);
    padding-left: 0;
    margin: 2rem 0;
    font-style: normal;
    line-height: 1.4em;
    font-size: 30px;
    color: var(--color-text-light, #7a7a73);
    border: none;
    color: #2288c9;
}

.rf-single-post-content a {
    color: var(--color-primary, #2288c9);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.rf-single-post-content a:hover {
    color: var(--color-primary-dark, #105a88);
}

/* Horizontal Rule */
.rf-single-post-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2.5rem 0;
    opacity: 0.6;
}

/* Code Blocks */
.rf-single-post-content pre {
    background: #2d2d2a;
    color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.rf-single-post-content code {
    background: #f3f3f1;
    color: #d63384;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
}

.rf-single-post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Tables */
.rf-single-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rf-single-post-content table thead {
    background: var(--color-primary, #2288c9);
    color: white;
}

.rf-single-post-content table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rf-single-post-content table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.rf-single-post-content table tbody tr:last-child td {
    border-bottom: none;
}

.rf-single-post-content table tbody tr:hover {
    background: #f8f9fa;
}

/* Figures and Captions */
.rf-single-post-content figure {
    margin: 2rem 0;
}

.rf-single-post-content figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-text-light, #7a7a73);
    font-style: italic;
    text-align: center;
}

/* Definition Lists */
.rf-single-post-content dl {
    margin: 1.5rem 0;
}

.rf-single-post-content dt {
    font-weight: 600;
    color: var(--color-text-heading, #2d2d2a);
    margin-top: 1rem;
}

.rf-single-post-content dt:first-child {
    margin-top: 0;
}

.rf-single-post-content dd {
    margin-left: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-body, #595954);
}

/* Text Formatting */
.rf-single-post-content mark {
    background: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: inherit;
}

.rf-single-post-content kbd {
    background: #2d2d2a;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rf-single-post-content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

.rf-single-post-content small {
    font-size: 0.875em;
    color: var(--color-text-light, #7a7a73);
}

.rf-single-post-content sub,
.rf-single-post-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.rf-single-post-content sup {
    top: -0.5em;
}

.rf-single-post-content sub {
    bottom: -0.25em;
}

/* Video Embeds / iframes */
.rf-single-post-content iframe {
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
}

.rf-single-post-content .wp-block-embed,
.rf-single-post-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 8px;
}

.rf-single-post-content .wp-block-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Address Block */
.rf-single-post-content address {
    font-style: normal;
    line-height: 1.8;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-left: 3px solid var(--color-primary, #2288c9);
    border-radius: 0 8px 8px 0;
}

/* Single Post Footer */
.rf-single-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.rf-tags-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: var(--color-text-body, #595954);
}

.rf-tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: #f3f3f1;
    color: var(--color-text-body, #595954);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.rf-tag-link:hover {
    background: var(--color-primary, #2288c9);
    color: white;
}

/* Post Navigation */
.rf-single-post-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f3f3f1;
}

.rf-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f3f3f1;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.rf-post-nav-link:hover {
    background: var(--color-primary, #2288c9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 136, 201, 0.15);
}

.rf-post-nav-prev {
    text-align: left;
}

.rf-post-nav-next {
    text-align: right;
}

.rf-post-nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light, #7a7a73);
}

.rf-post-nav-link:hover .rf-post-nav-label {
    color: white;
}

.rf-post-nav-next .rf-post-nav-label {
    justify-content: flex-end;
}

.rf-post-nav-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-heading, #2d2d2a);
}

.rf-post-nav-link:hover .rf-post-nav-title {
    color: white;
}
body nav.woocommerce-pagination ul li a:hover, body .woocommerce nav.woocommerce-pagination ul li a:hover{
    border-color: var(--color-primary, #2288c9) !important;
}
/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .rf-blog-post--featured .rf-blog-post-content{
        padding: 2rem;
    }
    .rf-blog-title {
        font-size: 2rem;
    }
    
    .rf-blog-subtitle {
        font-size: 1rem;
    }
    
    .rf-blog-posts-grid {
        gap: 1.5rem;
    }
    
    .rf-blog-post--featured .rf-blog-post-image {
        height: 250px;
    }
    
    .rf-blog-post--regular .rf-blog-post-link,
    article.rf-blog-post--regular .rf-blog-post-link {
        flex-direction: column !important;
        min-height: auto;
    }
    
    .rf-blog-post--regular .rf-blog-post-image,
    article.rf-blog-post--regular .rf-blog-post-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 200px;
    }
    
    .rf-blog-post--regular .rf-blog-post-content,
    article.rf-blog-post--regular .rf-blog-post-content {
        padding: 1.5rem;
    }
    
    .rf-blog-category-buttons {
        gap: 0.375rem;
    }
    
    .rf-blog-category-button {
        font-size: 0.75rem;
        padding: 0.3rem 0.875rem;
    }
    
    /* Single Post - Keep image and breadcrumbs touching */
    .rf-single-post-wrapper {
        padding-top: 128px;
    }
    
    /* Back Button on Mobile */
    .rf-back-button-wrapper {
        padding: 1rem 1.5rem 0.75rem 1.5rem;
    }
    
    .rf-back-button {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .rf-single-post-hero {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .rf-single-post {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .rf-single-post-container {
        padding: 2rem 1.5rem;
        padding-top: 0;
    }
    
    .rf-single-post-title {
        font-size: 2rem;
    }
    
    .rf-single-post-content {
        font-size: 1rem;
    }
    
    .rf-single-post-navigation {
        grid-template-columns: 1fr;
    }
    
    /* Scrollable Breadcrumbs on Mobile */
    .rf-breadcrumbs {
        font-size: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .rf-breadcrumbs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .rf-breadcrumb-list {
        flex-wrap: nowrap;
        white-space: nowrap;
        min-width: min-content;
    }
    
    .rf-breadcrumb-link,
    .rf-breadcrumb-home {
        padding: 8px 12px;
        white-space: nowrap;
    }
    
    .rf-single-breadcrumbs {
        padding: 1rem 1.5rem;
        border-radius: 0;
    }
    
    /* Center aligned images on mobile */
    .rf-single-post-content .wp-block-image,
    .rf-single-post-content .wp-block-image.alignleft,
    .rf-single-post-content .wp-block-image.alignright {
        float: none;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }
    
    .rf-single-post-content .wp-block-image img,
    .rf-single-post-content .wp-block-image.alignleft img,
    .rf-single-post-content .wp-block-image.alignright img {
        display: block;
        margin: 0 auto;
    }
    
    /* Tables scroll horizontally on mobile */
    .rf-single-post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .rf-blog-wrapper .container {
        padding: 0 1rem;
    }
    
    .rf-blog-header {
        padding: 1.5rem 0;
    }
    
    .rf-blog-title {
        font-size: 1.75rem;
    }
    
    .rf-blog-post-title {
        font-size: 1.25rem;
    }
    
    .rf-blog-post--featured .rf-blog-post-title {
        font-size: 1.5rem;
    }
    
    .rf-blog-post--featured .rf-blog-post-content,
    .rf-blog-post--regular .rf-blog-post-content,
    article.rf-blog-post--regular .rf-blog-post-content {
        padding: 1.25rem;
    }
    
    .rf-single-post-title {
        font-size: 1.75rem;
    }
}

