/*
Theme Name: CareBear Theme
Theme URI: https://carebear.org
Author: BestDid
Author URI: https://bestdid.com
Description: A professional NGO WordPress theme with warm earthy aesthetics. Built for nonprofits, charities, and foundations. Features include donation forms, event management, volunteer signup, gallery, newsletter, and full Customizer control. Any organization can install this theme, change colors via the Customizer, and have a professional site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carebear-theme
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready

CareBear Theme — Professional NGO Theme
Copyright 2026 BestDid
*/

/* ═══════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════ */
:root {
    --cb-primary: #a2754b;
    --cb-primary-light: #c49a6c;
    --cb-primary-dark: #7d5a3a;
    --cb-primary-glow: rgba(162, 117, 75, 0.15);
    --cb-secondary: #27ae60;
    --cb-secondary-dark: #1e8c4d;
    --cb-secondary-light: #d4efdf;
    --cb-cream: #fffaf2;
    --cb-cream-warm: #fef7ed;
    --cb-dark: #1f2937;
    --cb-dark-soft: #374151;
    --cb-gray: #4b5563;
    --cb-gray-light: #9ca3af;
    --cb-gray-border: #e5e7eb;
    --cb-white: #ffffff;
    --cb-bg: #fafaf8;
    --cb-overlay: rgba(31, 41, 55, 0.7);
    --cb-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --cb-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --cb-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --cb-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --cb-radius: 8px;
    --cb-radius-lg: 16px;
    --cb-radius-xl: 24px;
    --cb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cb-font-heading: 'Cardo', Georgia, 'Times New Roman', serif;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--cb-font-body);
    background: var(--cb-bg);
    color: var(--cb-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--cb-transition); }
ul, ol { list-style: none; }
button, input, textarea, select {
    font-family: inherit; font-size: inherit; color: inherit;
    outline: none;
}
button { cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cb-font-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--cb-dark);
}
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; }
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }
p { line-height: 1.7; }

/* Section label */
.cb-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--cb-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cb-primary);
    margin-bottom: 16px;
}
.cb-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cb-primary);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes cb-fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes cb-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cb-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes cb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes cb-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.cb-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--cb-transition), transform 0.8s var(--cb-transition);
}
.cb-reveal.cb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════ */
.cb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.cb-container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}
.cb-section {
    padding: 100px 0;
}
.cb-section-sm {
    padding: 60px 0;
}
.cb-grid {
    display: grid;
    gap: 32px;
}
.cb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cb-text-center { text-align: center; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--cb-font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all var(--cb-transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.cb-btn svg { flex-shrink: 0; }
.cb-btn-primary {
    background: var(--cb-primary);
    color: var(--cb-white);
}
.cb-btn-primary:hover {
    background: var(--cb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(162,117,75,0.3);
}
.cb-btn-secondary {
    background: var(--cb-secondary);
    color: var(--cb-white);
}
.cb-btn-secondary:hover {
    background: var(--cb-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39,174,96,0.3);
}
.cb-btn-outline {
    background: transparent;
    color: var(--cb-dark);
    border: 2px solid var(--cb-gray-border);
}
.cb-btn-outline:hover {
    border-color: var(--cb-primary);
    color: var(--cb-primary);
}
.cb-btn-outline-light {
    background: transparent;
    color: var(--cb-white);
    border: 2px solid rgba(255,255,255,0.3);
}
.cb-btn-outline-light:hover {
    background: var(--cb-white);
    color: var(--cb-dark);
}
.cb-btn-sm {
    padding: 10px 22px;
    font-size: 13px;
}
.cb-btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.cb-input,
.cb-textarea,
.cb-select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--cb-gray-border);
    border-radius: var(--cb-radius);
    font-family: var(--cb-font-body);
    font-size: 15px;
    color: var(--cb-dark);
    background: var(--cb-white);
    transition: all var(--cb-transition);
}
.cb-input:focus,
.cb-textarea:focus,
.cb-select:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px var(--cb-primary-glow);
}
.cb-input::placeholder,
.cb-textarea::placeholder {
    color: var(--cb-gray-light);
}
.cb-textarea {
    resize: vertical;
    min-height: 120px;
}
.cb-form-group {
    margin-bottom: 20px;
}
.cb-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--cb-dark);
}
.cb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.cb-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-lg);
    overflow: hidden;
    transition: all var(--cb-transition);
    border: 1px solid var(--cb-gray-border);
}
.cb-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cb-shadow-lg);
    border-color: transparent;
}

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.cb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.cb-badge-primary { background: var(--cb-primary-glow); color: var(--cb-primary); }
.cb-badge-secondary { background: var(--cb-secondary-light); color: var(--cb-secondary); }
.cb-badge-dark { background: var(--cb-dark); color: var(--cb-white); }

