/* =============================================================================
   CONSUMER WATCHDOG 2026 — SINGLE CONSOLIDATED THEME STYLESHEET
   One file. No overrides. No conflicts.
   Fonts: self-hosted woff2 (assets/fonts/) — no Google Fonts network requests.
   Print styles: print.css  |  Editor styles: editor-style.css
   ============================================================================= */

/* =============================================================================
   0. SELF-HOSTED FONTS  (latin subset only — woff2, font-display:swap)
   ============================================================================= */

/* Open Sans 300 latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/open-sans-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans 400 latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/open-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans 600 latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/open-sans-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans 700 latin */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/open-sans-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto 300 latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/roboto-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto 400 latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto 500 latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Roboto 700 latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rubik 300 latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/rubik-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rubik 400 latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/rubik-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rubik 500 latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/rubik-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rubik 600 latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/rubik-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Rubik 700 latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rubik-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat 700 latin — matches production headline font */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================================
   1. CSS VARIABLES
   ============================================================================= */

:root {
    /* Colors */
    --blue:          #1e73be;
    --blue-dark:     #155a9a;
    --text:          #111;
    --text-body:     #333;
    --text-meta:     #767676;
    --text-light:    #999;
    --border:        #e0e0e0;
    --border-light:  #ebebeb;
    --bg-white:      #fff;
    --bg-light:      #f5f5f5;
    --bg-card:       #fff;

    /* Typography */
    --font-headline: 'Montserrat', 'Roboto', sans-serif;
    --font-head:     'Roboto', -apple-system, sans-serif;
    --font-body:     'Open Sans', sans-serif;
    --font-card:     'Rubik', 'Open Sans', sans-serif;

    /* Layout */
    --max-width:     1200px;
    --sidebar-width: 350px;
    --gap:           40px;

    /* Shadows */
    --shadow-card:   0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover:  0 6px 20px rgba(0,0,0,0.11);
}


/* =============================================================================
   2. BASE RESET & GLOBAL
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-light);
    margin: 0;
    padding: 0 !important; /* override WP global-styles body padding */
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    margin: 0 0 16px;
    line-height: 1.25;
    font-weight: 500;
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

/* kill WP default first-of-type margin reset */
.site-content > * { margin-top: 0; }

/* z-index layers */
header, #site-header { z-index: 100; }
.sub-menu, .cwd-dropdown-menu { z-index: 1000; }


/* =============================================================================
   3. LAYOUT — CONTAINER & TWO-COLUMN
   ============================================================================= */

