/* ============================================================
   Recroot Blog System — CSS
   Font: Archivo | All three layout designs
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
    --rb-font     : 'Archivo', 'Archivo Placeholder', sans-serif;
    --rb-dark     : #1A0052;
    --rb-text     : #333344;
    --rb-muted    : #888899;
    --rb-primary  : #7060F7;
    --rb-border   : #e8e8f0;
    --rb-bg       : #f7f6ff;
    --rb-white    : #ffffff;
    --rb-radius   : 16px;
    --rb-shadow   : 0 2px 16px rgba(108, 96, 247, 0.07);
    --rb-max      : 1200px;
}

/* ── RESET ─────────────────────────────────────────────────── */
.rb-featured-layout *,
.rb-blog-page *,
.rb-single-wrap *,
.rb-card * {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── GLOBAL ELEMENTOR OVERRIDES ────────────────────────────── */
/* Targeting base HTML tags inside your wrappers to block Elementor */
.rb-featured-layout h1, .rb-blog-page h1, .rb-single-wrap h1 { font-size: 32px !important; font-weight: 500 !important; }
.rb-featured-layout h2, .rb-blog-page h2, .rb-single-wrap h2 { font-size: 32px !important; font-weight: 500 !important; }
.rb-featured-layout h3, .rb-blog-page h3, .rb-single-wrap h3 { font-size: 20px !important; font-weight: 500 !important; }
.rb-featured-layout p,  .rb-blog-page p,  .rb-single-wrap p  { font-size: 18px !important; font-weight: 500 !important; }
.rb-featured-layout li, .rb-blog-page li, .rb-single-wrap li { font-size: 18px !important; font-weight: 500 !important; }
.rb-featured-layout button, .rb-blog-page button, .rb-single-wrap button { font-size: 18px !important; font-weight: 500 !important; }


/* ============================================================
   IMAGE 1: FEATURED LAYOUT  [rb_blog_featured]
   Left: 1 big card  |  Right: 2 small stacked cards
   ============================================================ */

.rb-featured-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-family: var(--rb-font);
    font-size: 16px !important;
    font-weight: 500 !important;
	 margin: 0;
    padding: 0;
}

.rb-featured-left  { display: flex; flex-direction: column; }
.rb-featured-right { display: flex; flex-direction: column; gap: 20px; }

/* ── BIG CARD ── */
.rb-card--big {
    display: flex;
    flex-direction: column;
    background: var(--rb-white);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: box-shadow .25s, transform .2s;
}
.rb-card--big:hover {
    box-shadow: var(--rb-shadow);
    transform: translateY(-2px);
}

.rb-card__img-wrap--big {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--rb-radius) var(--rb-radius) 0 0;
}
.rb-card__img-wrap--big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.rb-card--big:hover .rb-card__img-wrap--big img { transform: scale(1.03); }