/* ═══════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════ */
.cb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--cb-transition);
}
.cb-header.cb-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.cb-header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding var(--cb-transition);
}
.cb-header.cb-scrolled .cb-header-inner {
    padding: 14px 24px;
}
.cb-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}
.cb-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--cb-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(162, 117, 75, 0.3);
}
.cb-logo-text {
    font-family: var(--cb-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--cb-white);
    transition: color 0.3s;
}
.cb-logo-text span {
    color: var(--cb-primary-light);
}
.cb-header.cb-scrolled .cb-logo-text {
    color: var(--cb-dark);
}
.cb-logo img {
    max-height: 45px;
    width: auto;
}
.cb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cb-nav li {
    list-style: none;
    display: contents;
}
.cb-nav a {
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    transition: all var(--cb-transition);
    position: relative;
}
.cb-nav a::after { display: none; }
.cb-nav a:hover {
    color: var(--cb-white);
    background: rgba(255,255,255,0.1);
}
.cb-header.cb-scrolled .cb-nav a {
    color: var(--cb-dark-soft);
}
.cb-header.cb-scrolled .cb-nav a:hover {
    color: var(--cb-primary);
    background: var(--cb-primary-glow);
}
.cb-nav a.current-menu-item {
    color: var(--cb-white);
}
.cb-header.cb-scrolled .cb-nav a.current-menu-item {
    color: var(--cb-primary);
}
.cb-nav-cta {
    margin-left: 8px;
    padding: 10px 24px !important;
    background: var(--cb-primary) !important;
    color: var(--cb-white) !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 12px rgba(162, 117, 75, 0.3);
}
.cb-nav-cta:hover {
    background: var(--cb-primary-dark) !important;
    transform: translateY(-1px);
    color: var(--cb-white) !important;
}
.cb-header.cb-scrolled .cb-nav-cta {
    color: var(--cb-white) !important;
}

/* Mobile menu toggle */
.cb-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--cb-radius);
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
}
.cb-header.cb-scrolled .cb-menu-toggle {
    border-color: var(--cb-gray-border);
}
.cb-hamburger {
    width: 22px;
    height: 16px;
    position: relative;
}
.cb-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cb-white);
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}
.cb-hamburger span:nth-child(1) { top: 0; }
.cb-hamburger span:nth-child(2) { top: 7px; }
.cb-hamburger span:nth-child(3) { top: 14px; }
.cb-header.cb-scrolled .cb-hamburger span {
    background: var(--cb-dark);
}
.cb-menu-toggle.active .cb-hamburger span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}
.cb-menu-toggle.active .cb-hamburger span:nth-child(2) { opacity: 0; }
.cb-menu-toggle.active .cb-hamburger span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

/* Mobile menu */
.cb-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cb-white);
    z-index: 999;
    padding: 24px;
    flex-direction: column;
    overflow-y: auto;
}
.cb-mobile-menu.active { display: flex; }
.cb-mobile-menu li { list-style: none; }
.cb-mobile-menu a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--cb-gray-border);
    font-size: 18px;
    font-weight: 500;
    color: var(--cb-dark);
}
.cb-mobile-menu li:last-child a { border-bottom: none; }
.cb-mobile-menu a:hover,
.cb-mobile-menu .current-menu-item a {
    color: var(--cb-primary);
}
.cb-mobile-menu .cb-btn {
    margin-top: 24px;
}

/* ═══════════════════════════════════════════
   INNER PAGE HERO
   ═══════════════════════════════════════════ */
