/* Regenbogen Guru — Blog CSS */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f6f8fb;
    color: #3a4150;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Header ─────────────────────────────────────────────── */
.rg-header {
    background: #fff;
    border-bottom: 1px solid #e4e8ef;
    position: sticky; top: 0; z-index: 100;
}
.rg-header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.rg-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 17px; font-weight: 800; color: #070c14;
}
.rg-logo img { flex-shrink: 0; }
.rg-nav { display: flex; gap: 4px; }
.rg-nav-link {
    font-size: 14px; font-weight: 600; color: #3a4150;
    padding: 6px 12px; border-radius: 8px;
    transition: background .15s, color .15s;
}
.rg-nav-link:hover  { background: #f6f8fb; color: #070c14; }
.rg-nav-link.active { color: #1D4ED8; }

/* Burger */
.rg-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px; padding: 7px; cursor: pointer;
    background: #f6f8fb; border: 1.5px solid #e4e8ef; border-radius: 10px;
    transition: background .15s;
}
.rg-burger span {
    display: block; height: 2px; background: #3a4150; border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.rg-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rg-burger.open span:nth-child(2) { opacity: 0; }
.rg-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.rg-burger:hover { background: #eff6ff; border-color: #bfdbfe; }

/* ── Blog Mobile Nav Panel ──────────────────────────────── */
.rg-mobile-menu { display: none !important; } /* legacy */

.rg-mnav-backdrop {
    display: none; position: fixed; inset: 0; z-index: 998;
    background: rgba(7,12,20,.5); backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.rg-mnav-backdrop.open { display: block; }
.rg-mnav-panel {
    position: fixed; top: 0; right: -105%; z-index: 999;
    width: min(360px, 92vw); height: 100dvh; height: 100vh;
    background: #fff; display: flex; flex-direction: column;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 40px rgba(0,0,0,.18);
    overflow: hidden;
}
.rg-mnav-panel.open { right: 0; }
.rg-mnav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; border-bottom: 1px solid #f0f2f5; flex-shrink: 0;
}
.rg-mnav-logo {
    display: flex; align-items: center; gap: 9px;
    font-size: 16px; font-weight: 800; color: #070c14; text-decoration: none;
}
.rg-mnav-logo span {
    background: linear-gradient(135deg,#e63946,#f4a261,#e9c46a,#2a9d8f,#457b9d,#7b2d8b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.rg-mnav-close {
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: #f3f4f6; color: #6b7280; font-size: 16px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s; font-family: inherit;
}
.rg-mnav-close:hover { background: #e5e7eb; }
.rg-mnav-body {
    flex: 1; overflow-y: auto; padding: 6px 0 12px;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.rg-mnav-body::-webkit-scrollbar { display: none; }
.rg-mnav-label {
    font-size: 11px; font-weight: 700; letter-spacing: .9px;
    text-transform: uppercase; color: #9ca3af; padding: 16px 20px 6px;
}
.rg-mnav-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 20px; text-decoration: none; color: #070c14;
    transition: background .12s;
}
.rg-mnav-item:hover, .rg-mnav-item:active { background: #f9fafb; }
.rg-mnav-icon {
    width: 44px; height: 44px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.rg-mnav-text { flex: 1; min-width: 0; }
.rg-mnav-title { font-size: 15px; font-weight: 700; color: #111; line-height: 1.2; }
.rg-mnav-sub { font-size: 12px; color: #6b7280; margin-top: 1px; }
.rg-mnav-chevron { color: #d1d5db; font-size: 11px; flex-shrink: 0; }
.rg-mnav-sep { height: 1px; background: #f3f4f6; margin: 2px 20px; }
.rg-mnav-footer {
    padding: 12px 16px 24px; border-top: 1px solid #f0f2f5;
    display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
}
.rg-mnav-footer-btn {
    display: block; width: 100%; padding: 13px; border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all .15s; text-align: center; text-decoration: none;
}
.rg-mnav-footer-btn.outline {
    background: #fff; border: 1.5px solid #e5e7eb; color: #374151;
}
.rg-mnav-footer-btn.outline:hover { background: #f9fafb; }
.rg-mnav-footer-btn.fill {
    background: linear-gradient(135deg,#e63946,#f4a261,#e9c46a,#2a9d8f);
    border: none; color: #fff; box-shadow: 0 2px 14px rgba(230,57,70,.28);
}
.rg-mnav-footer-btn.fill:hover { transform: translateY(-1px); }

@media (max-width: 768px) {
    .rg-nav    { display: none; }
    .rg-burger { display: flex; }
}

/* ── Footer ─────────────────────────────────────────────── */
.rg-footer {
    background: #fff;
    border-top: 1px solid #e4e8ef;
    margin-top: 80px;
}
.rg-footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 32px 24px 40px;
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 16px 32px;
}
.rg-footer-brand {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700; color: #070c14;
}
.rg-footer-nav {
    display: flex; gap: 20px; flex-wrap: wrap;
}
.rg-footer-nav a {
    font-size: 14px; color: #3a4150; font-weight: 500;
}
.rg-footer-nav a:hover { color: #1D4ED8; }
.rg-footer-copy {
    margin-left: auto; font-size: 13px; color: #8a93a2;
}
.rg-footer-copy a { color: #8a93a2; }
.rg-footer-copy a:hover { color: #3a4150; }

/* ── Blog Index ─────────────────────────────────────────── */

/* Filter Tabs */
.blog-filter-tabs {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 28px;
}
.blog-filter-btn {
    background: #f6f8fb; border: 1.5px solid #e4e8ef;
    color: #3a4150; font-size: 13px; font-weight: 600;
    padding: 7px 16px; border-radius: 20px; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
}
.blog-filter-btn:hover  { background: #eff6ff; border-color: #bfdbfe; color: #1D4ED8; }
.blog-filter-btn.active { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }

/* Slider */
.blog-slider-section {
    padding: 40px 0 0;
    border-bottom: 1px solid #e4e8ef;
    margin-bottom: 0;
}
.blog-slider-header {
    max-width: 1200px; margin: 0 auto; padding: 0 24px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.blog-slider-title {
    font-size: 20px; font-weight: 800; color: #070c14;
}
.blog-slider-arrows { display: flex; gap: 8px; }
.slider-arrow {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid #e4e8ef; background: #fff;
    font-size: 16px; cursor: pointer; color: #3a4150;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
    font-family: inherit;
}
.slider-arrow:hover { background: #f6f8fb; border-color: #c4cad4; }
.blog-slider-track-wrap {
    max-width: 1200px; margin: 0 auto; padding: 0 24px 32px;
    overflow: hidden;
}
.blog-slider-track {
    display: flex; gap: 24px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.blog-slider-card {
    flex: 0 0 280px; border-radius: 14px; overflow: hidden;
    border: 1px solid #e4e8ef; background: #fff;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.blog-slider-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.blog-slider-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-slider-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-slider-card:hover .blog-slider-img img { transform: scale(1.04); }
.blog-slider-body { padding: 14px 16px 18px; }
.blog-slider-card-title {
    font-size: 15px; font-weight: 700; color: #070c14;
    line-height: 1.3; margin: 7px 0 8px;
}

/* Kids Section */
.blog-kids-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 100%);
    border-bottom: 1px solid #fde68a;
    padding: 48px 0;
}
.blog-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.blog-kids-header {
    display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
}
.blog-kids-icon { font-size: 40px; line-height: 1; }
.blog-kids-title {
    font-size: 22px; font-weight: 800; color: #92400e; margin-bottom: 4px;
}
.blog-kids-sub { font-size: 15px; color: #b45309; }
.blog-kids-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.blog-kids-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 2px solid #fde68a; display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.blog-kids-card:hover { box-shadow: 0 6px 20px rgba(251,191,36,.25); transform: translateY(-2px); }
.blog-kids-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-kids-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-kids-card:hover .blog-kids-card-img img { transform: scale(1.04); }
.blog-kids-card-body { padding: 14px 16px 18px; }
.blog-kids-card-title {
    font-size: 15px; font-weight: 700; color: #92400e;
    line-height: 1.3; margin-bottom: 6px;
}
.blog-kids-card-meta { font-size: 12px; color: #b45309; font-weight: 500; }

/* Topics Section */
.blog-topics-section { padding: 48px 0 80px; }
.blog-topics-title {
    font-size: 20px; font-weight: 800; color: #070c14; margin-bottom: 20px;
}
.blog-empty-filter {
    text-align: center; padding: 60px 0; color: #8a93a2; font-size: 15px;
}

.blog-index-hero {
    background: #fff; border-bottom: 1px solid #e4e8ef;
    padding: 56px 24px 48px;
}
.blog-index-hero-inner { max-width: 720px; margin: 0 auto; }
.blog-index-label {
    font-size: 12px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; color: #1D4ED8; margin-bottom: 12px;
}
.blog-index-title {
    font-size: clamp(28px, 5vw, 42px); font-weight: 800;
    color: #070c14; line-height: 1.15; margin-bottom: 12px;
}
.blog-index-sub {
    font-size: 17px; color: #3a4150; max-width: 560px;
}

.blog-featured-wrap {
    max-width: 1200px; margin: 0 auto; padding: 40px 24px 0;
}
.blog-featured {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 0; border-radius: 16px; overflow: hidden;
    background: #fff; border: 1px solid #e4e8ef;
    transition: box-shadow .2s;
}
.blog-featured:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.blog-featured-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-featured:hover .blog-featured-img img { transform: scale(1.03); }
.blog-featured-body {
    padding: 36px 32px;
    display: flex; flex-direction: column; justify-content: center;
}
.blog-featured-title {
    font-size: clamp(20px, 2.5vw, 26px); font-weight: 800;
    color: #070c14; line-height: 1.25; margin: 10px 0 12px;
}
.blog-featured-excerpt { font-size: 15px; color: #3a4150; margin-bottom: 16px; }

.blog-grid-wrap {
    max-width: 1200px; margin: 0 auto; padding: 32px 24px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: #fff; border-radius: 14px;
    border: 1px solid #e4e8ef; overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.07); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-title {
    font-size: 17px; font-weight: 700; color: #070c14;
    line-height: 1.3; margin: 8px 0 10px;
}
.blog-card-excerpt { font-size: 14px; color: #3a4150; flex: 1; margin-bottom: 14px; }

.blog-empty { max-width: 720px; margin: 60px auto; padding: 0 24px; text-align: center; color: #8a93a2; }

/* ── Post ────────────────────────────────────────────────── */
.post-hero {
    width: 100%; max-height: 520px; overflow: hidden;
    background: #e4e8ef;
}
.post-hero-img { width: 100%; height: 520px; object-fit: cover; }

.post-container {
    max-width: 720px; margin: 0 auto; padding: 40px 24px 60px;
}

.post-header { margin-bottom: 32px; }
.post-title {
    font-size: clamp(26px, 4vw, 40px); font-weight: 800;
    color: #070c14; line-height: 1.2; margin: 12px 0 16px;
}
.post-lead {
    font-size: 18px; color: #070c14; font-weight: 500;
    line-height: 1.65; margin-bottom: 24px;
    padding-bottom: 24px; border-bottom: 2px solid #e4e8ef;
}

.post-content h2 {
    font-size: 22px; font-weight: 800; color: #070c14;
    margin: 36px 0 14px; padding-top: 4px;
}
.post-content h3 {
    font-size: 18px; font-weight: 700; color: #070c14;
    margin: 28px 0 10px;
}
.post-content p {
    font-size: 16px; line-height: 1.75; margin-bottom: 18px;
}
.post-content ul, .post-content ol {
    padding-left: 24px; margin-bottom: 18px;
}
.post-content li {
    font-size: 16px; line-height: 1.7; margin-bottom: 6px;
}
.post-content strong { color: #070c14; font-weight: 700; }
.post-content a { color: #1D4ED8; text-decoration: underline; }
.post-content a:hover { color: #1e40af; }
.post-content blockquote {
    border-left: 4px solid #1D4ED8; margin: 24px 0;
    padding: 12px 20px; background: #eff6ff; border-radius: 0 8px 8px 0;
    font-size: 17px; color: #1e40af; font-style: italic;
}

.post-figure {
    margin: 28px 0; border-radius: 12px; overflow: hidden;
    border: 1px solid #e4e8ef;
}
.post-figure img { width: 100%; }
.post-figure figcaption {
    font-size: 13px; color: #8a93a2; padding: 10px 14px;
    background: #f6f8fb;
}

.post-cta {
    margin-top: 40px; padding: 32px;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    border-radius: 16px; text-align: center;
}
.post-cta-btn {
    display: inline-block; background: #fff;
    color: #1D4ED8; font-size: 15px; font-weight: 700;
    padding: 12px 28px; border-radius: 10px;
    transition: transform .15s, box-shadow .15s;
}
.post-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ── Shared: Tags, Meta ─────────────────────────────────── */
.post-cat {
    display: inline-block; background: #eff6ff; color: #1D4ED8;
    font-size: 11px; font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
}
.post-meta {
    font-size: 13px; color: #8a93a2; font-weight: 500;
}

/* ── Related Posts ─────────────────────────────────────── */
.related-posts {
    background: #fff; border-top: 1px solid #e4e8ef;
    padding: 48px 24px;
}
.related-inner { max-width: 1200px; margin: 0 auto; }
.related-title {
    font-size: 20px; font-weight: 800; color: #070c14; margin-bottom: 24px;
}
.related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.related-card {
    border-radius: 12px; overflow: hidden;
    border: 1px solid #e4e8ef; background: #fff;
    display: flex; flex-direction: column;
    transition: box-shadow .2s;
}
.related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.related-thumb { aspect-ratio: 16/9; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.related-card:hover .related-thumb img { transform: scale(1.04); }
.related-body { padding: 14px 16px 18px; }
.related-cat { font-size: 10px; font-weight: 700; color: #1D4ED8; text-transform: uppercase; letter-spacing: .5px; }
.related-card-title { font-size: 15px; font-weight: 700; color: #070c14; line-height: 1.3; margin: 6px 0 6px; }
.related-meta { font-size: 12px; color: #8a93a2; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .blog-featured    { grid-template-columns: 1fr; }
    .blog-grid        { grid-template-columns: repeat(2, 1fr); }
    .related-grid     { grid-template-columns: repeat(2, 1fr); }
    .blog-kids-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-grid        { grid-template-columns: 1fr; }
    .related-grid     { grid-template-columns: 1fr; }
    .blog-kids-grid   { grid-template-columns: repeat(2, 1fr); }
    .blog-featured-body { padding: 24px 20px; }
    .post-hero-img    { height: 240px; }
    .rg-footer-inner  { flex-direction: column; align-items: flex-start; }
    .rg-footer-copy   { margin-left: 0; }
    .blog-slider-card { flex: 0 0 220px; }
}
