/*
Theme Name:  SDASH Theme
Theme URI:   https://sdash.de
Author:      SDASH – Karsten
Author URI:  https://sdash.de
Description: Modern, flexible WordPress theme with Customizer, TopBar, Hero area, Team Slider, Block Patterns and full color control.
Version:     1.2.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdash-theme
Tags:        custom-logo, custom-menu, featured-images, threaded-comments, full-width-template, two-columns, left-sidebar, right-sidebar, custom-colors, custom-header, footer-widgets, blog
*/

/* =============================================================
   BREAKPOINTS (Mobile First – min-width)
   xs  : 480px  — large phones
   sm  : 640px  — phablets / small tablets
   md  : 769px  — tablets  (≥769 = not mobile)
   lg  : 1025px — desktop  (≥1025 = not tablet)
   ============================================================= */

/* =============================================================
   TABLE OF CONTENTS
   01. CSS Custom Properties
   02. Reset & Base
   03. Typography
   04. Layout & Container
   05. TopBar
   06. Header & Navigation
   07. Hero Area
   08. Buttons
   09. Content & Articles
   10. Sidebar & Widgets
   11. Footer
   12. Forms
   13. Pagination
   14. Icon Boxes
   15. Card Components
   16. Cover Bubble
   17. Hero Business (Widget Area Overrides)
   18. Utilities & Misc
   19. Full-Width Sections
   20. Comments
   ============================================================= */


/* =============================================================
   01. CSS CUSTOM PROPERTIES
   ============================================================= */
:root {
    /* Brand Colors */
    --color-primary:        #1a73e8;
    --color-secondary:      #0d47a1;

    /* Background */
    --color-bg:             #ffffff;
    --color-bg-alt:         #f5f7fa;

    /* Text */
    --color-text:           #333333;
    --color-text-light:     #666666;
    --color-heading:        #1a1a2e;

    /* Links */
    --color-link:           #1a73e8;
    --color-link-hover:     #0d47a1;

    /* Border */
    --color-border:         #e0e0e0;

    /* TopBar */
    --color-topbar-bg:      #1a1a2e;
    --color-topbar-text:    #ffffff;

    /* Footer */
    --color-footer-bg:      #1a1a2e;
    --color-footer-text:    #cccccc;
    --color-footer-border:  #2d2d4e;

    /* Buttons */
    --color-btn-bg:         #1a73e8;
    --color-btn-text:       #ffffff;
    --color-btn-hover-bg:   #0d47a1;
    --color-btn-hover-text: #ffffff;
    --btn-radius:           4px;
    --btn-padding-v:        10px;
    --btn-padding-h:        22px;

    /* Typography */
    --font-family:          'Open Sans', sans-serif;
    --font-size-base:       16px;
    --font-weight:          400;
    --line-height:          1.7;

    /* Layout */
    --container-width:      1200px;
    --sidebar-width:        300px;

    /* Logo */
    --logo-max-width:       200px;
    --logo-max-height:      60px;

    /* Article Cards */
    --article-border-width:  1px;
    --article-border-color:  var(--color-border);
    --article-border-radius: 8px;

    /* Container Border */
    --container-border-width:  0px;
    --container-border-style:  solid;
    --container-border-color:  var(--color-border);
    --container-border-radius: 0px;
}


/* =============================================================
   02. RESET & BASE
   ============================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    /* clip prevents horizontal scrollbar WITHOUT making body a scroll container.
       overflow-x:hidden would make body the scroll container, breaking position:sticky
       on #masthead (window.scrollY stays 0, scroll events stop firing on window). */
    overflow-x: clip;
}

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color .2s;
}
a:hover { color: var(--color-link-hover); }

ul, ol { padding-left: 1.5em; }

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.5em 0;
}


/* =============================================================
   03. TYPOGRAPHY
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: .6em;
}

/* Note: Do not set global h2/h3 font-sizes here.
   Use block-specific or utility classes instead. */

p { margin-bottom: 1em; }

