/**
 * ==========================================================================
 * Blog Specific Styles (blog_detail, blog_front, listing)
 * ==========================================================================
 */

.blog-standard .blog-details blockquote,
.blog-start blockquote {
    font-weight: 500 !important;
    margin-left: 60px !important;
    margin-bottom: 7% !important;
    margin-top: 7% !important;
    padding-left: 40px !important;
    border-left: 4px solid var(--base-color) !important;
    font-family: var(--alt-font);
    color: var(--dark-gray);
    border-color: var(--base-color) !important;
}

.blog-start h1,
.blog-start h2,
.blog-start h3,
.blog-start h4,
.blog-start h5,
.blog-start h6 {
    font-weight: 600 !important;
    font-size: 25px;
    color: var(--dark-gray);
    margin-top: 30px;
    margin-bottom: 30px;
}

.popular-post-sidebar li .media-body {
    line-height: normal;
    padding-left: 0px !important;
}

.sticky-blogg {
    top: 17%;
    z-index: 10;
}

.toc-box-blog {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.toc-box-blog::-webkit-scrollbar {
    display: none;
}

.blog-details li {
    list-style: disc !important;
    margin: 10px !important;
}

.toc-link.active {
    color: var(--base-color) !important;
    font-weight: 700;
    position: relative;
    border-left: 3px solid var(--base-color);
    padding-left: 5px;
}

.page-title.bg-overlay {
    position: relative;
    z-index: 0;
    background-image: url('/uploads/images/1747642142_682ae71e4b2ac.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 400px;
    width: 100%;
    display: block;
}

@media only screen and (max-width: 1199px) and (min-width: 768px) {
    .page-title.bg-overlay {
        height: 340px;
    }
}

@media only screen and (min-width: 1600px) {
    .page-title.bg-overlay {
        height: 480px;
    }
}

.page-title.bg-overlay::before {
    display: none;
}

@media only screen and (max-width: 767px) {
    .page-title.bg-overlay {
        display: none;
    }
    .mobile-hero-img {
        display: block;
        width: 100%;
        height: auto;
    }
}

@media only screen and (min-width: 768px) {
    .mobile-hero-img {
        display: none;
    }
}

label.search-labels {
    font-weight: 700;
    font-size: 20px;
}

/* ==========================================================================
   Blog Detail - Professional Article Layout (rb-*)
   ========================================================================== */
.rb-article-section {
    --rb-accent: var(--base-color, #e99022);
    --rb-ink: #1d1d1d;
    --rb-body: #3f3f46;
    --rb-muted: #71717a;
    --rb-line: rgba(0, 0, 0, 0.08);
    padding-top: 32px;
    padding-bottom: 60px;
}

/* Reading progress */
.rb-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--base-color, #e99022);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Header */
.rb-article-header {
    max-width: 860px;
    margin: 0 auto 32px;
    text-align: center;
}

.rb-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--rb-muted);
    margin-bottom: 20px;
}

.rb-breadcrumb a {
    color: var(--rb-muted);
    text-decoration: none;
}

.rb-breadcrumb a:hover {
    color: var(--rb-accent);
}

.rb-breadcrumb i {
    font-size: 9px;
    opacity: 0.6;
}

.rb-breadcrumb span {
    color: var(--rb-ink);
    font-weight: 500;
}

.rb-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.rb-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(233, 144, 34, 0.12);
    color: var(--rb-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rb-article-section .rb-title {
    font-size: clamp(28px, 4vw, 44px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    color: var(--rb-ink);
    margin: 0 0 20px !important;
}

.rb-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 14px;
    color: var(--rb-muted);
}

.rb-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rb-meta-author strong {
    color: var(--rb-ink);
    font-weight: 600;
}

.rb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rb-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.rb-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rb-meta-item i {
    color: var(--rb-accent);
}

/* Hero image */
.rb-hero {
    margin: 0 0 48px;
    border-radius: 20px;
    overflow: hidden;
    background: #f1ece4;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.rb-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Article content typography */
.rb-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--rb-body);
    overflow-wrap: break-word;
}

.rb-content > *:first-child {
    margin-top: 0 !important;
}

.rb-content p {
    margin: 0 0 22px;
}

.rb-content h2,
.rb-content h3,
.rb-content h4,
.rb-content h5,
.rb-content h6 {
    color: var(--rb-ink);
    font-weight: 700 !important;
    letter-spacing: -0.3px;
    scroll-margin-top: 110px;
}

.rb-content h2 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin: 44px 0 16px !important;
}

