/* The Kid's Place — blog styles (layered on top of /styles.css) */
.blog-body { background: linear-gradient(135deg, #f8f9fa 0%, #eef1f4 100%); }

.blog-page {
    padding: 120px 24px 60px;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ---------- index ---------- */
.blog-index-header { text-align: center; margin-bottom: 40px; }
.blog-index-header h1 {
    font-family: 'Baloo 2', cursive;
    color: #1B3A5F;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 10px;
}
.blog-index-header p { color: #555; font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.blog-empty { text-align: center; color: #555; font-size: 1.05rem; margin: 30px 0; }
.blog-empty a { color: #E91E8C; font-weight: 600; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(27, 58, 95, 0.08);
    border-top: 5px solid #4ECDC4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(27, 58, 95, 0.14); }
.blog-card h2, .blog-card h3 { font-family: 'Baloo 2', cursive; color: #1B3A5F; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.blog-card p { color: #555; line-height: 1.6; margin: 0; flex: 1; }
.blog-card-meta { color: #888; font-size: 0.85rem; }

.blog-category {
    display: inline-block;
    align-self: flex-start;
    background: #FDE7F3;
    color: #E91E8C;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

/* ---------- article ---------- */
.blog-article {
    max-width: 1240px;
    margin: 0 auto;
    background: #fff;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.blog-breadcrumb { font-size: 0.9rem; color: #888; margin-bottom: 18px; }
.blog-breadcrumb a { color: #1B3A5F; text-decoration: none; font-weight: 600; }
.blog-breadcrumb a:hover { color: #E91E8C; }
.blog-breadcrumb span { margin: 0 6px; }

.blog-article-header { border-bottom: 3px solid #4ECDC4; padding-bottom: 24px; margin-bottom: 30px; }
.blog-article-header h1 {
    font-family: 'Baloo 2', cursive;
    color: #1B3A5F;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    margin: 14px 0 14px;
}
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #666; font-size: 0.92rem; }
.blog-meta i { color: #4ECDC4; margin-right: 4px; }
.blog-reviewed { margin: 14px 0 0; color: #2E7D6B; font-size: 0.9rem; font-weight: 600; }
.blog-reviewed i { margin-right: 4px; }

.blog-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; margin-bottom: 30px; display: block; }

.blog-content { color: #444; font-size: 1.06rem; line-height: 1.8; }
.blog-content h2 {
    font-family: 'Baloo 2', cursive;
    color: #1B3A5F;
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 40px 0 14px;
}
.blog-content h3 { color: #E91E8C; font-size: 1.2rem; margin: 28px 0 10px; }
.blog-content h4 { color: #1B3A5F; font-size: 1.05rem; margin: 22px 0 8px; }
.blog-content p { margin: 0 0 18px; }
.blog-content ul, .blog-content ol { margin: 0 0 20px 24px; }
.blog-content li { margin-bottom: 8px; }
.blog-content a:not(.blog-btn) { color: #E91E8C; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.blog-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 10px 0 20px; }
.blog-content blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    background: #F0FBFA;
    border-left: 5px solid #4ECDC4;
    border-radius: 0 14px 14px 0;
}
.blog-content blockquote p:last-child { margin-bottom: 0; }
.blog-content hr { border: 0; border-top: 2px dashed #e3e7eb; margin: 32px 0; }
.blog-content code { background: #f3f4f6; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.blog-content table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.blog-content th, .blog-content td { padding: 10px 12px; border-bottom: 1px solid #e8ebef; text-align: left; vertical-align: top; }
.blog-content th { background: #F0FBFA; color: #1B3A5F; }

.blog-figure { margin: 28px 0; }
.blog-figure img { width: 100%; height: auto; border-radius: 16px; margin: 0; display: block; }
.blog-figure figcaption { font-size: 0.9rem; color: #777; text-align: center; margin-top: 8px; }
.blog-content [itemtype*="FAQPage"] h3 { color: #1B3A5F; }

/* ---------- call-to-action box ---------- */
.blog-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, #1B3A5F 0%, #2a5584 100%);
    color: #fff;
    border-radius: 20px;
    padding: 26px 28px;
    margin: 36px 0;
}
.blog-cta h3 { font-family: 'Baloo 2', cursive; color: #fff; font-size: 1.35rem; margin: 0 0 4px; }
.blog-cta p { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 0.98rem; line-height: 1.5; }
.blog-cta-text { flex: 1 1 280px; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease;
}
.blog-btn:hover { transform: translateY(-2px); }
.blog-btn-primary { background: #E91E8C; color: #fff; }
.blog-btn-secondary { background: #fff; color: #1B3A5F; }

/* ---------- related + footer ---------- */
.blog-related { max-width: 1100px; margin: 50px auto 0; }
.blog-related h2 { font-family: 'Baloo 2', cursive; color: #1B3A5F; text-align: center; margin-bottom: 24px; }
.blog-body .footer-bottom a { color: #fff; text-decoration: none; }
.blog-body .footer-bottom a:hover { color: #4ECDC4; }
.blog-disclaimer { font-size: 0.82rem; opacity: 0.75; margin-top: 8px; }

@media (max-width: 768px) {
    .blog-page { padding: 100px 16px 40px; }
    .blog-article { padding: 28px 20px; border-radius: 18px; }
    .blog-cta { padding: 22px 20px; }
    .blog-cta-actions { width: 100%; }
    .blog-btn { flex: 1 1 auto; justify-content: center; }
}

.blog-index-intro { max-width: 760px; margin: 0 auto 36px; color: #555; line-height: 1.75; text-align: center; }
.blog-index-intro p { margin: 0 0 12px; }
.blog-index-intro a { color: #E91E8C; font-weight: 700; }

/* Service landing pages */
.service-photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 24px; }
.service-photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin: 0; }
@media (max-width: 600px) { .service-photo-row { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* ---------- wide article layout: content + sticky side column ---------- */
.article-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.article-topbar .blog-breadcrumb { margin: 0; }
.index-topbar { max-width: 1240px; margin: 0 auto 10px; }
.back-home { display: inline-flex; align-items: center; gap: 8px; background: #F0FBFA; color: #1B3A5F; font-weight: 700; font-size: 0.95rem; text-decoration: none; padding: 8px 16px; border-radius: 999px; transition: background 0.2s ease, transform 0.15s ease; }
.back-home:hover { background: #dff5f3; transform: translateX(-2px); }
.blog-article-header, .blog-hero-img { max-width: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: #F7F9FB; border: 1px solid #E8EDF2; border-radius: 18px; padding: 20px 22px; }
.side-card h3 { font-family: 'Baloo 2', cursive; color: #1B3A5F; font-size: 1.15rem; margin: 0 0 8px; }
.side-card p { color: #555; font-size: 0.95rem; line-height: 1.55; margin: 0 0 10px; }
.side-card p i { color: #4ECDC4; width: 18px; }
.side-card-book { background: linear-gradient(135deg, #1B3A5F 0%, #2a5584 100%); border: 0; }
.side-card-book h3 { color: #fff; }
.side-card-book p { color: rgba(255,255,255,0.85); }
.side-card-book .blog-btn { display: flex; justify-content: center; margin-top: 10px; }
.blog-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-top: 1px solid #E8EDF2; }
.side-links li:first-child { border-top: 0; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; color: #1B3A5F; font-weight: 600; text-decoration: none; }
.side-links a i { color: #E91E8C; width: 18px; }
.side-links a:hover { color: #E91E8C; }
@media (max-width: 980px) {
    .article-layout { grid-template-columns: 1fr; gap: 10px; }
    .article-sidebar { position: static; }
    .article-sidebar .side-card-book { display: none; } /* booking boxes already appear in the article on phones */
}

/* ===================================================================
   FULL-WIDTH LAYOUT (overrides the earlier boxed card design)
   Pages run edge to edge like the homepage: a full-width title band,
   then the article + side column spanning the window.
   =================================================================== */
.blog-body { background: #fff; }
.blog-page { max-width: none; padding: 86px 0 0; }
.blog-article {
    --pad: clamp(20px, 4vw, 72px);
    max-width: none;
    margin: 0;
    padding: 0 var(--pad) 64px;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}
.blog-article .article-topbar {
    margin: 0 calc(-1 * var(--pad));
    padding: 26px var(--pad) 6px;
    background: var(--pink-light, #FCE4EC);
}
.blog-article .blog-article-header {
    margin: 0 calc(-1 * var(--pad)) 40px;
    padding: 10px var(--pad) 42px;
    background: linear-gradient(180deg, var(--pink-light, #FCE4EC) 0%, #FFF5F8 100%);
    border-bottom: 0;
}
.blog-article .blog-article-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 1100px; }
.back-home { background: #fff; box-shadow: 0 2px 10px rgba(27, 58, 95, 0.08); }
.back-home:hover { background: #fff; }
.article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 4vw, 64px); }
.blog-content { font-size: 1.08rem; }
.blog-hero-img { max-height: 460px; }
.blog-related { max-width: none; margin: 0; padding: 56px clamp(20px, 4vw, 72px) 64px; background: #F7F9FB; }
.blog-related .blog-grid { max-width: none; }

/* Parent Guides list page */
.blog-page > .article-topbar.index-topbar { max-width: none; margin: 0; padding: 26px clamp(20px, 4vw, 72px) 0; background: var(--pink-light, #FCE4EC); }
.blog-page > .blog-index-header { margin: 0; padding: 16px clamp(20px, 4vw, 72px) 44px; background: linear-gradient(180deg, var(--pink-light, #FCE4EC) 0%, #FFF5F8 100%); }
.blog-page > .blog-index-intro, .blog-page > .blog-grid, .blog-page > .blog-cta, .blog-page > .blog-empty { margin-left: clamp(20px, 4vw, 72px); margin-right: clamp(20px, 4vw, 72px); }
.blog-page > .blog-index-intro { max-width: none; padding-top: 36px; }
.blog-page > .blog-cta { margin-bottom: 64px; }

@media (max-width: 980px) {
    .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .blog-page { padding-top: 76px; }
}

.blog-index-subhead { font-family: 'Baloo 2', cursive; color: #1B3A5F; font-size: 1.6rem; margin: 8px clamp(20px, 4vw, 72px) 18px; }
/* Cards fill the full row on wide screens; a lone card stays card-sized */
.blog-page > .blog-grid, .blog-related .blog-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.blog-page > .blog-grid:has(> :only-child) { grid-template-columns: minmax(300px, 560px); }