/* Gradient text utility */
.hero-gradient-text {
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.font-orange { color: #f59e0b; }


/* =============================================================
   04. LAYOUT & CONTAINER
   ============================================================= */
.sdash-container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Boxed layout */
body.layout-boxed #page {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 30px rgba(0,0,0,.08);
}

/* Full width */
body.layout-fullwidth .sdash-container { max-width: 100%; }

/* Page border
   overflow:clip clips visually (for border-radius) WITHOUT creating a
   scroll container. overflow:hidden would break position:sticky on
   #masthead because it would make #page the sticky scroll container. */
#page {
    border: var(--container-border-width) var(--container-border-style) var(--container-border-color);
    border-radius: var(--container-border-radius);
    overflow: clip;
}

/* Content + Sidebar
   Mobile: stacked → Desktop (md+): side by side

   NOTE: align-items is intentionally NOT set on mobile.
   Default 'stretch' ensures #primary fills the full container
   width. flex-direction:column + align-items:flex-start would
   shrink #primary to content-width, breaking WP block layouts.
   align-items:flex-start only makes sense in the row layout (md+)
   where it means "align sidebar to the top". */
#content-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 0;
}

#primary { flex: 1; min-width: 0; }

#secondary { width: 100%; }

#content .sdash-container {
    max-width: 100%;
}

@media (min-width: 769px) {
    #content-area {
        flex-direction: row;
        align-items: flex-start;
    }
    #secondary {
        width: var(--sidebar-width);
        flex-shrink: 0;
    }
}

/* Sidebar order modifiers */
body.sidebar-left  #secondary { order: -1; }
body.sidebar-right #secondary { order:  1; }
body.no-sidebar    #secondary { display: none; }
body.no-sidebar    #primary   { flex: 1; }


/* =============================================================
   05. TOPBAR
   ============================================================= */
#sdash-topbar {
    background-color: var(--color-topbar-bg);
    color: var(--color-topbar-text);
    font-size: .85em;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}
#sdash-topbar a       { color: var(--color-topbar-text); }
#sdash-topbar a:hover { opacity: .8; }

.sdash-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Animation variants --- */
.topbar-anim-fadein { opacity: 0; }
.topbar-anim-fadein.sdash-animated {
    animation: sdashFadeIn .8s ease forwards;
}

.topbar-anim-slidein { transform: translateY(-100%); opacity: 0; }
.topbar-anim-slidein.sdash-animated {
    animation: sdashSlideIn .6s ease forwards;
}

.topbar-anim-marquee .topbar-marquee-wrap { overflow: hidden; width: 100%; }
.topbar-anim-marquee .topbar-content {
    display: inline-block;
    white-space: nowrap;
    animation: sdashMarquee 18s linear infinite;
}

.topbar-anim-typewriter .topbar-content {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-topbar-text);
    width: 0;
}
.topbar-anim-typewriter.sdash-animated .topbar-content {
    animation:
        sdashTyping 3s steps(40, end) forwards,
        sdashBlink  .75s step-end infinite;
}

/* --- Keyframes --- */
@keyframes sdashFadeIn  { to { opacity: 1; } }
@keyframes sdashSlideIn { to { transform: translateY(0); opacity: 1; } }
@keyframes sdashMarquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
@keyframes sdashTyping  { to { width: 100%; } }
@keyframes sdashBlink   { 50% { border-color: transparent; } }


/* =============================================================
   06. HEADER & NAVIGATION
   Mobile: hamburger visible, nav hidden, header row wraps
   Desktop (md+): hamburger hidden, nav displayed as flex row
   ============================================================= */
#masthead {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    /* Smooth transition for scroll-elevation state change */
    transition: box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}

/* Elevated state — class added by JS as soon as user starts scrolling */
#masthead.is-scrolled {
    background-color: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 28px rgba(0,0,0,.13);
    border-bottom-color: transparent;
}

.sdash-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;       /* Mobile: logo + burger may wrap */
    gap: 10px;
    padding: 14px 0;
}

/* Logo */
.site-branding a { display: inline-flex; align-items: center; gap: 12px; }

.site-logo img {
    max-width: var(--logo-max-width, 200px);
    max-height: var(--logo-max-height, 60px);
    width: auto;
    height: auto;
}

.site-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1;
}

.site-description {
    font-size: .8em;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* Hamburger — visible on mobile */
.menu-toggle {
    display: block;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.4em;
    color: var(--color-text);
}

/* Navigation — hidden and vertical on mobile */
nav#site-navigation {
    display: none;
    width: 100%;
}
nav#site-navigation.active { display: block; }