.rb-card__body--big {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rb-card__title--big {
    font-family: var(--rb-font);
    font-size: 20px !important; /* H3 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    line-height: 1.3;
}

/* ── SMALL CARD ── */
.rb-card--small {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    background: var(--rb-white);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, transform .2s;
    overflow: hidden;
}
.rb-card--small:hover {
    box-shadow: var(--rb-shadow);
    transform: translateY(-1px);
}

.rb-card__img-wrap--small {
    width: 200px;
    min-width: 200px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.rb-card__img-wrap--small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.rb-card--small:hover .rb-card__img-wrap--small img { transform: scale(1.03); }

.rb-card__body--small {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
    flex: 1;
}

.rb-card__title--small {
    font-family: var(--rb-font);
    font-size: 20px !important; /* H3 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    line-height: 1.3;
}

.rb-card__desc {
    font-size: 18px !important; /* Paragraph equivalent */
    font-weight: 500 !important;
    color: var(--rb-text);
    line-height: 1.6;
}

/* ── SHARED META (date • read time) ── */
.rb-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px !important; /* Other text */
    color: var(--rb-muted);
    font-weight: 500 !important;
    margin-top: auto;
}
.rb-card__dot { color: var(--rb-dark); font-size: 10px; } /* Kept as 10px because it's a structural dot separator */


/* ============================================================
   IMAGE 3: BLOG GRID PAGE  [rb_blog_grid]
   Hero banner + category tabs + 2-col grid
   ============================================================ */

.rb-blog-page {
    font-family: var(--rb-font);
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* Hero */
.rb-blog-hero {
    background: var(--rb-bg);
    border-radius: 0 0 32px 32px;
    text-align: center;
    padding: 60px 40px 56px;
    margin-bottom: 48px;
}

.rb-hero-badge span {
    display: inline-block;
    border: 1.5px solid var(--rb-dark);
    border-radius: 100px;
    padding: 6px 20px;
    font-size: 16px !important; /* Other text */
    font-weight: 500 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rb-dark);
    margin-bottom: 20px;
}

.rb-hero-title {
    font-family: var(--rb-font);
    font-size: 32px !important; /* H1 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rb-hero-subtitle {
    font-size: 18px !important; /* Paragraph equivalent */
    font-weight: 500 !important;
    color: var(--rb-text);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Category tabs */
.rb-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.rb-cat-btn {
    background: var(--rb-white);
    border: 1.5px solid var(--rb-border);
    border-radius: 100px;
    padding: 8px 20px;
    font-family: var(--rb-font);
    font-size: 18px !important; /* Button text */
    font-weight: 500 !important;
    color: var(--rb-text);
    cursor: pointer;
    transition: all .2s;
}
.rb-cat-btn:hover { border-color: var(--rb-primary); color: var(--rb-primary); }
.rb-cat-btn.active {
    background: var(--rb-primary);
    border-color: var(--rb-primary);
    color: #fff;
}

/* Grid */
.rb-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Grid card */
.rb-card--grid {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    background: var(--rb-white);
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, transform .2s;
    min-height: 180px;
}
.rb-card--grid:hover {
    box-shadow: var(--rb-shadow);
    transform: translateY(-2px);
}

.rb-card__img-wrap--grid {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    overflow: hidden;
}
.rb-card__img-wrap--grid img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.rb-card--grid:hover .rb-card__img-wrap--grid img { transform: scale(1.03); }

.rb-card__body--grid {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    flex: 1;
}

.rb-card__title--grid {
    font-family: var(--rb-font);
    font-size: 20px !important; /* H3 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    line-height: 1.3;
}

/* No posts */
.rb-no-posts {
    grid-column: 1/-1;
    text-align: center;
    color: var(--rb-muted);
    padding: 40px;
    font-family: var(--rb-font);
    font-size: 16px !important; /* Other text */
    font-weight: 500 !important;
}


/* ============================================================
   IMAGE 2: SINGLE POST PAGE
   Main content (left) + Sidebar (right)
   ============================================================ */

.rb-single-page {
    background: #fff;
}

.rb-single-wrap {
    font-family: var(--rb-font);
    font-size: 16px !important;
    font-weight: 500 !important;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.rb-single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* Breadcrumb */
.rb-breadcrumb {
    font-size: 16px !important; /* Other text */
    font-weight: 500 !important;
    color: var(--rb-muted);
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.rb-breadcrumb a {
    color: var(--rb-muted);
    text-decoration: none;
    transition: color .2s;
}
.rb-breadcrumb a:hover { color: var(--rb-primary); }
.rb-breadcrumb__sep { color: var(--rb-border); }

/* Title */
.rb-single-title {
    font-family: var(--rb-font);
    font-size: 32px !important; /* H1 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    line-height: 1.25;
    margin-bottom: 14px;
}

/* Date + read time */
.rb-single-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px !important; /* Other text */
    color: var(--rb-muted);
    font-weight: 500 !important;
    margin-bottom: 22px;
}
.rb-single-sep { font-size: 10px; color: var(--rb-dark); } /* Structural dot */

/* Intro paragraph */
.rb-intro-text {
    font-family: var(--rb-font);
    font-size: 18px !important; /* Paragraph equivalent */
    font-weight: 500 !important;
    line-height: 1.7;
    color: var(--rb-text);
    margin-bottom: 20px;
}

/* Hero image */
.rb-single-hero-img {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
}
.rb-single-hero-img img {
    width: 100%;
    display: block;
    max-height: 380px;
    object-fit: cover;
}

/* Content body */
.rb-content-body {
    font-family: var(--rb-font);
    font-size: 16px !important; /* Base wrapper size */
    font-weight: 500 !important;
    line-height: 1.75;
    color: var(--rb-text);
}

.rb-content-body h2 {
    font-family: var(--rb-font);
    font-size: 32px !important; /* H2 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.rb-content-body h3 {
    font-family: var(--rb-font);
    font-size: 20px !important; /* H3 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    margin: 24px 0 8px;
}

.rb-content-body p {
    margin-bottom: 14px;
    font-size: 18px !important; /* Paragraph equivalent */
    font-weight: 500 !important;
}

.rb-content-body ul,
.rb-content-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rb-content-body li {
    font-size: 18px !important; /* List item equivalent */
    font-weight: 500 !important;
    line-height: 1.65;
}

.rb-content-body img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
}

.rb-content-body strong { color: var(--rb-dark); font-weight: 500 !important; }

/* Blockquote */
.rb-blockquote {
    background: #f3f0fe;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 28px 0;
    position: relative;
}

.rb-bq-icon {
    font-family: Georgia, serif;
    font-size: 48px; /* Icon size kept */
    color: var(--rb-primary);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.rb-blockquote p {
    font-family: var(--rb-font);
    font-size: 18px !important; /* Paragraph equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    font-style: italic;
    line-height: 1.7;
    margin: 0;
}

/* Tips for success */
.rb-content-body h3 + ul li,
.rb-content-body .rb-tips li {
    font-size: 18px !important; /* List item equivalent */
    font-weight: 500 !important;
}

/* Share row */
.rb-share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--rb-border);
    font-size: 16px !important; /* Other text */
    font-weight: 500 !important;
    color: var(--rb-dark);
    flex-wrap: wrap;
}
.rb-share-btns { display: flex; gap: 10px; }
.rb-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important; /* Button text */
    font-weight: 500 !important;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.rb-share-btn:hover { opacity: .85; transform: scale(1.1); }
.rb-share-fb { background: #1877f2; }
.rb-share-tw { background: #000; }
.rb-share-li { background: #0a66c2; }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.rb-single-sidebar {
    position: sticky;
    top: 90px;
}

.rb-sidebar-block {
    background: var(--rb-white);
    border: 1px solid var(--rb-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.rb-sidebar-heading {
    font-family: var(--rb-font);
    font-size: 20px !important; /* H3 equivalent */
    font-weight: 500 !important;
    color: var(--rb-dark);
    margin-bottom: 16px;
}

/* Instagram grid */
.rb-insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}
.rb-insta-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.rb-insta-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.rb-insta-item:hover img { transform: scale(1.05); }

/* Recent blogs */
.rb-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px 0;
    border-bottom: 1px solid var(--rb-border);
}
.rb-recent-item:last-child { border-bottom: none; }
.rb-recent-item:hover .rb-recent-title { color: var(--rb-primary); }

.rb-recent-thumb {
    width: 56px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.rb-recent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rb-recent-meta {
    font-size: 16px !important; /* Other text */
    color: var(--rb-muted);
    font-weight: 500 !important;
}
.rb-recent-title {
    font-size: 16px !important; /* Other text */
    font-weight: 500 !important;
    color: var(--rb-dark);
    line-height: 1.4;
    transition: color .2s;
}

/* Related tags */
.rb-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.rb-tag {
    background: var(--rb-white);
    border: 1.5px solid var(--rb-border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 16px !important; /* Other text */
    font-weight: 500 !important;
    color: var(--rb-text);
    cursor: default;
    transition: border-color .2s, color .2s;
}
.rb-tag:hover {
    border-color: var(--rb-primary);
    color: var(--rb-primary);
}

/* ── LOADING SPINNER ─────────────────────────────────────── */
.rb-loading {
    text-align: center;
    padding: 40px;
    grid-column: 1/-1;
}
.rb-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--rb-border);
    border-top-color: var(--rb-primary);
    border-radius: 50%;
    animation: rb-spin .7s linear infinite;
}
@keyframes rb-spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rb-single-layout {
        grid-template-columns: 1fr 260px;
        gap: 32px;
    }
    .rb-card__img-wrap--grid {
        width: 180px;
        min-width: 180px;
    }
}

@media (max-width: 860px) {
    /* Featured layout stacks */
    .rb-featured-layout {
        grid-template-columns: 1fr;
    }
    .rb-featured-right {
        flex-direction: row;
        gap: 16px;
    }
    .rb-card--small {
        flex: 1;
        flex-direction: column;
    }
    .rb-card__img-wrap--small {
        width: 100%;
        min-width: unset;
        height: 180px;
    }

    /* Grid layout stacks */
    .rb-grid-wrap {
        grid-template-columns: 1fr;
    }

    /* Single layout stacks */
    .rb-single-layout {
        grid-template-columns: 1fr;
    }
    .rb-single-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .rb-blog-hero { padding: 40px 20px 44px; }
    .rb-hero-title { font-size: 32px !important; }
    .rb-featured-right { flex-direction: column; }
    .rb-card--grid {
        flex-direction: column;
    }
    .rb-card__img-wrap--grid {
        width: 100%;
        min-width: unset;
        height: 200px;
    }
    .rb-card__img-wrap--small {
        width: 100%;
        min-width: unset;
        height: 200px;
    }
    .rb-single-title { font-size: 32px !important; }
    .rb-single-wrap { padding: 24px 16px 60px; }
    .rb-insta-grid { gap: 3px; }
    .rb-cat-tabs { gap: 6px; }
    .rb-cat-btn { padding: 7px 14px; font-size: 18px !important; }
}

@media (max-width: 400px) {
    .rb-featured-layout { padding: 0 12px; }
    .rb-blog-page { padding: 0 12px 40px; }
}