.cwd-content-area {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.cwd-single-layout {
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
}

.cwd-site-main {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

/* Sidebars */
.cwd-context-sidebar,
.cwd-homepage-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    min-width: var(--sidebar-width);
}


/* =============================================================================
   4. SIDEBAR WIDGETS
   ============================================================================= */

.cwd-context-sidebar .cwd-sidebar-widget,
.cwd-homepage-sidebar .cwd-sidebar-widget,
.cwd-context-sidebar .widget,
.cwd-homepage-sidebar .widget,
.cwd-sidebar-widget {
    background: var(--bg-white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

/* Widget titles — ALL sidebar heading types */
.cwd-context-sidebar h3,
.cwd-context-sidebar h4,
.cwd-homepage-sidebar h3,
.cwd-homepage-sidebar h4,
.cwd-context-sidebar .widget-title,
.cwd-homepage-sidebar .widget-title,
.cwd-sidebar-widget h3,
.cwd-sidebar-widget h4,
.cwd-sidebar-widget .widget-title,
.widget-title,
.widgettitle {
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--text) !important;
    margin: 0 0 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--border) !important;
    line-height: 1.2 !important;
    position: static !important;
    background: none !important;
}

/* Remove any pseudo-element decorators */
.widget-title::after,
.widgettitle::after,
.cwd-sidebar-widget h3::after,
.cwd-sidebar-widget h4::after { display: none !important; content: none !important; }

/* Sidebar article rows */
.cwd-sidebar-widget article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}
.cwd-sidebar-widget article:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.cwd-sidebar-widget article h4 {
    margin: 0 0 5px;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.cwd-sidebar-widget article h4 a {
    color: var(--text);
    text-decoration: none;
}
.cwd-sidebar-widget article h4 a:hover { color: var(--blue); }

/* Sidebar links styling */
.cwd-context-sidebar a,
.cwd-homepage-sidebar a {
    color: var(--text);
    text-decoration: none;
}
.cwd-context-sidebar a:hover,
.cwd-homepage-sidebar a:hover { color: var(--blue); }


/* =============================================================================
   5. HEADER + NAVIGATION
   ============================================================================= */

/* ── Utility bar (top row: Home | About | Updates…) ── */
.cwd-utility-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.cwd-utility-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* CRITICAL: only target the TOP-LEVEL ul, NOT nested dropdown uls */
.cwd-utility-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: wrap;
}
.cwd-utility-nav > ul > li {
    position: relative;
}
.cwd-utility-nav > ul > li > a {
    display: inline-block;
    padding: 0 10px;
    line-height: 36px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.cwd-utility-nav > ul > li:hover > a { color: var(--blue); }

.cwd-utility-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 1px 2px 8px rgba(0,0,0,0.15);
    border-top: 2px solid var(--blue);
    z-index: 9000;
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.cwd-utility-nav > ul > li.has-dropdown:hover .cwd-utility-dropdown { display: block; }
.cwd-utility-dropdown li a {
    display: block;
    padding: 7px 16px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, color 0.15s;
}
.cwd-utility-dropdown li:last-child a { border-bottom: none; }
.cwd-utility-dropdown li a:hover { background: #f8f8f8; color: var(--blue); }

/* ── Logo row ── */
.cwd-logo-row {
    background: #fff;
    padding: 20px 0 16px;
}
.cwd-logo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cwd-logo-spacer { flex: 1; display: flex; align-items: center; }
.cwd-logo-center { text-align: center; flex: 0 0 auto; }
.cwd-logo-link { display: inline-block; line-height: 0; }
.cwd-logo-img { height: 75px; width: auto; display: block; }
.cwd-tagline {
    margin: 6px 0 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-style: italic;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.01em;
}
.cwd-logo-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.cwd-logo-right-social {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cwd-donate-btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s;
}
.cwd-donate-btn:hover { background: var(--blue-dark); color: #fff; }

/* ── Social icons bar ── */
.cwd-social-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.cwd-social-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.cwd-social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 0;
}
.cwd-social-link:hover { opacity: 1; transform: translateY(-1px); }

/* ── Main topic nav bar ── */
.cwd-main-nav-bar {
    background: #fff;
    border-bottom: 3px solid var(--blue);
    position: sticky;
    top: 0;
    z-index: 500;
}
/* Sticky nav logo — hidden until user scrolls (body.scrolled added by JS) */
.cwd-sticky-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 16px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
body.scrolled .cwd-sticky-logo {
    opacity: 1;
    pointer-events: auto;
}
.cwd-sticky-logo img {
    height: 34px;
    width: auto;
    display: block;
}
@media (max-width: 900px) {
    .cwd-sticky-logo { display: none !important; }
}
.cwd-main-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
}
.cwd-topic-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex: 1;
}
.cwd-topic-nav > li { position: relative; }
.cwd-topic-nav > li > a {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.cwd-topic-nav > li:hover > a,
.cwd-topic-nav > li.current-menu-item > a,
.cwd-topic-nav > li.current-menu-ancestor > a {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* Topic dropdowns */
.cwd-topic-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-top: 3px solid var(--blue);
    z-index: 9000;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.cwd-topic-nav > li.has-dropdown:hover .cwd-topic-dropdown { display: block; }
.cwd-topic-dropdown li a {
    display: block;
    padding: 9px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
    transition: background 0.15s, color 0.15s;
}
.cwd-topic-dropdown li:last-child a { border-bottom: none; }
.cwd-topic-dropdown li a:hover { background: #f8f9fa; color: var(--blue); padding-left: 26px; }

/* Nav search button */
.cwd-nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #111;
    cursor: pointer;
    padding: 14px 16px;
    margin-left: auto;
    transition: color 0.2s;
}
.cwd-nav-search-btn:hover { color: var(--blue); }

/* Inline search bar (below nav, hidden by default) */
.cwd-nav-search-bar {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 12px 0;
}
.cwd-nav-search-bar[hidden] { display: none; }
.cwd-nav-search-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cwd-nav-search-inner form { display: flex; flex: 1; }
.cwd-nav-search-inner input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-family: var(--font-body);
    font-size: 15px;
    color: #333;
    background: #fff;
    outline: none;
}
.cwd-nav-search-inner input:focus { border-color: var(--blue); }
.cwd-nav-search-inner button[type="submit"] {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.cwd-nav-search-inner button[type="submit"]:hover { background: var(--blue-dark); }
.cwd-search-close {
    background: none;
    border: none;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.cwd-search-close:hover { color: #111; }


/* =============================================================================
   5b. MOBILE NAV DRAWER + HAMBURGER
   ============================================================================= */

/* Hamburger — hidden on desktop, shown ≤768px */
.cwd-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}
.cwd-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Backdrop overlay */
.cwd-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
body.cwd-nav-open .cwd-nav-backdrop { display: block; }
body.cwd-nav-open { overflow: hidden; }

/* Mobile nav drawer — slides in from right */
.cwd-mobile-nav-wrapper {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100%;
    background: #222;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
}
body.cwd-nav-open .cwd-mobile-nav-wrapper { right: 0; }

/* Mobile nav header row */
.cwd-mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
}
.cwd-mobile-nav-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}
.cwd-mobile-nav-close:hover { color: #fff; }

/* Mobile nav body */
.cwd-mobile-nav-body > a {
    display: block;
    padding: 13px 20px;
    color: #fff;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.15s, padding-left 0.15s;
}
.cwd-mobile-nav-body > a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 28px;
}
.mobile-nav-subitems {
    background: rgba(0, 0, 0, 0.2);
}
.mobile-nav-subitems a {
    display: block;
    padding: 10px 20px 10px 38px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.mobile-nav-subitems a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 46px;
}

/* Mobile search box */
.cwd-mobile-search {
    padding: 16px 20px;
    display: flex;
}
.cwd-mobile-search input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    border-radius: 3px 0 0 3px;
}
.cwd-mobile-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.cwd-mobile-search button {
    background: #d32f2f;
    border: 1px solid #d32f2f;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}

/* Mobile-only logo in sticky nav bar */
.cwd-mobile-logo {
    display: none;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.cwd-mobile-logo img {
    height: 32px;
    width: auto;
    display: block;
}

/* Mobile donate CTA */
.cwd-mobile-nav-donate {
    padding: 20px;
}
.cwd-mobile-nav-donate a {
    display: block;
    text-align: center;
    background: #4db2ec;
    color: #fff;
    padding: 13px 24px;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}
.cwd-mobile-nav-donate a:hover { background: #3a9bd9; }

/* Desktop: hide hamburger + mobile logo, show full nav */
@media (min-width: 901px) {
    .cwd-hamburger { display: none !important; }
    .cwd-mobile-logo { display: none !important; }
    .cwd-mobile-nav-wrapper { display: none !important; }
    .cwd-nav-backdrop { display: none !important; }
}

/* Mobile: hide desktop nav items (responsive block above handles the rest) */
@media (max-width: 768px) {
    .top-bar-menu,
    .main-navigation { display: none !important; }
}

/* =============================================================================
   6. HERO SLIDER
   ============================================================================= */

.cwd-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.cwd-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cwd-slide {
    flex: 0 0 100%;
    position: relative;
    min-height: 500px;
}

.cwd-slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.cwd-slide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.cwd-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
}

.cwd-slide-category {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 4px 12px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    margin-bottom: 12px;
    text-decoration: none;
}

.cwd-slide-title {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cwd-slide-title a { color: #fff; text-decoration: none; }

.cwd-slide-meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* Slider controls */
.cwd-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cwd-slider-btn:hover { background: var(--blue); }
.cwd-slider-prev { left: 16px; }
.cwd-slider-next { right: 16px; }

.cwd-slider-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.cwd-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.cwd-slider-dot.active { background: #fff; }


/* =============================================================================
   6b. HOMEPAGE FEATURED SLIDER (fade transition, fills frame)
   ============================================================================= */

.featured-slider-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    margin-bottom: 40px;
}

.featured-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-viewport {
    position: relative;
    width: 100%;
    height: 520px;
    background: #111;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide stacked — fade via .active */
.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.75s ease;
    pointer-events: none;
    z-index: 0;
}
.slider-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Image fills the frame perfectly */
.slide-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Dark gradient so text is always readable */
.slide-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.30) 35%,
        rgba(0,0,0,0.88) 100%
    );
    z-index: 1;
}

/* Title text centered over image */
.slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 0 60px 70px;
}
.slide-content-inner {
    max-width: 920px;
    width: 100%;
}
.slide-title {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 44px !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    color: #fff !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.8) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.slide-title a {
    color: #fff !important;
    text-decoration: none !important;
}
.slide-title a:hover {
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
}