.rb-content h3 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin: 32px 0 12px !important;
}

.rb-content h4,
.rb-content h5,
.rb-content h6 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 26px 0 10px !important;
}

.rb-content a {
    color: var(--rb-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rb-content strong {
    color: var(--rb-ink);
}

.rb-content ul,
.rb-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.rb-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.rb-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.rb-content li::marker {
    color: var(--rb-accent);
}

.rb-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 12px 0 24px;
}

.rb-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--rb-accent);
    background: rgba(233, 144, 34, 0.07);
    border-radius: 0 12px 12px 0;
    font-size: 19px;
    font-style: italic;
    color: var(--rb-ink);
}

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

.rb-content table {
    width: 100%;
    margin: 0 0 24px;
    border-collapse: collapse;
    font-size: 15px;
}

.rb-content th,
.rb-content td {
    padding: 10px 14px;
    border: 1px solid var(--rb-line);
}

.rb-content th {
    background: rgba(0, 0, 0, 0.03);
    color: var(--rb-ink);
    font-weight: 600;
}

/* Section title */
.rb-section-title {
    display: block;
    font-size: 26px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #1d1d1d;
    margin: 0 0 20px !important;
    letter-spacing: -0.3px;
}

/* FAQ */
.rb-faq {
    margin-top: 56px;
}

.rb-faq-item {
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.rb-faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.rb-faq-question-wrap {
    display: block;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.rb-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--rb-ink);
    cursor: pointer;
}

.rb-faq-question i {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--rb-accent);
    transition: transform 0.25s ease;
}

.rb-faq-question:not(.collapsed) i {
    transform: rotate(180deg);
}

.rb-faq-answer {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--rb-body);
}

/* Share */
.rb-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid var(--rb-line);
    border-bottom: 1px solid var(--rb-line);
}

.rb-share-label {
    font-weight: 600;
    color: var(--rb-ink);
}

.rb-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rb-share a,
.rb-share button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f1ec;
    border: 1px solid var(--rb-line);
    color: #1d1d1d;
    font-size: 15px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rb-share a:hover,
.rb-share button:hover,
.rb-share button.copied {
    background: var(--base-color, #e99022);
    border-color: var(--base-color, #e99022);
    color: #fff;
    transform: translateY(-2px);
}

/* Sidebar */
.rb-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rb-card {
    background: #fff;
    border: 1px solid var(--rb-line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.rb-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--rb-ink);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--rb-line);
}

.rb-card-title i {
    color: var(--rb-accent);
}

.rb-toc {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.rb-toc-link {
    display: block;
    padding: 8px 12px;
    border-left: 2px solid var(--rb-line);
    font-size: 14px;
    line-height: 1.45;
    color: var(--rb-muted) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rb-toc-link.is-sub {
    padding-left: 26px;
    font-size: 13px;
}

.rb-toc-link:hover {
    color: var(--rb-ink) !important;
    border-left-color: rgba(233, 144, 34, 0.5);
}

.rb-toc-link.active {
    color: var(--rb-accent) !important;
    font-weight: 600;
    border-left-color: var(--rb-accent);
    background: rgba(233, 144, 34, 0.07);
}

.rb-cta-card {
    background: #1d1d1d;
    border-color: #1d1d1d;
    color: #c9c9cc;
}

.rb-cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.rb-cta-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.rb-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.rb-btn-primary {
    background: var(--base-color, #e99022);
    color: #fff !important;
}

.rb-btn-primary:hover {
    filter: brightness(1.08);
}

.rb-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff !important;
}

.rb-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Related posts */
.rb-related-section {
    padding: 70px 0;
    background: #f6f2ea;
}

.rb-related-head {
    text-align: center;
    margin-bottom: 36px;
}

.rb-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--base-color, #e99022);
    margin-bottom: 6px;
}

.rb-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rb-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.rb-post-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee7dc;
}

.rb-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rb-post-card:hover .rb-post-img img {
    transform: scale(1.05);
}

.rb-post-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: #1d1d1d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rb-post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.rb-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #71717a;
    margin-bottom: 8px;
}

