/*
Theme Name: dds_bluebellsschoolinternational.com
Author: Анна Соколова
Description: Экспертный мультиформатный образовательный блог о развитии детей в международной среде. Независимая тема для информационного ресурса о современном образовании и детской психологии.
Version: 1.1
Text Domain: bluebells
*/

/* ============ ПЕРЕМЕННЫЕ И БАЗА ============ */
:root {
    --bell: #5b54c4;
    --bell-dark: #3d3893;
    --bell-soft: #ece9fb;
    --apricot: #ef9d5b;
    --apricot-dark: #d97f37;
    --ink: #28263a;
    --ink-soft: #5d5a72;
    --paper: #fbfaf6;
    --card: #ffffff;
    --line: #e4e1ee;
    --footer-bg: #221f33;
    --footer-ink: #cfcbe2;
    --footer-head: #ffffff;
    --shadow: 0 8px 28px rgba(40, 38, 58, 0.08);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Georgia", "Iowan Old Style", "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name, .menu li, .card-title, .btn, .breadcrumbs, .widget-title, .step-num {
    font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 2.05rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

a { color: var(--bell); text-decoration: none; }
a:hover { color: var(--bell-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

.shell { width: min(92%, 1180px); margin-inline: auto; }

.btn {
    display: inline-block;
    background: var(--bell);
    color: #fff;
    padding: 0.7em 1.5em;
    border-radius: 999px;
    font-weight: 600;
    border: 2px solid var(--bell);
    transition: background .18s, color .18s;
}
.btn:hover { background: var(--bell-dark); border-color: var(--bell-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--bell); }
.btn--ghost:hover { background: var(--bell); color: #fff; }

/* ============ ШАПКА ============ */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo, .brand-mark { width: 52px; height: 52px; flex: 0 0 52px; display: block; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.25;
    max-width: 46ch;
}
.brand-desc {
    display: block;
    font-size: 0.82rem;
    color: var(--ink-soft);
    font-family: "Trebuchet MS", system-ui, sans-serif;
    max-width: 52ch;
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    background: var(--bell-soft);
    border: 1px solid var(--line);
    color: var(--bell-dark);
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 1rem;
}

.main-nav .menu {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav .menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--ink);
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
}
.main-nav .menu a:hover,
.main-nav .menu .current-menu-item > a {
    background: var(--bell-soft);
    color: var(--bell-dark);
    text-decoration: none;
}

/* ============ КОНТЕЙНЕРЫ СТРАНИЦ ============ */
.site-main { padding: 38px 0 56px; }

.layout-single { width: 85%; margin-inline: auto; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    row-gap: 40px;
    align-items: start;
}
.content-area { min-width: 0; }

/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
.breadcrumbs {
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
}
.breadcrumbs a { color: var(--bell); }
.breadcrumbs .sep { margin: 0 6px; color: var(--ink-soft); }

/* ============ КАРТОЧКИ ЗАПИСЕЙ ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 28px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb--empty {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 28% 30%, rgba(255,255,255,.45), transparent 55%),
        linear-gradient(135deg, var(--bell) 0%, var(--bell-dark) 55%, var(--apricot) 130%);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 24px;
}
.card-meta {
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.card-title { font-size: 1.22rem; margin: 0 0 10px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--bell); text-decoration: none; }
.card-excerpt { font-size: 0.96rem; color: var(--ink-soft); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 14px;
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-weight: 600;
    color: var(--bell);
}

/* ============ ОДИНОЧНАЯ ЗАПИСЬ / СТРАНИЦА ============ */
.entry {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 38px;
    box-shadow: var(--shadow);
}
.entry-title { font-size: 2.1rem; }
.entry-meta {
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
}
.entry-thumb { margin: 0 0 26px; border-radius: 12px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 10px; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content blockquote {
    margin: 1.4em 0;
    padding: 0.6em 1.4em;
    border-left: 4px solid var(--bell);
    background: var(--bell-soft);
    border-radius: 0 10px 10px 0;
}

table { border-collapse: collapse; width: 100%; margin: 1.2em 0; }
table th, table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
table th { background: var(--bell-soft); color: var(--bell-dark); }

/* ============ САЙДБАР ============ */
.sidebar { min-width: 0; }
.widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 26px;
    color: var(--ink);
}
.widget a { color: var(--bell); }
.widget a:hover { color: var(--bell-dark); }
.widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bell-soft);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.widget li:last-child { border-bottom: none; }
.widget .post-date { display: block; font-size: 0.78rem; color: var(--ink-soft); font-family: "Trebuchet MS", system-ui, sans-serif; }

/* ============ ГЛАВНАЯ ============ */
.front-section { padding: 18px 0; margin-bottom: 18px; }
.section-head { margin-bottom: 26px; }
.section-head .eyebrow {
    display: inline-block;
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apricot-dark);
    margin-bottom: 8px;
}

/* блок: текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.split--flip .split-media { order: -1; }
.split-media img, .split-media svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.split-text h2 { font-size: 1.9rem; }

/* блок: сетка тезисов */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 26px;
}
.feature {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    min-width: 0;
}
.feature .feature-icon {
    width: 52px; height: 52px; display: block; margin-bottom: 16px;
}
.feature h3 { font-size: 1.18rem; }
.feature p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }

/* блок: шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 26px; }
.step {
    position: relative;
    background: var(--bell-soft);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
    min-width: 0;
}
.step-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: var(--bell);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* блок: FAQ */
.faq { max-width: 860px; }
.faq details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 22px;
    margin-bottom: 14px;
}
.faq summary {
    cursor: pointer;
    padding: 18px 0;
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.04rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bell); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 0.98rem; }

/* блок последних записей на главной */
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }

/* ============ ПАГИНАЦИЯ ============ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    font-family: "Trebuchet MS", system-ui, sans-serif;
    font-weight: 600;
    text-decoration: none;
}
.pagination a.page-numbers:hover { background: var(--bell-soft); color: var(--bell-dark); border-color: var(--bell-soft); }
.pagination .page-numbers.current { background: var(--bell); color: #fff; border-color: var(--bell); }
.pagination .page-numbers.dots { border: none; background: none; }

/* ============ ПОИСК ============ */
.search-form { display: flex; gap: 10px; }
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    color: var(--ink);
}
.search-form .search-submit {
    border: none;
    background: var(--bell);
    color: #fff;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Trebuchet MS", system-ui, sans-serif;
}
.search-form .search-submit:hover { background: var(--bell-dark); }

/* ============ КОММЕНТАРИИ ============ */
.comments { margin-top: 36px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment-body {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
}
.comment-list .children { list-style: none; margin: 0 0 0 28px; padding: 0; }
.comment-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 8px; font-family: "Trebuchet MS", system-ui, sans-serif; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 14px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
}
.comment-respond .submit {
    background: var(--bell);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 11px 26px;
    font-weight: 600;
    cursor: pointer;
}

/* ============ 404 ============ */
.notfound { text-align: center; padding: 30px 0; }
.notfound .code { font-size: 5rem; color: var(--bell); font-family: "Trebuchet MS", system-ui, sans-serif; margin: 0; }
.notfound .search-form { max-width: 460px; margin: 26px auto 0; }

/* ============ ПОДВАЛ ============ */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 52px 0 0; margin-top: 40px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 36px;
    padding-bottom: 40px;
}
.footer-cols .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--footer-ink);
}
.footer-cols .widget a { color: var(--footer-ink); }
.footer-cols .widget a:hover { color: #fff; }
.footer-cols .widget-title { color: var(--footer-head); border-bottom-color: rgba(255,255,255,.16); }
.footer-cols .widget li { border-bottom-color: rgba(255,255,255,.1); }
.footer-cols .widget .post-date { color: #9c98b8; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0;
    text-align: center;
    font-size: 0.86rem;
    color: #9c98b8;
    font-family: "Trebuchet MS", system-ui, sans-serif;
}

/* ============ COOKIE-БАННЕР ============ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 1000;
    background: var(--footer-bg);
    color: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 14px 40px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: 0.92rem; font-family: "Trebuchet MS", system-ui, sans-serif; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--apricot); }
.cookie-banner button {
    background: var(--apricot);
    color: #2a1b08;
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
    font-family: "Trebuchet MS", system-ui, sans-serif;
    white-space: nowrap;
}
.cookie-banner button:hover { background: var(--apricot-dark); color: #fff; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .split--flip .split-media { order: 0; }
    .layout-single { width: 92%; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    h1, .entry-title { font-size: 1.6rem; }
    .nav-toggle { display: block; }
    .main-nav { width: 100%; }
    .main-nav .menu {
        flex-direction: column;
        gap: 4px;
        display: none;
        padding-top: 12px;
    }
    .main-nav.is-open .menu { display: flex; }
    .entry { padding: 24px 20px; }
    .layout-single { width: 100%; }
}