/* Prev / Next arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}
.slider-nav:hover {
    background: rgba(0,0,0,0.75);
    border-color: rgba(255,255,255,0.85);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Dot indicators — centred bottom */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.25);
}

/* Progress bar — fills in 6 s, resets on slide change */
.slider-progress-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.18);
    z-index: 10;
}
.slider-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
    transition: none;
}
.slider-progress-fill.running {
    width: 100%;
    transition: width 6s linear;
}

@media (max-width: 768px) {
    .slider-viewport { height: 260px; }
    .slide-content { padding: 0 20px 52px; }
    .slide-title { font-size: 20px !important; -webkit-line-clamp: 3 !important; }
    .slider-nav { width: 38px; height: 38px; }
    .slider-nav svg { width: 18px; height: 18px; }
}

/* =============================================================================
   7. HOMEPAGE — SECTION MODULES
   ============================================================================= */

.cwd-section {
    margin-bottom: 48px;
    clear: both;
    width: 100%;
}

.cwd-section-title-wrap {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #85a1b2;
}

.cwd-section-title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
    display: inline-block;
    color: var(--text);
}
.cwd-section-title a { color: var(--text); text-decoration: none; }
.cwd-section-title a:hover { color: #85a1b2; }

/* ── td-block homepage section cards ────────────────────────────────────────── */

/* Section header: red left accent bar */
.td-block-title-wrap {
    border-bottom: 3px solid #e0e0e0;
    margin-bottom: 22px !important;
    padding-bottom: 0 !important;
}
.td-block-title-wrap .block-title {
    position: relative;
    display: inline-block;
    margin: 0 !important;
    padding: 0 0 12px 14px !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #111 !important;
    background: transparent !important;
    border: none !important;
    line-height: 1.2 !important;
}
.td-block-title-wrap .block-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 12px;
    width: 4px;
    background: #cc0000;
    border-radius: 2px;
}
.td-block-title-wrap .block-title a {
    color: #111 !important;
    text-decoration: none !important;
}
.td-block-title-wrap .block-title a:hover { color: #cc0000 !important; }
.td-block-viewall {
    position: absolute;
    right: 0;
    bottom: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1e73be !important;
    text-decoration: none !important;
}
.td-block-viewall:hover { color: #cc0000 !important; }

/* Large hero image — consistent 2:3 aspect ratio */
.td-module-flex-1 .td-image-wrap {
    display: block;
    position: relative;
    padding-bottom: 60% !important;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 3px;
}
.td-module-flex-1 .td-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Large post title — full text, no clamp */
.td-module-flex-1 .entry-title.td-module-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111 !important;
    margin: 0 0 8px 0 !important;
    /* NO line-clamp — show full title */
}
.td-module-flex-1 .entry-title.td-module-title a {
    color: #111;
    text-decoration: none;
}
.td-module-flex-1 .entry-title.td-module-title a:hover { color: #cc0000; }

/* Small post — thumbnail fixed, title full display */
.td-module-flex-2 .td-image-wrap {
    flex: 0 0 120px !important;
    width: 120px !important;
    height: 82px !important;
    overflow: hidden !important;
    border-radius: 3px !important;
    position: relative !important;
}
.td-module-flex-2 .td-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
.td-module-flex-2 .entry-title.td-module-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #111 !important;
    margin-bottom: 5px !important;
    /* NO line-clamp — show full title */
}
.td-module-flex-2 .entry-title.td-module-title a {
    color: #111;
    text-decoration: none;
}
.td-module-flex-2 .entry-title.td-module-title a:hover { color: #cc0000; }
.td-module-flex-2 {
    align-items: flex-start !important;
    padding-bottom: 14px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.td-module-flex-2:last-child { border-bottom: none !important; }

/* Section block spacing */
.td-flex-block-3.cwd-td-block {
    margin-bottom: 48px !important;
}
.td-flex-block-grid {
    align-items: start !important;
    gap: 30px !important;
    min-width: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────────── */

/* Large featured item (50% left) */
.cwd-item-large {
    display: inline-block;
    width: 50%;
    float: left;
    box-sizing: border-box;
}

.cwd-item-large .cwd-image-wrap {
    display: block;
    position: relative;
    padding-bottom: 72%;
    overflow: hidden;
}

.cwd-item-large .cwd-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
/* hover image-zoom removed — clean on hover */

.cwd-item-large .cwd-meta-info { padding: 13px 0 0; }

.cwd-item-large .cwd-title {
    margin: 6px 0;
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}
.cwd-item-large .cwd-title a { color: var(--text); text-decoration: none; }
.cwd-item-large .cwd-title a:hover { color: var(--blue); }

.cwd-item-large .cwd-meta {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-meta);
    margin-bottom: 7px;
    line-height: 1;
}

.cwd-item-large .cwd-excerpt {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 21px;
    color: var(--text-meta);
    font-family: var(--font-body);
}

/* Small column items (50% right) */
.cwd-items-small-column {
    float: left;
    width: 50%;
    box-sizing: border-box;
}

.cwd-item-small { display: inline-block; width: 100%; }

.cwd-item-small .cwd-item-container {
    display: flex;
    flex-direction: row;
}

.cwd-item-small .cwd-image-wrap {
    display: block;
    position: relative;
    padding-bottom: 70%;
    overflow: hidden;
}

.cwd-item-small .cwd-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.cwd-item-small .cwd-content { padding: 0 0 0 16px; }

.cwd-item-small .cwd-title {
    margin: 6px 0;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text);
}
.cwd-item-small .cwd-title a { color: var(--text); text-decoration: none; }
.cwd-item-small .cwd-title a:hover { color: var(--blue); }

.cwd-item-small .cwd-meta {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-meta);
    margin-bottom: 7px;
}

/* Category badge */
.cwd-cat-badge,
.cwd-category-badge {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 3px 10px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 6px;
}
.cwd-cat-badge:hover,
.cwd-category-badge:hover { background: var(--blue-dark); color: #fff; }

/* Section clearfix */
.cwd-section-inner::after { content: ''; display: table; clear: both; }


/* =============================================================================
   8. CATEGORY / ARCHIVE PAGES
   ============================================================================= */

.cwd-category-header,
.cwd-archive-header,
.cwd-search-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--blue);
}