nav#site-navigation ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

nav#site-navigation ul li a {
    color: var(--color-text);
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 500;
    font-size: .95em;
    display: block;
    transition: background .2s, color .2s;
}
nav#site-navigation ul li a:hover,
nav#site-navigation ul li.current-menu-item > a {
    color: var(--color-primary);
    background: rgba(26,115,232,.07);
}

/* Desktop (md+): horizontal nav, no burger */
@media (min-width: 769px) {
    .sdash-header-inner {
        flex-wrap: nowrap;
        gap: 0;
    }
    .menu-toggle { display: none; }

    nav#site-navigation {
        display: block;
        width: auto;
    }
    nav#site-navigation ul {
        flex-direction: row;
        padding: 0;
        gap: 6px;
    }
}


/* =============================================================
   07. HERO AREA
   ============================================================= */
#sdash-hero {
    display: flex;
    align-items: center;
}

.sdash-hero-inner { width: 100%; }

.sdash-hero-inner .widget-title.hero-widget-title {
    color: inherit;
    border-bottom-color: rgba(255,255,255,.3);
}

.hero-placeholder {
    text-align: center;
    padding: 40px;
    opacity: .5;
    font-style: italic;
    color: #fff;
}


/* =============================================================
   08. BUTTONS
   ============================================================= */
.sdash-btn,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-block;
    background-color: var(--color-btn-bg);
    color: var(--color-btn-text) !important;
    border: none;
    border-radius: var(--btn-radius);
    padding: var(--btn-padding-v) var(--btn-padding-h);
    font-family: var(--font-family);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s, box-shadow .2s;
    text-align: center;
    line-height: 1.4;
}

.sdash-btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--color-btn-hover-bg);
    color: var(--color-btn-hover-text) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}


/* =============================================================
   09. CONTENT & ARTICLES
   ============================================================= */
.entry-header   { display:none; }
.entry-title    { font-size: 2em; }

.entry-meta {
    font-size: .85em;
    color: var(--color-text-light);
    margin-bottom: 1.5em;
}
.entry-meta span { margin-right: .8em; }

.entry-content  { margin-bottom: 2em; }

.entry-footer {
    font-size: .85em;
    border-top: 1px solid var(--color-border);
    padding-top: 1em;
}

/* Article card */
article.type-post,
article.type-page {
    background: var(--color-bg);
    border-width: var(--article-border-width, 0px);
    border-style: solid;
    border-color: var(--article-border-color, var(--color-border));
    border-radius: var(--article-border-radius, 8px);
    padding: 30px;
    margin-bottom: 30px;
}


/* =============================================================
   10. SIDEBAR & WIDGETS
   ============================================================= */
.widget { margin-bottom: 2em; }

.widget-title {
    color: var(--color-heading);
    font-size: 1em;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: .4em;
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: .06em;
}

#colophon .widget-title {
    color: #fff;
    border-bottom-color: var(--color-primary);
}


/* =============================================================
   11. FOOTER
   Mobile: 1 column
   sm (640px+): 2 columns for 3- and 4-area grids
   lg (1025px+): full column count
   ============================================================= */
#colophon {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    border-top: 2px solid var(--color-footer-border);
}

#colophon a       { color: var(--color-footer-text); }
#colophon a:hover { color: #fff; }

.sdash-footer-widgets { padding: 50px 0 30px; }