.cb-page-hero {
    padding: 160px 0 100px;
    background: var(--cb-dark);
    position: relative;
    overflow: hidden;
}
.cb-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(162, 117, 75, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(39, 174, 96, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.cb-page-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.cb-page-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}
.cb-page-hero-shape-1 {
    width: 500px; height: 500px;
    background: var(--cb-primary);
    top: -200px; right: -100px;
    animation: cb-float-slow 20s ease-in-out infinite;
}
.cb-page-hero-shape-2 {
    width: 300px; height: 300px;
    background: var(--cb-secondary);
    bottom: -100px; left: 10%;
    animation: cb-float-slow 25s ease-in-out infinite reverse;
}
@keyframes cb-float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.04); }
}
.cb-page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.cb-page-hero h1 {
    font-size: clamp(40px, 5vw, 60px);
    color: var(--cb-white);
    line-height: 1.15;
    margin-bottom: 20px;
    animation: cb-fade-in-up 0.8s ease-out 0.2s both;
}
.cb-page-hero h1 em {
    font-style: italic;
    color: var(--cb-primary-light);
    position: relative;
}
.cb-page-hero h1 em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0; right: 0;
    height: 3px;
    background: var(--cb-primary-light);
    opacity: 0.3;
    border-radius: 2px;
}
.cb-page-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 520px;
    animation: cb-fade-in-up 0.8s ease-out 0.4s both;
}
@keyframes cb-fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breadcrumb */
.cb-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    position: relative;
}
.cb-breadcrumb a {
    color: rgba(255,255,255,0.5);
}
.cb-breadcrumb a:hover {
    color: var(--cb-primary-light);
}
.cb-breadcrumb-sep {
    color: rgba(255,255,255,0.3);
}
.cb-breadcrumb-current {
    color: var(--cb-primary-light);
}

/* ═══════════════════════════════════════════
   NEWSLETTER SECTION
   ═══════════════════════════════════════════ */
.cb-newsletter {
    background: var(--cb-dark);
    border-radius: var(--cb-radius-xl);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cb-newsletter::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cb-primary-glow), transparent 70%);
    pointer-events: none;
}
.cb-newsletter h3 {
    color: var(--cb-white);
    margin-bottom: 12px;
    position: relative;
}
.cb-newsletter p {
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    line-height: 1.7;
    position: relative;
}
.cb-newsletter-form {
    display: flex;
    gap: 10px;
    position: relative;
}
.cb-newsletter-form .cb-input {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--cb-white);
}
.cb-newsletter-form .cb-input:focus {
    border-color: var(--cb-primary);
    background: rgba(255,255,255,0.15);
}
.cb-newsletter-form .cb-input::placeholder {
    color: rgba(255,255,255,0.4);
}
.cb-newsletter-note {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    margin-top: 12px;
    position: relative;
}
.cb-newsletter-msg {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--cb-radius);
    font-size: 14px;
    font-weight: 600;
    position: relative;
}
.cb-newsletter-msg.cb-success {
    display: block;
    background: rgba(39,174,96,0.15);
    color: var(--cb-secondary);
}
.cb-newsletter-msg.cb-error {
    display: block;
    background: rgba(220,38,38,0.15);
    color: #ef4444;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.cb-footer {
    background: var(--cb-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}
.cb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
}
.cb-footer-brand {
    font-family: var(--cb-font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cb-white);
}
.cb-footer-brand span {
    color: var(--cb-primary-light);
}
.cb-footer-about {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 300px;
    margin-bottom: 16px;
}
.cb-footer-ein {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.cb-footer-col h4 {
    font-family: var(--cb-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--cb-white);
}
.cb-footer-col a {
    display: block;
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    transition: all var(--cb-transition);
}
.cb-footer-col a:hover {
    color: var(--cb-primary-light);
    transform: translateX(4px);
}
.cb-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.cb-footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
.cb-footer-socials {
    display: flex;
    gap: 12px;
}
.cb-footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--cb-transition);
}
.cb-footer-socials a:hover {
    background: var(--cb-primary);
    border-color: var(--cb-primary);
    color: var(--cb-white);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════ */
.cb-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cb-primary);
    color: var(--cb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(162,117,75,0.3);
    border: none;
    cursor: pointer;
}
.cb-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cb-scroll-top:hover {
    background: var(--cb-primary-dark);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   WORDPRESS CORE OVERRIDES
   ═══════════════════════════════════════════ */
.wp-block-button__link {
    background: var(--cb-primary);
    color: var(--cb-white);
    border-radius: 50px;
    padding: 14px 32px;
    font-family: var(--cb-font-body);
    font-weight: 600;
    transition: all var(--cb-transition);
}
.wp-block-button__link:hover {
    background: var(--cb-primary-dark);
}
.wp-block-quote {
    border-left: 3px solid var(--cb-primary);
    padding-left: 24px;
    font-style: italic;
}
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 1.5em 0 0.5em; }
.entry-content img { border-radius: var(--cb-radius); }
.entry-content a { color: var(--cb-primary); font-weight: 500; }
.entry-content a:hover { text-decoration: underline; }