.cwd-category-title,
.cwd-archive-title,
.cwd-search-header h1 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    text-transform: uppercase;
}

.cwd-archive-description {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-meta);
    margin: 0;
}

/* Post cards in lists (category, archive) */
.cwd-category-post-item,
.cwd-archive-post-item,
.cwd-search-result-item {
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.cwd-category-post-item .entry-title,
.cwd-archive-post-item .entry-title,
.cwd-search-result-item .entry-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px;
}
.cwd-category-post-item .entry-title a,
.cwd-archive-post-item .entry-title a,
.cwd-search-result-item .entry-title a {
    color: var(--text);
    text-decoration: none;
}
.cwd-category-post-item .entry-title a:hover,
.cwd-archive-post-item .entry-title a:hover,
.cwd-search-result-item .entry-title a:hover { color: var(--blue); }

.cwd-post-meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-meta);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cwd-post-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 14px;
}


/* =============================================================================
   9. SINGLE POST
   ============================================================================= */

/* Entry meta bar (date, author, read time) */
.cwd-entry-meta-top {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.cwd-entry-meta-top a { color: var(--text); text-decoration: none; font-weight: 700; }
.cwd-entry-meta-top a:hover { color: var(--blue); }

/* Hero title — matches production: Montserrat 700, large, tight */
.single .entry-header .entry-title,
.single .cwd-entry-title,
.single h1.entry-title {
    font-family: 'Montserrat', 'Roboto', sans-serif !important;
    font-size: 52px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #000 !important;
    letter-spacing: -0.04em !important;
    margin: 0 0 20px !important;
}

/* Post body text */
.single .entry-content,
.page .entry-content {
    font-family: var(--font-body) !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #333 !important;
    max-width: 100% !important;
}

.single .entry-content p,
.page .entry-content p {
    font-family: var(--font-body) !important;
    font-size: 18px !important;
    line-height: 1.7 !important;
    color: #333 !important;
    margin: 0 0 20px !important;
    font-weight: 400 !important;
}

/* Content headings */
.single .entry-content h1, .page .entry-content h1 {
    font-family: var(--font-head) !important; font-size: 32px !important;
    font-weight: 700 !important; color: var(--text) !important; margin: 6px 0 20px !important;
}
.single .entry-content h2, .page .entry-content h2 {
    font-family: var(--font-head) !important; font-size: 32px !important;
    font-weight: 700 !important; color: #000 !important; margin: 35px 0 20px !important; line-height: 1.3 !important;
}
.single .entry-content h3, .page .entry-content h3 {
    font-family: var(--font-head) !important; font-size: 26px !important;
    font-weight: 700 !important; color: #000 !important; margin: 30px 0 15px !important; line-height: 1.3 !important;
}
.single .entry-content h4, .page .entry-content h4 {
    font-family: var(--font-head) !important; font-size: 20px !important;
    font-weight: 700 !important; color: #222 !important; margin: 24px 0 12px !important;
}

/* Content strong/bold */
.single .entry-content strong, .page .entry-content strong,
.single .entry-content b, .page .entry-content b {
    font-weight: 700 !important;
    color: #000 !important;
}

/* Content links */
.single .entry-content a,
.page .entry-content a { color: var(--blue) !important; text-decoration: none !important; border-bottom: 1px solid var(--blue) !important; }
.single .entry-content a:hover,
.page .entry-content a:hover { color: var(--blue-dark) !important; border-bottom: 2px solid var(--blue-dark) !important; }

/* Content lists */
.single .entry-content ul,
.page .entry-content ul {
    font-size: 18px; line-height: 1.7; color: #333;
    padding-left: 30px; margin: 20px 0; list-style: disc;
}
.single .entry-content ol,
.page .entry-content ol {
    font-size: 18px; line-height: 1.7; color: #333;
    padding-left: 30px; margin: 20px 0; list-style: decimal;
}
.single .entry-content ul li,
.page .entry-content ul li,
.single .entry-content ol li,
.page .entry-content ol li {
    font-size: 18px; line-height: 1.7; margin-bottom: 10px;
}

/* Blockquote */
.single .entry-content blockquote,
.page .entry-content blockquote {
    border-left: 4px solid var(--blue);
    margin: 24px 0;
    padding: 12px 20px;
    background: #f8fafc;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
}

/* Featured image */
.post-thumbnail { margin-bottom: 28px; }
.post-thumbnail img { width: 100%; height: auto; border-radius: 4px; }

/* =============================================================================
   RELATED POSTS — full-width below the two-column layout
   ============================================================================= */
.cwd-related-posts {
    margin: 50px 0 0 0;
    padding: 40px 0 0 0;
    border-top: 3px solid #e0e0e0;
}
.cwd-related-posts-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 25px;
}
.cwd-related-posts-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin: 0;
}
.cwd-related-posts-more {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.2px;
}
.cwd-related-posts-more:hover { color: var(--blue); }