/* Mobile: always 1 column */
.sdash-footer-widgets-inner {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

/* sm+: 2 columns when 3 or 4 widget areas are active */
@media (min-width: 640px) {
    .sdash-footer-widgets-inner.cols-3,
    .sdash-footer-widgets-inner.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* lg+: full column count */
@media (min-width: 1025px) {
    .sdash-footer-widgets-inner.cols-1 { grid-template-columns: 1fr; }
    .sdash-footer-widgets-inner.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sdash-footer-widgets-inner.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .sdash-footer-widgets-inner.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Footer bar */
.sdash-footer-bar {
    background: rgba(0,0,0,.25);
    padding: 14px 0;
    font-size: .85em;
    text-align: center;
    color: rgba(255,255,255,.55);
}
.sdash-footer-bar a       { color: rgba(255,255,255,.55); }
.sdash-footer-bar a:hover { color: #fff; }

/* Footer bar inner: mobile stacked → md+ side by side */
.sdash-footer-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
@media (min-width: 769px) {
    .sdash-footer-bar-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Contact area (above footer) */
#sdash-contact-area {
    background: #0f1623;
    padding: 50px 0 40px;   /* Mobile */
    color: #fff;
}

#sdash-contact-area .wp-block-columns { width: 100%; }  /* Mobile: full width */

@media (min-width: 769px) {
    #sdash-contact-area { padding: 80px 0 60px; }
    #sdash-contact-area .wp-block-columns { width: 60%; margin: 0 auto; }
}


/* =============================================================
   12. FORMS
   Mobile: single column
   md (769px+): CF7 two-column layout
   ============================================================= */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 9px 14px;
    font-family: var(--font-family);
    font-size: 1em;
    color: var(--color-text);
    background: var(--color-bg);
    width: 100%;
    transition: border-color .2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* CF7: single column on mobile */
.cf7-two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 769px) {
    .cf7-two-cols { grid-template-columns: 1fr 1fr; }
}

.cf7-two-cols p  { display: contents; }
.cf7-two-cols br { display: none; }
.cf7-two-cols label {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.cf7-two-cols span.wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}
.cf7-two-cols input {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* CF7 submit button */
.wpcf7-submit {
    width: 100% !important;
    padding: 15px 30px !important;
    background: linear-gradient(90deg, #f59e0b, #ef4444) !important;
    border: none !important;
    border-radius: 50px !important;
    color: #fff !important;
    font-size: 1em !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: opacity .2s, transform .15s !important;
    margin-top: 8px !important;
}
.wpcf7-submit:hover {
    opacity: .9 !important;
    transform: translateY(-1px) !important;
}


/* =============================================================
   13. PAGINATION
   ============================================================= */
.navigation .nav-links {
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
    margin: 30px 0;
}

.navigation .page-numbers {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    transition: background .2s, color .2s;
}
.navigation .page-numbers.current,
.navigation .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}


/* =============================================================
   14. ICON BOXES
   ============================================================= */
.sdash-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 8px 20px rgba(239,68,68,.35);
    transform: rotate(-8deg);
    flex-shrink: 0;
}
.sdash-icon-box svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    transform: rotate(8deg);
}

/* Color variants */
.sdash-icon-box--blue {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(37,99,235,.35);
}
.sdash-icon-box--green {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(5,150,105,.35);
}
.sdash-icon-box--purple {
    background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
    box-shadow: 0 8px 20px rgba(147,51,234,.35);
}

/* No rotation variant (e.g. contact info icons) */
.contact-info-box .sdash-icon-box,
.sdash-icon-box--flat              { transform: none; }
.contact-info-box .sdash-icon-box svg,
.sdash-icon-box--flat svg          { transform: none; }

/* Contact info box */
.contact-info-box {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 28px;
}
.contact-info-box h3 {
    color: #fff;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
}
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item:hover      { opacity: .85; }
.contact-info-item div        { display: flex; flex-direction: column; gap: 2px; }
.contact-info-item strong     { color: #fff; font-size: .95em; font-weight: 700; }
.contact-info-item span       { color: rgba(255,255,255,.55); font-size: .85em; }


/* =============================================================
   15. CARD COMPONENTS
   ============================================================= */

/* Service / feature cards
   Mobile: touch feedback via :active instead of :hover transform
   md+: full hover effect

   WHY CSS GRID:
   WordPress injects flex-wrap:nowrap via a unique dynamic container class
   (e.g. .wp-container-core-columns-is-layout-XXXXXXXX) that we cannot
   target in static CSS. Switching the inner .wp-block-columns to
   display:grid fully sidesteps that conflict — grid ignores all flex
   properties and eliminates the 300vw overflow caused by 3 × min-width:100%
   inside a non-wrapping flex container.
   ------------------------------------------------------------------ */
.sdash-cards-grid { margin-bottom: 30px; }

/* Override WP's flex layout → CSS Grid */
.sdash-cards-grid .wp-block-columns,
.sdash-cards-grid .wp-block-columns.is-layout-flex {
    display: grid !important;
    grid-template-columns: 1fr !important;   /* Mobile: 1 column */
    gap: 20px !important;
    width: 100% !important;
    /* Null out WP flex properties so nothing leaks through */
    flex-wrap: unset !important;
    align-items: unset !important;
}

/* Grid items: clear all WP flex-item properties */
.sdash-cards-grid .wp-block-column {
    flex-basis: unset !important;
    flex-grow: unset !important;
    flex-shrink: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;   /* Critical: prevents overflow in grid cells */
    margin: 0 !important;
}

/* Card styling */
.sdash-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px !important;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: default;
    height: 100%;              /* Equal height cards within grid row */
    box-sizing: border-box;
}

/* Mobile: touch feedback instead of hover */
.sdash-card:active {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

/* sm (640px+): 2 columns */
@media (min-width: 640px) {
    .sdash-cards-grid .wp-block-columns,
    .sdash-cards-grid .wp-block-columns.is-layout-flex {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* lg (1025px+): 3 columns */
@media (min-width: 1025px) {
    .sdash-cards-grid .wp-block-columns,
    .sdash-cards-grid .wp-block-columns.is-layout-flex {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .sdash-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0,0,0,.15);
    }
    .sdash-card:active { transform: none; box-shadow: none; }
}

/* Value box */
.sdash-value-box {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
    border-radius: 16px !important;
    padding: 32px !important;
}
.sdash-value-box h2,
.sdash-value-box h3 {
    color: #fff !important;
    margin-bottom: 20px !important;
}

/* Value list */
.sdash-value-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}
.sdash-value-list li {
    display: grid !important;
    grid-template-columns: 26px 1fr;
    align-items: start;
    gap: 0 10px;
    list-style: none !important;
    padding-left: 0 !important;
}
.sdash-value-list li::before {
    content: '' !important;
    display: block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: rgba(255,255,255,.25)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
        no-repeat center / 14px;
    border-radius: 50%;
    grid-column: 1;
    grid-row: 1 / 3;
    margin-top: 2px;
}
.sdash-value-list li strong {
    display: block !important;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    grid-column: 2;
    grid-row: 1;
}


/* =============================================================
   16. COVER BUBBLE
   Mobile: all variants anchored bottom-left, simplified
   xs (480px+): slightly narrower
   md (769px+): variant-specific positions, medium size
   lg (1025px+): full desktop size and offsets
   ============================================================= */
.sdash-cover-bubble,
.sdash-cover-bubble-right,
.sdash-cover-bubble-center,
.sdash-cover-bubble-top-left,
.sdash-cover-bubble-top-right {
    position: relative;
    min-height: 280px;    /* Mobile: ensure enough space for the bubble */
}

/* Shared bubble box — mobile base position: bottom-left */
.sdash-cover-bubble             .wp-block-cover__inner-container,
.sdash-cover-bubble-right       .wp-block-cover__inner-container,
.sdash-cover-bubble-center      .wp-block-cover__inner-container,
.sdash-cover-bubble-top-left    .wp-block-cover__inner-container,
.sdash-cover-bubble-top-right   .wp-block-cover__inner-container {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: auto;
    top: auto;
    transform: none;
    max-width: 85%;         /* Small phones: wider bubble */
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    text-align: left;
}

/* Mobile: reduce heading and text size inside bubble */
.sdash-cover-bubble             .wp-block-cover__inner-container h1,
.sdash-cover-bubble             .wp-block-cover__inner-container h2,
.sdash-cover-bubble-right       .wp-block-cover__inner-container h1,
.sdash-cover-bubble-right       .wp-block-cover__inner-container h2 {
    font-size: 1.3em;
    margin-bottom: 6px;
}
.sdash-cover-bubble             .wp-block-cover__inner-container p,
.sdash-cover-bubble-right       .wp-block-cover__inner-container p {
    font-size: .85em;
    margin-bottom: 10px;
}

/* xs (480px+): slightly narrower bubble */
@media (min-width: 480px) {
    .sdash-cover-bubble             .wp-block-cover__inner-container,
    .sdash-cover-bubble-right       .wp-block-cover__inner-container,
    .sdash-cover-bubble-center      .wp-block-cover__inner-container,
    .sdash-cover-bubble-top-left    .wp-block-cover__inner-container,
    .sdash-cover-bubble-top-right   .wp-block-cover__inner-container {
        max-width: 70%;
    }

    #content .sdash-container {
        max-width:100%;
    }
}

/* md (769px+): variant-specific positions, medium size */
@media (min-width: 769px) {
    /* Release forced min-height — WP block controls its own height */
    .sdash-cover-bubble,
    .sdash-cover-bubble-right,
    .sdash-cover-bubble-center,
    .sdash-cover-bubble-top-left,
    .sdash-cover-bubble-top-right {
        min-height: unset;
    }

    /* Shared tablet size */
    .sdash-cover-bubble             .wp-block-cover__inner-container,
    .sdash-cover-bubble-right       .wp-block-cover__inner-container,
    .sdash-cover-bubble-center      .wp-block-cover__inner-container,
    .sdash-cover-bubble-top-left    .wp-block-cover__inner-container,
    .sdash-cover-bubble-top-right   .wp-block-cover__inner-container {
        max-width: 340px;
        width: calc(100% - 48px);
        padding: 22px;
        border-radius: 12px;
    }

    /* Variant-specific positions */
    .sdash-cover-bubble .wp-block-cover__inner-container {
        bottom: 40px; left: 24px; right: auto; top: auto; transform: none;
    }
    .sdash-cover-bubble-right .wp-block-cover__inner-container {
        bottom: 40px; right: 24px; left: auto; top: auto; transform: none;
    }
    .sdash-cover-bubble-center .wp-block-cover__inner-container {
        bottom: 40px; left: 50%; right: auto; top: auto;
        transform: translateX(-50%); text-align: center;
    }
    .sdash-cover-bubble-top-left .wp-block-cover__inner-container {
        top: 40px; left: 24px; bottom: auto; right: auto; transform: none;
    }
    .sdash-cover-bubble-top-right .wp-block-cover__inner-container {
        top: 40px; right: 24px; bottom: auto; left: auto; transform: none;
    }

    /* Reset mobile typography overrides */
    .sdash-cover-bubble             .wp-block-cover__inner-container h1,
    .sdash-cover-bubble             .wp-block-cover__inner-container h2,
    .sdash-cover-bubble-right       .wp-block-cover__inner-container h1,
    .sdash-cover-bubble-right       .wp-block-cover__inner-container h2 {
        font-size: revert;
        margin-bottom: revert;
    }
    .sdash-cover-bubble             .wp-block-cover__inner-container p,
    .sdash-cover-bubble-right       .wp-block-cover__inner-container p {
        font-size: revert;
        margin-bottom: revert;
    }
}

/* lg (1025px+): full desktop size and offsets */
@media (min-width: 1025px) {
    .sdash-cover-bubble             .wp-block-cover__inner-container,
    .sdash-cover-bubble-right       .wp-block-cover__inner-container,
    .sdash-cover-bubble-center      .wp-block-cover__inner-container,
    .sdash-cover-bubble-top-left    .wp-block-cover__inner-container,
    .sdash-cover-bubble-top-right   .wp-block-cover__inner-container {
        max-width: 420px;
        width: calc(100% - 80px);
        padding: 30px;
    }

    .sdash-cover-bubble .wp-block-cover__inner-container           { bottom: 40px; left: 40px; }
    .sdash-cover-bubble-right .wp-block-cover__inner-container     { bottom: 40px; right: 40px; }
    .sdash-cover-bubble-center .wp-block-cover__inner-container    { bottom: 40px; left: 50%; }
    .sdash-cover-bubble-top-left .wp-block-cover__inner-container  { top: 40px;    left: 40px; }
    .sdash-cover-bubble-top-right .wp-block-cover__inner-container { top: 40px;    right: 40px; }
}

@media (min-width:1200px) {
    #content .sdash-container {
        max-width:80%;
    }
}


/* =============================================================
   17. HERO BUSINESS (WIDGET AREA OVERRIDES)
   Mobile: centered (inherited from hero-business.css)
   md+: left-aligned, two columns
   ============================================================= */
#sdash-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%) !important;
}

