/* ── Lang toggle as links (blog uses <a>, rest of site uses <button>) ── */
.lang-toggle a { padding: 7px 14px; border: none; cursor: pointer; font-weight: 700; font-size: 12.5px; transition: opacity .2s; text-decoration: none; display: inline-block; }
.lang-toggle a.active { background: #F4B400; color: #23395B; }
.lang-toggle a.inactive { background: transparent; color: #56657f; }

/* ── Blog hero ── */
.blog-hero { padding: 70px 28px 30px; text-align: center; }
.blog-hero-inner { max-width: 720px; margin: 0 auto; }
.blog-hero h1 { font-family: 'Orbitron', sans-serif; font-size: 38px; font-weight: 800; color: #23395B; margin: 0 0 14px; }
.blog-hero p { font-size: 16px; line-height: 1.6; color: #56657f; margin: 0; }

/* ── Topic filter bar (reuses .faq-tabs-bar/.faq-tab look) ── */
.blog-filter-inner { max-width: 1140px; margin: 0 auto; padding: 14px 28px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.blog-filter-inner .faq-tab { text-decoration: none; display: inline-block; }

/* ── Post grid ── */
.blog-grid-section { max-width: 1140px; margin: 0 auto; padding: 44px 28px 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-empty { text-align: center; color: #56657f; padding: 60px 20px; font-size: 15px; }

.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e7ef; border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: 0 10px 30px rgba(35,57,91,.05); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(35,57,91,.1); }
.blog-card-img-wrap { aspect-ratio: 16/10; overflow: hidden; background: #eef1f6; }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-topic { align-self: flex-start; font-family: 'Orbitron', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #bb8800; background: rgba(244,180,0,.12); border: 1px solid rgba(244,180,0,.3); border-radius: 999px; padding: 4px 10px; }
.blog-card-title { font-size: 18.5px; font-weight: 700; color: #23395B; margin: 0; line-height: 1.35; }
.blog-card-meta { font-size: 12.5px; color: #8592ab; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }

/* ── Tag chip (reuses .team-tag palette, light-theme variant) ── */
.blog-tag { font-size: 11.5px; font-weight: 600; color: #3f7fa8; background: rgba(79,152,202,.1); border: 1px solid rgba(79,152,202,.28); padding: 3px 10px; border-radius: 999px; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; text-align: center; padding: 9px 14px; border-radius: 999px; border: 1px solid #d4dae6; background: #fff; color: #56657f; font-weight: 600; font-size: 13.5px; text-decoration: none; transition: all .2s; }
.pagination a:hover { border-color: #4F98CA; color: #4F98CA; }
.pagination .active { border-color: #F4B400; background: #F4B400; color: #23395B; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Single post ── */
.blog-post-hero-img { max-width: 900px; margin: 0 auto; padding: 40px 28px 0; }
.blog-post-hero-img img { width: 100%; border-radius: 22px; display: block; aspect-ratio: 21/9; object-fit: cover; }
.blog-post-header { max-width: 760px; margin: 0 auto; padding: 34px 28px 0; text-align: center; }
.blog-post-header h1 { font-family: 'Orbitron', sans-serif; font-size: 32px; font-weight: 800; color: #23395B; margin: 0 0 16px; line-height: 1.3; }
.blog-post-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; color: #8592ab; font-size: 13.5px; margin-bottom: 14px; }
.blog-post-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.blog-post-body, .editor-preview { max-width: 720px; margin: 0 auto; padding: 30px 28px 90px; font-size: 16.5px; line-height: 1.75; color: #33415e; }
.blog-post-body h1, .blog-post-body h2, .blog-post-body h3, .editor-preview h1, .editor-preview h2, .editor-preview h3 { color: #23395B; font-weight: 700; margin: 34px 0 14px; }
.blog-post-body h2, .editor-preview h2 { font-size: 24px; }
.blog-post-body h3, .editor-preview h3 { font-size: 19px; }
.blog-post-body p, .editor-preview p { margin: 0 0 18px; }
.blog-post-body ul, .blog-post-body ol, .editor-preview ul, .editor-preview ol { margin: 0 0 18px; padding-left: 24px; }
.blog-post-body li, .editor-preview li { margin-bottom: 6px; }
.blog-post-body blockquote, .editor-preview blockquote { margin: 24px 0; padding: 4px 22px; border-left: 3px solid #F4B400; color: #56657f; font-style: italic; }
.blog-post-body code, .editor-preview code { background: #eef1f6; padding: 2px 6px; border-radius: 5px; font-size: 14.5px; }
.blog-post-body pre, .editor-preview pre { background: #23395B; color: #eaf1fb; padding: 18px 20px; border-radius: 14px; overflow-x: auto; }
.blog-post-body pre code, .editor-preview pre code { background: none; padding: 0; color: inherit; }
.blog-post-body img, .editor-preview img { max-width: 100%; border-radius: 14px; }
.blog-post-body a, .editor-preview a { color: #4F98CA; }
.editor-preview { max-width: none; padding: 20px 24px; font-size: 14.5px; }
.blog-post-back { display: block; max-width: 720px; margin: 0 auto; padding: 0 28px; }

/* ── Post FAQs (reuses .faq-item/.faq-btn/.faq-answer look) ── */
.blog-post-faqs { max-width: 720px; margin: 0 auto; padding: 0 28px 90px; }
.blog-post-faqs h2 { font-family: 'Orbitron', sans-serif; font-size: 22px; font-weight: 700; color: #23395B; margin: 0 0 20px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 28px; }
  .blog-post-header h1 { font-size: 25px; }
}

/* ── Admin ── */
.admin-shell { min-height: 100vh; background: #F1F2F5; font-family: 'Montserrat', sans-serif; color: #23395B; }
.admin-topbar { background: #23395B; color: #fff; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.admin-topbar .admin-brand { font-family: 'Orbitron', sans-serif; font-weight: 800; letter-spacing: .5px; }
.admin-topbar .admin-brand span { color: #F4B400; }
.admin-container { max-width: 1080px; margin: 0 auto; padding: 40px 28px 80px; }
.admin-auth-wrap { max-width: 400px; margin: 90px auto; background: #fff; border-radius: 20px; padding: 40px 36px; box-shadow: 0 20px 50px rgba(35,57,91,.1); }
.admin-auth-wrap h1 { font-family: 'Orbitron', sans-serif; font-size: 22px; margin: 0 0 6px; }
.admin-auth-wrap p.admin-sub { color: #8592ab; font-size: 14px; margin: 0 0 26px; }
.admin-field { margin-bottom: 18px; }
.admin-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: #23395B; }
.admin-field input, .admin-field select, .admin-field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d4dae6; font-family: 'Montserrat', sans-serif; font-size: 14.5px; color: #23395B; background: #fff; }
.admin-field textarea { resize: vertical; }
.admin-error { background: rgba(220,60,60,.08); border: 1px solid rgba(220,60,60,.3); color: #b93030; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.admin-success { background: rgba(60,180,110,.08); border: 1px solid rgba(60,180,110,.3); color: #22874f; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.admin-btn { display: inline-block; font-weight: 700; font-size: 14.5px; padding: 12px 24px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none; }
.admin-btn-primary { background: #F4B400; color: #23395B; }
.admin-btn-primary:hover { background: #ffc81f; }
.admin-btn-outline { background: #fff; color: #23395B; border: 1.5px solid #d4dae6; }
.admin-btn-outline:hover { border-color: #4F98CA; color: #4F98CA; }
.admin-btn-danger { background: #fff; color: #b93030; border: 1.5px solid rgba(220,60,60,.4); }
.admin-btn-danger:hover { background: rgba(220,60,60,.08); }
.admin-btn-block { display: block; width: 100%; text-align: center; }

.admin-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.admin-header-row h1 { font-family: 'Orbitron', sans-serif; font-size: 24px; margin: 0; }

.admin-table-wrap { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(35,57,91,.05); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; background: #f6f7fa; padding: 14px 18px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: #8592ab; }
.admin-table td { padding: 14px 18px; border-top: 1px solid #eef1f6; vertical-align: middle; }
.admin-table img.admin-thumb { width: 52px; height: 36px; object-fit: cover; border-radius: 6px; }
.admin-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.admin-badge-active { background: rgba(60,180,110,.12); color: #22874f; }
.admin-badge-inactive { background: rgba(140,150,170,.15); color: #6a7690; }
.admin-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-row-actions form { display: inline; }
.admin-row-actions button { font-size: 12.5px; }

.admin-form-card { background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 10px 30px rgba(35,57,91,.05); }
.admin-lang-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.admin-lang-tab { padding: 8px 18px; border-radius: 999px; border: 1px solid #d4dae6; background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.admin-lang-tab.active { background: #23395B; color: #fff; border-color: #23395B; }
.admin-lang-panel { display: none; }
.admin-lang-panel.active { display: block; }
.admin-current-img { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.admin-current-img img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.admin-img-remove-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: auto; border: 1.5px solid rgba(220,60,60,.4); border-radius: 999px; background: #fff; color: #b93030; font-size: 15px; line-height: 1; cursor: pointer; }
.admin-img-remove-btn:hover { background: rgba(220,60,60,.08); }
.admin-hint { font-size: 12.5px; color: #8592ab; margin: 6px 0 0; }
.admin-paste-zone { margin-top: 8px; padding: 14px; border: 1px dashed #d4dae6; border-radius: 10px; font-size: 13px; color: #8592ab; text-align: center; cursor: text; }
.admin-paste-zone:focus { outline: none; border-color: #23395B; color: #23395B; background: rgba(35,57,91,.04); }
.admin-checkbox-row { display: flex; align-items: center; gap: 10px; }
.admin-checkbox-row input { width: auto; }

/* ── Admin FAQ builder ── */
.admin-faq-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid #eef1f6; }
.admin-faq-header h2 { font-family: 'Orbitron', sans-serif; font-size: 18px; margin: 0 0 4px; }
.admin-faq-item { background: #f6f7fa; border: 1px solid #eef1f6; border-radius: 14px; padding: 20px 22px 6px; margin-bottom: 16px; }
.admin-faq-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.admin-faq-item-title { font-weight: 700; font-size: 13.5px; color: #23395B; }
.admin-faq-remove { padding: 6px 14px; font-size: 12px; }
#faq_add { margin-top: 4px; }

/* EasyMDE toolbar — custom icons (no Font Awesome dependency) */
.EasyMDEContainer .CodeMirror { font-family: 'Menlo', monospace; font-size: 13.5px; line-height: 1.6; min-height: 320px; }
/* CodeMirror's own hidden input-capture textarea lives inside .admin-field too,
   so it was inheriting the generic form-field border/background/padding above
   and rendering as a visible white box, breaking click-to-focus and paste. */
.CodeMirror textarea { border: none !important; background: transparent !important; padding: 0 !important; opacity: 0 !important; }
.editor-toolbar { border-radius: 10px 10px 0 0; border-color: #d4dae6; }
.EasyMDEContainer .CodeMirror, .editor-statusbar { border-color: #d4dae6; }
.editor-toolbar button.lb-ic { font-family: 'Montserrat', sans-serif; }
.editor-toolbar button.lb-ic:before { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; }
.editor-toolbar button.lb-ic-italic:before { font-style: italic; }
.editor-toolbar button.lb-ic-quote:before, .editor-toolbar button.lb-ic-link:before, .editor-toolbar button.lb-ic-image:before,
.editor-toolbar button.lb-ic-preview:before, .editor-toolbar button.lb-ic-sbs:before, .editor-toolbar button.lb-ic-fs:before { font-size: 15px; }
.editor-toolbar button.lb-ic-h1:before { content: "H1"; }
.editor-toolbar button.lb-ic-h2:before { content: "H2"; }
.editor-toolbar button.lb-ic-h3:before { content: "H3"; }
.editor-toolbar button.lb-ic-bold:before { content: "B"; }
.editor-toolbar button.lb-ic-italic:before { content: "I"; }
.editor-toolbar button.lb-ic-quote:before { content: "❝"; }
.editor-toolbar button.lb-ic-code:before { content: "</>"; font-size: 11px; }
.editor-toolbar button.lb-ic-ul:before { content: "•"; }
.editor-toolbar button.lb-ic-ol:before { content: "1."; }
.editor-toolbar button.lb-ic-link:before { content: "🔗"; }
.editor-toolbar button.lb-ic-image:before { content: "🖼"; }
.editor-toolbar button.lb-ic-preview:before { content: "👁"; }
.editor-toolbar button.lb-ic-sbs:before { content: "⇄"; }
.editor-toolbar button.lb-ic-fs:before { content: "⛶"; }
.editor-toolbar button.heading-1:after, .editor-toolbar button.heading-2:after, .editor-toolbar button.heading-3:after { content: none; }