.cwd-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cwd-related-post-card {
    overflow: hidden;
}
.cwd-related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cwd-related-post-thumb {
    position: relative;
    padding-bottom: 66.667%; /* 3:2 ratio — uniform for all cards */
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 12px;
}
.cwd-related-post-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.cwd-related-post-card:hover .cwd-related-post-thumb img {
    transform: scale(1.04);
}
.cwd-related-post-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.cwd-related-post-card:hover .cwd-related-post-title {
    color: var(--blue);
}

@media (max-width: 700px) {
    .cwd-related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 440px) {
    .cwd-related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Author box below post */
.cwd-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-top: 44px;
    border: 1px solid var(--border);
}
.cwd-author-box img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0;
}
.cwd-author-box h4 {
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 6px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.cwd-author-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-meta);
    margin: 0;
}

/* ── Share bar (below byline) ── */
.cwd-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}
.cwd-share-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #999;
    text-transform: uppercase;
    margin-right: 4px;
}
.cwd-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
}
/* Platform brand colors — filled circles, always visible */
.cwd-share-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.cwd-share-twitter  { background: #111;    border-color: #111;    color: #fff; }
.cwd-share-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.cwd-share-linkedin { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.cwd-share-reddit   { background: #ff4500; border-color: #ff4500; color: #fff; }
.cwd-share-email    { background: #555;    border-color: #555;    color: #fff; }
.cwd-share-print    { background: #333;    border-color: #333;    color: #fff; }
.cwd-share-copy     { background: #607d8b; border-color: #607d8b; color: #fff; }
.cwd-share-btn:hover { transform: translateY(-3px) scale(1.08); filter: brightness(1.15); }


/* =============================================================================
   10. AUTHOR PROFILE PAGE
   All styles defined here — author.php <style> block is supplementary
   ============================================================================= */

.cwd-author-profile-wrap {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 44px;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.cwd-author-profile-info { flex: 1; min-width: 0; }

.cwd-author-profile-info h1 {
    font-family: var(--font-body) !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    margin: 0 0 8px !important;
    color: var(--text) !important;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
}

.cwd-author-profile-count {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--blue);
    margin-bottom: 20px;
}

.cwd-author-profile-bio,
.cwd-author-profile-bio p {
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    line-height: 1.78 !important;
    color: #444 !important;
    font-style: normal !important;
    margin: 0 0 14px !important;
}
.cwd-author-profile-bio p:last-child { margin-bottom: 0 !important; }

.cwd-author-profile-photo { flex-shrink: 0; width: 280px; }
.cwd-author-profile-photo img {
    width: 280px !important;
    height: 280px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13) !important;
    border: none !important;
}

/* Author article list */
.cwd-author-posts-heading {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--text) !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--border) !important;
}

.cwd-author-article-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
}
.cwd-author-article-row:last-of-type { border-bottom: none; }

.cwd-author-article-thumb {
    flex-shrink: 0;
    width: 110px;
    height: 74px;
    overflow: hidden;
    border-radius: 4px;
    line-height: 0;
    display: block;
}
.cwd-author-article-thumb img {
    width: 110px !important;
    height: 74px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}
.cwd-author-article-thumb:hover img { transform: scale(1.06); }

.cwd-author-article-body { flex: 1; min-width: 0; }

.cwd-author-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.cwd-author-article-cat {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    padding: 2px 9px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border-radius: 3px;
    font-family: var(--font-body);
    line-height: 1.6;
}
.cwd-author-article-cat:hover { background: var(--blue-dark); }

.cwd-author-article-date {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-light);
}

.cwd-author-article-title {
    margin: 0 0 6px !important;
    font-family: var(--font-body) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--text) !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    text-transform: none !important;
}
.cwd-author-article-title a {
    color: var(--text) !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.cwd-author-article-title a:hover { color: var(--blue) !important; }

.cwd-author-article-excerpt {
    margin: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #666 !important;
}

/* Author pagination */
.cwd-author-pagination {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid var(--border);
    text-align: center;
}
.cwd-author-pagination .page-numbers {
    display: inline-block;
    padding: 9px 15px;
    margin: 0 3px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.2s;
}
.cwd-author-pagination .page-numbers:hover,
.cwd-author-pagination .page-numbers.current {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}


/* =============================================================================
   11. COMMENTS
   ============================================================================= */

.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.comments-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 28px;
}