@media (min-width: 769px) {
    .shb-columns           { grid-template-columns: 1fr 1fr; }
    .shb-col-text,
    .shb-col-text *        { text-align: left; }
    .shb-buttons           { justify-content: flex-start !important; }
    .shb-stats             { justify-content: flex-start !important; }
    .shb-col-card          { justify-content: flex-start !important; }
    .shb-col-card *        { text-align: left !important; }
}


/* =============================================================
   18. UTILITIES & MISC
   ============================================================= */
.has-medium-font-size { font-size: 0.89em !important; }

.h4-text-view {
    font-size: 1.6em !important;
    font-weight: 700;
    line-height: 2.5em;
}

/* Skill progress bar */
.skill-fill {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    width: 100% !important;
    transition: width 2s ease-out;
}

/* Gradient separator */
.wp-block-separator.gradient-divider {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    opacity: 1;
}


/* =============================================================
   19. FULL-WIDTH SECTIONS
   Mobile: compact padding → progressively more space
   ============================================================= */
.sdash-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.sdash-full-width.sdash-hero {
    padding: 40px 16px;    /* Mobile */
    text-align: center;
}

@media (min-width: 480px) {
    .sdash-full-width.sdash-hero { padding: 50px 20px; }
}

@media (min-width: 769px) {
    .sdash-full-width.sdash-hero { padding: 80px 40px; }
}