/* Comments */
.comment-list { list-style: none; }
.comment-body {
    padding: 24px;
    background: var(--cb-white);
    border-radius: var(--cb-radius-lg);
    border: 1px solid var(--cb-gray-border);
    margin-bottom: 16px;
}
.comment-author .fn { font-weight: 600; }
.comment-metadata { font-size: 13px; color: var(--cb-gray); }
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
    border: 1.5px solid var(--cb-gray-border);
    border-radius: var(--cb-radius);
    padding: 14px 18px;
    background: var(--cb-white);
    width: 100%;
    font-family: var(--cb-font-body);
}
#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond textarea:focus {
    border-color: var(--cb-primary);
    box-shadow: 0 0 0 3px var(--cb-primary-glow);
}
#respond input[type="submit"] {
    background: var(--cb-primary);
    color: var(--cb-white);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-family: var(--cb-font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--cb-transition);
}
#respond input[type="submit"]:hover {
    background: var(--cb-primary-dark);
}

/* Widgets */
.widget { margin-bottom: 32px; }
.widget-title {
    font-family: var(--cb-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.cb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 40px 0;
}
.cb-pagination .page-numbers {
    width: 42px;
    height: 42px;
    border-radius: var(--cb-radius);
    border: 1.5px solid var(--cb-gray-border);
    background: var(--cb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.cb-pagination .page-numbers:hover {
    border-color: var(--cb-primary);
    color: var(--cb-primary);
}
.cb-pagination .page-numbers.current {
    background: var(--cb-primary);
    color: var(--cb-white);
    border-color: var(--cb-primary);
}

/* Section subtitle */
.cb-section-subtitle {
    font-size: 17px;
    color: var(--cb-gray);
    line-height: 1.8;
    max-width: 600px;
}
.cb-text-center .cb-section-subtitle {
    margin: 0 auto;
}

/* Form message */
.cb-form-msg {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--cb-radius);
    font-size: 14px;
    font-weight: 600;
}
.cb-form-msg.cb-success {
    display: block;
    background: rgba(39,174,96,0.1);
    color: var(--cb-secondary);
}
.cb-form-msg.cb-error {
    display: block;
    background: rgba(220,38,38,0.1);
    color: #ef4444;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cb-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cb-newsletter { grid-template-columns: 1fr; padding: 48px; }
    .cb-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .cb-section { padding: 70px 0; }
    .cb-nav { display: none; }
    .cb-menu-toggle { display: flex; }
    .cb-grid-2, .cb-grid-3, .cb-grid-4 { grid-template-columns: 1fr; }
    .cb-form-row { grid-template-columns: 1fr; }
    .cb-newsletter { padding: 36px 24px; }
    .cb-newsletter-form { flex-direction: column; }
    .cb-footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cb-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .cb-page-hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
    .cb-container { padding: 0 16px; }
    h1 { font-size: clamp(28px, 8vw, 40px); }
    h2 { font-size: clamp(24px, 6vw, 36px); }
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--cb-primary);
    outline-offset: 2px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print */
@media print {
    .cb-header, .cb-footer, .cb-scroll-top,
    .cb-newsletter, .cb-mobile-menu { display: none !important; }
    body { background: white; color: black; }
}