.comment-list { list-style: none; margin: 0; padding: 0; }

.comment-body {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.comment-author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.comment-author-name a { color: var(--text); text-decoration: none; }
.comment-author-name a:hover { color: var(--blue); }

.comment-meta { font-size: 12px; color: var(--text-meta); margin-bottom: 10px; }

.comment-content p { font-size: 15px; line-height: 1.65; color: var(--text-body); margin-bottom: 12px; }

.reply a {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Comment form */
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment { margin-bottom: 18px; }

.comment-form label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--blue); }

.comment-form .submit {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-form .submit:hover { background: var(--blue-dark); }


/* =============================================================================
   12. SEARCH
   ============================================================================= */

.cwd-search-form { margin-bottom: 32px; }

.cwd-search-form form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.cwd-search-form input[type="search"] {
    flex: 1;
    padding: 14px 18px;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: transparent;
}
.cwd-search-form input[type="search"]:focus { outline: none; }

.cwd-search-form button[type="submit"] {
    padding: 14px 20px;
    background: var(--blue);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.cwd-search-form button:hover { background: var(--blue-dark); }

/* Search highlights */
mark, .search-highlight {
    background: #fff3cd;
    padding: 1px 3px;
    border-radius: 2px;
}


/* =============================================================================
   13. PAGINATION
   ============================================================================= */

.cwd-pagination {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 2px solid var(--border);
    text-align: center;
}

.cwd-pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }

.cwd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 2px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}
.cwd-pagination .page-numbers:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.cwd-pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.cwd-pagination .page-numbers.dots { border: none; background: none; pointer-events: none; }