/* =============================================================
   20. COMMENTS
   ============================================================= */
.comments-area { margin-top: 40px; }
.comment-list  { list-style: none; padding: 0; }
.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}


/* =============================================================
   SCROLL REVEAL
   Elements start invisible + shifted down; IntersectionObserver
   in main.js adds .is-visible when they enter the viewport.
   Stagger delay is set inline via JS (--reveal-delay custom prop).
   ============================================================= */
.sdash-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  .65s ease-out,
        transform .65s ease-out;
    transition-delay: var(--reveal-delay, 0ms);
}

/* Reduced motion: skip the translate, keep fade */
@media (prefers-reduced-motion: reduce) {
    .sdash-reveal { transform: none; transition: opacity .4s ease-out; }
}

.sdash-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================
   POST HERO
   Full-width section with featured image background and
   title overlay. Rendered before #content via the
   sdash_before_content hook in single.php.
   Mobile: 360px min-height → progressively taller
   ============================================================= */

/* Wrapper */
.post-hero {
    position: relative;
    min-height: 360px;                     /* Mobile */
    background-size: cover;
    background-position: center center;
    background-color: #1e293b;             /* Fallback: no featured image */
    display: flex;
    align-items: flex-end;                 /* Content anchored at bottom */
}

@media (min-width: 640px)  { .post-hero { min-height: 440px; } }
@media (min-width: 769px)  { .post-hero { min-height: 520px; } }
@media (min-width: 1025px) { .post-hero { min-height: 600px; } }