.rb-post-date i {
    color: var(--base-color, #e99022);
}

.rb-related-section .rb-post-title,
.rb-listing-section .rb-post-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #1d1d1d;
    margin: 0 0 10px !important;
    letter-spacing: -0.2px;
}

.rb-post-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #52525b;
    margin-bottom: 16px;
}

.rb-post-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--base-color, #e99022);
}

.rb-post-link i {
    transition: transform 0.2s ease;
}

.rb-post-card:hover .rb-post-link i {
    transform: translateX(3px);
}

/* Mobile Table of Contents (sticky collapsible) */
.rb-toc-mobile {
    display: none;
}

@media (max-width: 991px) {
    .rb-toc-mobile {
        display: block;
        position: sticky;
        top: 76px;
        z-index: 1035;
        margin: 0 0 24px;
    }

    .rb-toc-card {
        display: none !important;
    }
}

.rb-toc-mobile-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1d1d1d;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.rb-toc-mobile-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.rb-toc-mobile-toggle span i {
    color: var(--base-color, #e99022);
}

.rb-toc-mobile-chevron {
    flex-shrink: 0;
    font-size: 12px;
    transition: transform 0.25s ease;
}

.rb-toc-mobile-toggle.active {
    border-radius: 12px 12px 0 0;
    box-shadow: none;
}

.rb-toc-mobile-toggle.active .rb-toc-mobile-chevron {
    transform: rotate(180deg);
}

.rb-toc-mobile-panel {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
    border-radius: 0 0 12px 12px;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
}

.rb-toc-mobile-panel.open {
    max-height: 60vh;
    overflow-y: auto;
    visibility: visible;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.rb-toc-mobile-panel .rb-toc-link {
    padding: 12px 18px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rb-toc-mobile-panel .rb-toc-link:last-child {
    border-bottom: none;
}

.rb-toc-mobile-panel .rb-toc-link.is-sub {
    padding-left: 32px;
}

.rb-toc-mobile-panel .rb-toc-link.active {
    border-left-color: var(--base-color, #e99022);
}

/* Blog listing */
.rb-blog-banner-img {
    display: block;
    width: 100%;
    height: auto;
}


.rb-listing-section {
    padding: 50px 0 80px;
}

.rb-listing-head {
    text-align: center;
    margin-bottom: 40px;
}

.rb-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 48px;
}

.rb-btn-load {
    border: 1px solid #1d1d1d;
    background: transparent;
    color: #1d1d1d;
    padding: 12px 28px;
    cursor: pointer;
}

.rb-btn-load:hover {
    background: #1d1d1d;
    color: #fff;
}

.rb-end-note {
    margin: 0;
    font-size: 14px;
    color: #71717a;
}

.rb-loader {
    display: flex;
    gap: 8px;
}

.rb-loader span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--base-color, #e99022);
    animation: rbBounce 0.9s infinite ease-in-out;
}

.rb-loader span:nth-child(2) { animation-delay: 0.15s; }
.rb-loader span:nth-child(3) { animation-delay: 0.3s; }

@keyframes rbBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.rb-empty {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 30px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rb-empty i {
    font-size: 40px;
    color: var(--base-color, #e99022);
    margin-bottom: 16px;
}

.rb-empty h3 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 700;
    color: #1d1d1d;
    margin: 0 0 8px !important;
}

.rb-empty p {
    margin: 0;
    color: #71717a;
}

@media (max-width: 991px) {
    .rb-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .rb-listing-section {
        padding: 36px 0 56px;
    }
}

@media (max-width: 767px) {
    .rb-article-section {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .rb-hero {
        margin-bottom: 32px;
        border-radius: 14px;
    }

    .rb-content {
        font-size: 16px;
    }

    .rb-content h2 {
        font-size: 23px !important;
    }

    .rb-content h3 {
        font-size: 19px !important;
    }

    .rb-related-section {
        padding: 48px 0;
    }
}