.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 2px solid var(--border);
}
.posts-navigation .nav-links a,
.post-navigation .nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}


/* =============================================================================
   14. BREADCRUMBS
   ============================================================================= */

.cwd-breadcrumb {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-meta);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.cwd-breadcrumb a { color: var(--text-meta); text-decoration: none; }
.cwd-breadcrumb a:hover { color: var(--blue); }
.cwd-breadcrumb .sep { color: var(--border); }
.cwd-breadcrumb .current { color: var(--text); font-weight: 600; }


/* =============================================================================
   15. ACCESSIBILITY
   ============================================================================= */

.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;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link:focus { clip: auto !important; clip-path: none; height: auto; width: auto; }

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }


/* =============================================================================
   16. UTILITY CLASSES
   ============================================================================= */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.sr-only     { @extend .screen-reader-text; }

/* Blue pill button */
.btn-blue,
.cwd-btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-blue:hover,
.cwd-btn:hover { background: var(--blue-dark); color: #fff; }

/* Donate / CTA widget (orange is intentional here) */
.cwd-donate-widget {
    background: linear-gradient(135deg, #d18620 0%, #f7a009 100%);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}
.cwd-donate-widget h3 {
    border-bottom: none !important;
    color: #fff !important;
    font-size: 20px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
}
.cwd-donate-widget .cwd-donate-btn {
    display: inline-block;
    background: #fff;
    color: #d18620;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.25s;
}
.cwd-donate-widget .cwd-donate-btn:hover { background: #111; color: #fff; }

/* Newsletter widget */
.cwd-newsletter-widget input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 8px;
}
.cwd-newsletter-widget button,
.cwd-submit-button {
    width: 100%;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s;
}
.cwd-newsletter-widget button:hover,
.cwd-submit-button:hover { background: var(--blue-dark); }


/* =============================================================================
   17. CLOUD TEMPLATES (page template card modules)
   ============================================================================= */

.cwd-cloud-card {
    background: var(--bg-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.cwd-cloud-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.cwd-cloud-card .cwd-card-body { padding: 16px; }

.cwd-cloud-card .cwd-card-title {
    font-family: var(--font-card) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: var(--text) !important;
    margin: 0 0 8px !important;
}
.cwd-cloud-card .cwd-card-title a { color: var(--text); text-decoration: none; }
.cwd-cloud-card .cwd-card-title a:hover { color: var(--blue); }

.cwd-cloud-card .cwd-card-meta {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-light);
}


/* =============================================================================
   18. PRINT
   ============================================================================= */

@media print {
    .cwd-context-sidebar,
    .cwd-homepage-sidebar,
    .cwd-nav-wrap,
    .cwd-hero-slider,
    .cwd-pagination,
    .comments-respond,
    .cwd-breadcrumb { display: none !important; }

    .cwd-single-layout { display: block !important; }
    .cwd-site-main { max-width: 100% !important; }

    body { font-size: 13px; line-height: 1.6; color: #000; background: #fff; }

    a { color: #000; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 11px; }
    a[href^="#"]::after,
    a[href^="javascript:"]::after { content: ""; }

    h1, h2, h3, h4, h5, h6 { color: #000; page-break-after: avoid; }
    img { max-width: 100% !important; }
    p, blockquote, ul, ol { orphans: 3; widows: 3; }
}


/* =============================================================================
   19. RESPONSIVE — MOBILE
   ============================================================================= */

/* Tablet: 768px – 1019px */
@media (max-width: 1019px) {
    :root { --sidebar-width: 300px; --gap: 28px; }

    .cwd-slide-title { font-size: 28px; }
    .cwd-slide-content { padding: 24px; }

    .cwd-section-title { font-size: 15px; }
    .cwd-item-large .cwd-title { font-size: 17px; line-height: 22px; }
    .cwd-item-small .cwd-title { font-size: 12px; }

    .single .entry-header .entry-title,
    .single .cwd-entry-title,
    .single h1.entry-title { font-size: 38px !important; line-height: 1.1 !important; }

    .cwd-author-profile-info h1 { font-size: 32px !important; }
    .cwd-author-profile-photo { width: 220px; }
    .cwd-author-profile-photo img { width: 220px !important; height: 220px !important; }

    /* Header — tablet tweaks */
    .cwd-topic-nav > li > a { padding: 13px 12px; font-size: 12px; }
    .cwd-logo-img { height: 60px; }
}

/* Mobile: ≤ 767px */
@media (max-width: 767px) {
    /* Stack sidebar below main */
    .cwd-single-layout,
    .category .cwd-single-layout,
    .archive .cwd-single-layout,
    .search-results .cwd-single-layout,
    .author .cwd-single-layout { flex-direction: column !important; }

    .cwd-site-main { max-width: 100% !important; }
    .cwd-context-sidebar,
    .cwd-homepage-sidebar { width: 100% !important; min-width: 0 !important; }

    /* Homepage modules stack */
    .cwd-item-large,
    .cwd-items-small-column { width: 100% !important; float: none !important; }

    /* Slider */
    .cwd-slide { min-height: 280px; }
    .cwd-slide-title { font-size: 22px; }
    .cwd-slide-content { padding: 16px; }
    .cwd-slider-btn { width: 36px; height: 36px; }

    /* Header rows — hide on mobile; hamburger/drawer handles nav */
    .cwd-utility-bar { display: none; }
    .cwd-logo-right-social { display: none !important; }
    /* Keep nav bar visible so hamburger shows — hide only the desktop nav items */
    .cwd-topic-nav { display: none !important; }
    .cwd-nav-search-btn { display: none !important; }
    .cwd-nav-search-bar { display: none !important; }
    /* Mobile nav bar: logo left, hamburger right */
    .cwd-main-nav-inner { justify-content: space-between !important; padding: 4px 16px; min-height: 48px; }
    .cwd-mobile-logo { display: flex !important; }
    .cwd-sticky-logo { display: none !important; }
    .cwd-hamburger { display: flex !important; }
    .cwd-hamburger span { background: #333; }
    /* Hide donate button in header — it lives in the hamburger drawer */
    .cwd-logo-row .cwd-donate-btn { display: none !important; }
    .cwd-logo-row { padding: 10px 0; }
    .cwd-logo-img { height: 46px; }
    .cwd-tagline { font-size: 12px; }

    /* Single post */
    .single .entry-header .entry-title,
    .single h1.entry-title { font-size: 28px !important; line-height: 1.1 !important; }

    .single .entry-content p,
    .page .entry-content p { font-size: 16px !important; }

    /* Author page */
    .cwd-author-profile-wrap { flex-direction: column-reverse !important; padding: 24px !important; gap: 24px !important; }
    .cwd-author-profile-photo { width: 100% !important; text-align: center; }
    .cwd-author-profile-photo img { width: 140px !important; height: 140px !important; border-radius: 50% !important; margin: 0 auto !important; }
    .cwd-author-profile-info h1 { font-size: 26px !important; }

    /* Comments */
    .comment-body { flex-direction: column; }
    .comment-author-avatar { display: none; }

    /* Category header */
    .cwd-category-title,
    .cwd-archive-title { font-size: 24px; }

    /* Pagination */
    .cwd-pagination .page-numbers { min-width: 36px; height: 36px; font-size: 13px; }

    /* Content area padding */
    .cwd-content-area { padding: 20px 16px; }

    /* Homepage section cards — collapse large+small side-by-side grid */
    .td-flex-block-grid { grid-template-columns: 1fr !important; }

    /* Issue area landing page — collapse posts+sidebar to single column */
    .cwd-issue-layout { grid-template-columns: 1fr !important; }

    /* Issue area hero banner — reduce padding for small screens */
    .cwd-issue-hero-banner { padding: 28px 20px !important; }
    .cwd-issue-hero-banner h1 { font-size: 30px !important; line-height: 1.2 !important; }
    .cwd-issue-hero-banner .cwd-issue-icon { font-size: 36px !important; margin-bottom: 10px !important; }

    /* Homepage wrapper — ensure full-width on very small screens */
    .cwd-homepage-wrapper { padding: 0 12px !important; }
}