/* Gradient overlay — dark at bottom for readability */
.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.82) 0%,
        rgba(0,0,0,.48) 40%,
        rgba(0,0,0,.15) 70%,
        transparent    100%
    );
}

/* Content area */
.post-hero-content {
    position: relative;
    z-index: 1;
    padding: 28px 0 40px;
    color: #fff;
    max-width: 820px;
}

@media (min-width: 769px) {
    .post-hero-content { padding: 36px 0 52px; }
}

/* Category badges */
.post-hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.post-hero-cat {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: .73em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s;
}
.post-hero-cat:hover { background: var(--color-secondary); color: #fff; }

/* Title */
.post-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* Meta row: author · date · read time */
.post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: .875em;
    color: rgba(255,255,255,.72);
}

.post-hero-meta-sep { opacity: .45; }

.post-hero-author { font-weight: 600; color: rgba(255,255,255,.9); }

/* Fallback gradient when no featured image */
.post-hero.no-thumbnail {
    background-image: linear-gradient(135deg, #1e293b 0%, #334155 60%, #475569 100%);
}

/* Remove default entry-header inside single post
   (title is already in the hero) */
.single-post .entry-header { display: none; }

/* Give entry-content comfortable reading width */
.single-post .entry-content {
    max-width: 760px;
    margin-top: 40px;
}

@media (min-width: 769px) {
    .single-post .entry-content { margin-top: 52px; }
}
