/*
Theme Name: Custom Base
Theme URI: https://example.com/
Author: Site Administrator
Description: A lightweight custom WordPress theme designed to work with Elementor Free.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: custom-base
*/

:root {
    --cb-content-width: 1200px;
    --cb-gutter: 24px;
    --cb-text: #20242a;
    --cb-muted: #626b75;
    --cb-border: #e5e8ec;
    --cb-accent: #1769aa;
    --cb-header-bg: #ffffff;
    --cb-footer-bg: #17212b;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--cb-text);
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--cb-accent); }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f0b429; outline-offset: 3px; }
.cb-container { width: min(100% - (var(--cb-gutter) * 2), var(--cb-content-width)); margin-inline: auto; }
.cb-skip-link { position: absolute; top: -100px; left: 16px; z-index: 9999; padding: 10px 14px; background: #fff; color: #111; }
.cb-skip-link:focus { top: 16px; }
.cb-site-header { position: relative; z-index: 100; background: var(--cb-header-bg); border-bottom: 1px solid var(--cb-border); }
.cb-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cb-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 750; font-size: 1.2rem; }
.cb-brand img { display: block; max-height: 52px; width: auto; }
.cb-brand-name { overflow-wrap: anywhere; }
.cb-menu-toggle { display: none; border: 1px solid var(--cb-border); border-radius: 8px; padding: 9px 12px; color: inherit; background: #fff; cursor: pointer; }
.cb-primary-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.cb-primary-nav li { margin: 0; padding: 0; }
.cb-primary-nav a { display: block; padding: 12px 0; color: inherit; text-decoration: none; font-weight: 550; }
.cb-primary-nav a:hover, .cb-primary-nav .current-menu-item > a, .cb-primary-nav .current_page_item > a { color: var(--cb-accent); }
.cb-main { min-height: 45vh; }
.cb-entry { width: min(100% - (var(--cb-gutter) * 2), var(--cb-content-width)); margin: 48px auto; }
.cb-entry-title { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.cb-entry-content > *:first-child { margin-top: 0; }
.cb-entry-content > *:last-child { margin-bottom: 0; }
.cb-site-footer { margin-top: 64px; padding: 32px 0; color: #f4f6f8; background: var(--cb-footer-bg); }
.cb-footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cb-footer-inner a { color: #fff; }
.cb-footer-copy { margin: 0; color: #d0d7de; }
.cb-footer-nav ul { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 0; padding: 0; list-style: none; }
.cb-footer-nav a { text-decoration: none; }
.cb-pagination { margin-top: 32px; }
.cb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cb-pagination a, .cb-pagination span { padding: 6px 11px; border: 1px solid var(--cb-border); border-radius: 6px; text-decoration: none; }
.cb-pagination .current { background: var(--cb-accent); color: #fff; border-color: var(--cb-accent); }
@media (max-width: 780px) {
    :root { --cb-gutter: 18px; }
    .cb-header-inner { min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
    .cb-menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
    .cb-primary-nav { display: none; flex-basis: 100%; width: 100%; }
    .cb-primary-nav.is-open { display: block; }
    .cb-primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; padding: 8px 0 12px; }
    .cb-primary-nav a { padding: 12px 4px; border-top: 1px solid var(--cb-border); }
    .cb-footer-inner { flex-direction: column; }
    .cb-entry { margin-block: 32px; }
}
/* Elementor content is allowed to control its own layout and width. */
.elementor-page .cb-entry,
.elementor-page .cb-entry-content { width: 100%; max-width: none; margin: 0; padding: 0; }
