/* === ROW 1: TOPBAR (light bg like BloomNews) === */
.stb-topbar{background:#fff;border-bottom:1px solid #eee;font-size:.75rem;padding:6px 0}
.stb-topbar-inner{display:flex;justify-content:space-between;align-items:center}
.stb-topbar-social{display:flex;gap:14px}
.stb-topbar-social a{color:#666;transition:color .2s}
.stb-topbar-social a:hover{color:var(--color-primary)}
.stb-topbar-links{display:flex;gap:16px}
.stb-topbar-links a{color:#555;font-weight:500;transition:color .2s}
.stb-topbar-links a:hover{color:var(--color-primary)}

/* === ROW 2: LOGO BAR (white, logo left, search right) === */
.stb-logo-bar{background:#fff;padding:20px 0}
.stb-logo-bar-inner{display:flex;align-items:center;justify-content:space-between}
.stb-logo{flex-shrink:0}
.stb-logo img.custom-logo{max-height:60px;width:auto}
.stb-logo-text{font-family:var(--font-heading);font-size:2rem;font-weight:700;color:var(--color-text);letter-spacing:-.03em}
.stb-logo-text:hover{color:var(--color-primary)}
.stb-logo-search{flex-shrink:0;margin-left:auto}
.stb-logo-search-form{display:flex;align-items:center;border:2px solid #e8e8e8;border-radius:4px;overflow:hidden;background:#fff}
.stb-logo-search-form input{border:none;padding:10px 16px;font-size:.88rem;width:220px;outline:none;color:var(--color-text);background:transparent}
.stb-logo-search-form input::placeholder{color:#aaa}
.stb-logo-search-form button{background:#f8f8f8;border:none;border-left:2px solid #e8e8e8;padding:10px 14px;color:#666;cursor:pointer;display:flex;align-items:center}
.stb-logo-search-form button:hover{color:var(--color-primary);background:#f0f0f0}

/* === ROW 3: DARK NAV BAR (like BloomNews exactly) === */
.stb-header{background:#1b2228;position:sticky;top:0;z-index:1000}
.stb-header-inner{display:flex;align-items:center;height:50px}

/* === NAV in dark bar === */
.stb-nav{flex:1;display:flex}
.stb-nav-list{display:flex;gap:0;margin:0;padding:0}
.stb-nav-list>li{position:relative}
.stb-nav-list>li>a{display:flex;align-items:center;gap:4px;padding:0 18px;height:50px;font-family:var(--font-heading);font-size:.82rem;font-weight:600;color:#fff;text-transform:uppercase;letter-spacing:.03em;transition:background .2s}
.stb-nav-list>li>a:hover{background:rgba(255,255,255,.1)}
.stb-nav-list>li.current-menu-item>a,.stb-nav-list>li:first-child>a{background:#520024}
.stb-nav-list .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;min-width:220px;box-shadow:0 8px 24px rgba(0,0,0,.15);z-index:100;padding:6px 0}
.stb-nav-list>li:hover>.sub-menu{display:block}
.stb-nav-list .sub-menu a{display:block;padding:8px 20px;font-size:.82rem;text-transform:none;font-weight:500;color:var(--color-text);height:auto}
.stb-nav-list .sub-menu a:hover{background:#f5f5f5;color:var(--color-primary)}

/* === (search moved to logo bar) === */

/* === HAMBURGER === */
.stb-hamburger{display:none;flex-direction:column;gap:5px;padding:10px;width:44px;min-height:44px}
.stb-hamburger span{display:block;width:100%;height:2px;background:#fff;transition:all .3s}
.stb-hamburger.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.stb-hamburger.active span:nth-child(2){opacity:0}
.stb-hamburger.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* === HERO: 3-COLUMN GRID (BloomNews 1:1) === */
.stb-hero{padding:16px 0 0;margin:0}
.stb-hero .stb-container{max-width:var(--container-width);margin:0 auto;padding:0 24px}
.stb-hero-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:4px;height:520px}
.stb-hero-col{display:grid;gap:4px;min-height:0}
.stb-hero-col-2,.stb-hero-col-3{grid-template-rows:1fr 1fr}
.stb-hero-item{position:relative;overflow:hidden;min-height:0}
.stb-hero-bg{width:100%;height:100%;background-size:cover;background-position:center;background-color:#2c3e50;position:relative}
.stb-hero-bg .stb-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75) 0%,transparent 55%);display:flex;flex-direction:column;justify-content:flex-end;padding:20px;text-decoration:none;color:#fff}
.stb-hero-bg .stb-overlay .stb-badge{margin-bottom:8px;align-self:flex-start}
.stb-hero-bg .stb-overlay-title{font-family:var(--font-heading);font-weight:700;color:#fff;line-height:1.25;margin-bottom:6px}
.stb-hero-col-1 .stb-overlay-title{font-size:1.6rem}
.stb-hero-col-2 .stb-overlay-title,.stb-hero-col-3 .stb-overlay-title{font-size:.92rem}
.stb-hero-bg .stb-overlay:hover{background:linear-gradient(to top,rgba(0,0,0,.85) 0%,transparent 60%)}
.stb-hero-bg .stb-overlay-meta{font-size:.72rem;color:rgba(255,255,255,.7);display:flex;align-items:center;gap:6px}

/* === TRENDING SECTION === */
.stb-trending{background:#f8f9fa;padding:24px 0}
.stb-trending-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.stb-trending-header h2{font-size:1.1rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;display:flex;align-items:center;gap:8px}
.stb-trending-header h2::before{content:"";display:inline-block;width:10px;height:10px;background:#32c384;border-radius:50%}
.stb-trending-nav{display:flex;gap:6px}
.stb-trending-nav button{width:32px;height:32px;border:1px solid var(--color-border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;color:var(--color-text);transition:all .2s;background:#fff}
.stb-trending-nav button:hover{border-color:var(--color-primary);color:var(--color-primary)}
.stb-trending-track{display:flex;gap:20px;overflow:hidden}
.stb-trending-card{flex:0 0 calc(33.333% - 14px);display:flex;gap:14px;align-items:flex-start;background:#fff;border-radius:var(--radius);padding:12px;transition:box-shadow .3s}
.stb-trending-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.06)}
.stb-trending-card-img{flex-shrink:0;width:100px;height:75px;border-radius:var(--radius-sm);overflow:hidden}
.stb-trending-card-img img{width:100%;height:100%;object-fit:cover}
.stb-trending-card-body{flex:1;min-width:0}
.stb-trending-card-title{font-size:.88rem;font-weight:600;line-height:1.35;margin-bottom:6px}
.stb-trending-card-title a{color:var(--color-text)}
.stb-trending-card-title a:hover{color:var(--color-primary)}
.stb-trending-card-meta{font-size:.72rem;color:var(--color-text-light)}

/* === CATEGORY SECTION (homepage) === */
.stb-cat-section{margin-bottom:32px}
.stb-cat-section-header{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid var(--color-border)}
.stb-cat-section-header h2{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.stb-cat-section-header .stb-cat-indicator{width:4px;height:20px;border-radius:2px;flex-shrink:0}
.stb-cat-section-header .stb-cat-more{margin-left:auto;font-size:.78rem;font-weight:600;color:var(--color-primary);white-space:nowrap}
.stb-cat-section-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.stb-cat-featured{border-radius:var(--radius);overflow:hidden;position:relative}
.stb-cat-featured img{width:100%;height:100%;object-fit:cover;min-height:280px}
.stb-cat-featured .stb-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.75) 0%,transparent 55%);display:flex;flex-direction:column;justify-content:flex-end;padding:20px}
.stb-cat-featured .stb-overlay .stb-badge{margin-bottom:8px;align-self:flex-start}
.stb-cat-featured .stb-overlay-title{font-family:var(--font-heading);font-weight:700;color:#fff;line-height:1.25;margin-bottom:6px;font-size:1.15rem}
.stb-cat-featured .stb-overlay-title a{color:#fff}
.stb-cat-featured .stb-overlay-title a:hover{opacity:.85}
.stb-cat-featured .stb-overlay-meta{font-size:.72rem;color:rgba(255,255,255,.7)}
.stb-cat-list-posts{display:flex;flex-direction:column;gap:0}
.stb-cat-list-post{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid var(--color-border)}
.stb-cat-list-post:last-child{border-bottom:none}
.stb-cat-list-post-thumb{flex-shrink:0;width:110px;height:80px;border-radius:var(--radius-sm);overflow:hidden}
.stb-cat-list-post-thumb img{width:100%;height:100%;object-fit:cover}
.stb-cat-list-post-body{flex:1;min-width:0}
.stb-cat-list-post-title{font-size:.88rem;font-weight:600;line-height:1.35;margin-bottom:4px}
.stb-cat-list-post-title a{color:var(--color-text)}
.stb-cat-list-post-title a:hover{color:var(--color-primary)}
.stb-cat-list-post-meta{font-size:.72rem;color:var(--color-text-light)}

/* === LATEST POSTS SECTION === */
.stb-latest-header{display:flex;align-items:center;gap:12px;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid var(--color-border)}
.stb-latest-header h2{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}

/* === FOOTER === */
.stb-footer{background:var(--color-footer-bg);color:var(--color-footer-text);padding:48px 0 0}
.stb-footer a{color:var(--color-footer-text);transition:color .2s}
.stb-footer a:hover{color:#fff}
.stb-footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:32px;padding-bottom:40px}
.stb-footer-col h3{font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#fff;margin-bottom:16px;padding-bottom:10px;border-bottom:2px solid rgba(255,255,255,.1)}
.stb-footer-about{font-size:.85rem;line-height:1.7}
.stb-footer-logo{margin-bottom:16px}
.stb-footer-logo img{max-height:40px}
.stb-footer-logo .stb-logo-text{color:#fff;font-size:1.3rem}
.stb-footer-links li{padding:4px 0}
.stb-footer-links a{font-size:.85rem}
.stb-footer-col-cont{padding-top:38px}
.stb-footer-tags{display:flex;flex-wrap:wrap;gap:6px}
.stb-footer-tags a{display:inline-block;padding:4px 10px;background:rgba(255,255,255,.08);border-radius:3px;font-size:.78rem;transition:background .2s}
.stb-footer-tags a:hover{background:var(--color-primary)}
.stb-footer-recent-post{display:flex;gap:12px;margin-bottom:14px}
.stb-footer-recent-post-thumb{flex-shrink:0;width:70px;height:50px;border-radius:var(--radius-sm);overflow:hidden}
.stb-footer-recent-post-thumb img{width:100%;height:100%;object-fit:cover}
.stb-footer-recent-post-title{font-size:.82rem;font-weight:500;line-height:1.35;margin-bottom:4px}
.stb-footer-recent-post-date{font-size:.72rem;color:var(--color-text-light)}
.stb-footer-bar{border-top:1px solid rgba(255,255,255,.08);padding:20px 0;text-align:center;font-size:.8rem}
.stb-footer-social{display:flex;justify-content:center;gap:14px;margin-bottom:12px}
.stb-footer-social a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;transition:background .2s}
.stb-footer-social a:hover{background:var(--color-primary)}
.stb-footer-social svg{fill:var(--color-footer-text)}
.stb-footer-social a:hover svg{fill:#fff}

/* === SINGLE POST === */
.stb-single-featured{margin-bottom:24px;border-radius:var(--radius);overflow:hidden}
.stb-single-featured img{width:100%;height:auto}
.stb-single-header{margin-bottom:24px}
.stb-single-header .stb-badge{margin-bottom:12px}
.stb-single-header h1{font-size:1.8rem;font-weight:700;line-height:1.3;margin-bottom:12px}
.stb-single-meta{display:flex;align-items:center;gap:12px;font-size:.82rem;color:var(--color-text-secondary);flex-wrap:wrap}
.stb-single-meta .stb-avatar{border-radius:50%;vertical-align:middle}
.stb-single-meta a{color:var(--color-text-secondary);font-weight:500}
.stb-single-meta a:hover{color:var(--color-primary)}
.stb-single-meta .stb-dot{color:var(--color-text-light)}

/* === SHARE BUTTONS === */
.stb-share{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}
.stb-share a{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:var(--radius-sm);color:#fff;font-size:.78rem;font-weight:600;transition:opacity .2s}
.stb-share a:hover{opacity:.85;color:#fff}
.stb-share-fb{background:#3b5998}
.stb-share-tw{background:#1da1f2}
.stb-share-pin{background:#bd081c}
.stb-share-wa{background:#25d366}
.stb-share-mail{background:#777}

/* === ARTICLE CONTENT === */
.stb-content{font-size:1rem;line-height:1.8;color:var(--color-text-secondary)}
.stb-content h2{font-size:1.4rem;margin:2rem 0 1rem;padding-bottom:8px;border-bottom:1px solid var(--color-border)}
.stb-content h3{font-size:1.15rem;margin:1.5rem 0 .75rem}
.stb-content p{margin-bottom:1.2rem}
.stb-content img{border-radius:var(--radius);margin:1.5rem 0}
.stb-content blockquote{border-left:4px solid var(--color-primary);padding:16px 24px;margin:1.5rem 0;background:#f8f9fa;border-radius:0 var(--radius) var(--radius) 0;font-style:italic;color:var(--color-text)}
.stb-content ul,.stb-content ol{margin:1rem 0 1.5rem 1.5rem}
.stb-content ul{list-style:disc}
.stb-content ol{list-style:decimal}
.stb-content li{margin-bottom:.5rem}
.stb-content a{color:var(--color-primary);text-decoration:underline}
.stb-content a:hover{color:var(--color-primary-hover)}
.stb-content figure{margin:1.5rem 0}
.stb-content figcaption{font-size:.82rem;color:var(--color-text-light);text-align:center;margin-top:8px}

/* === TAGS === */
.stb-tags{display:flex;flex-wrap:wrap;gap:6px;margin:24px 0;padding-top:16px;border-top:1px solid var(--color-border)}
.stb-tags a{display:inline-block;padding:4px 12px;background:#f4f4f4;border-radius:3px;font-size:.78rem;color:var(--color-text-secondary);font-weight:500;transition:all .2s}
.stb-tags a:hover{background:var(--color-primary);color:#fff}

/* === AUTHOR BOX === */
.stb-author-box{display:flex;gap:20px;padding:24px;background:#f8f9fa;border-radius:var(--radius);margin:24px 0}
.stb-author-box-avatar{flex-shrink:0}
.stb-author-box-avatar img{width:80px;height:80px;border-radius:50%;object-fit:cover}
.stb-author-box-info{flex:1}
.stb-author-box-name{font-size:1rem;font-weight:700;margin-bottom:4px}
.stb-author-box-name a{color:var(--color-text)}
.stb-author-box-name a:hover{color:var(--color-primary)}
.stb-author-box-bio{font-size:.85rem;color:var(--color-text-secondary);line-height:1.6;margin-bottom:8px}
.stb-author-box-social{display:flex;gap:10px}
.stb-author-box-social a{color:var(--color-text-light);transition:color .2s}
.stb-author-box-social a:hover{color:var(--color-primary)}

/* === RELATED POSTS === */
.stb-related{margin-top:32px;padding-top:24px;border-top:2px solid var(--color-border)}
.stb-related h3{font-size:1rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;margin-bottom:20px}

/* === POST NAV (prev/next) === */
.stb-post-nav{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;padding-top:24px;border-top:1px solid var(--color-border)}
.stb-post-nav-item{font-size:.85rem}
.stb-post-nav-label{font-size:.72rem;color:var(--color-text-light);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.stb-post-nav-title a{color:var(--color-text);font-weight:600}
.stb-post-nav-title a:hover{color:var(--color-primary)}
.stb-post-nav-next{text-align:right}

/* === TOC === */
.stb-toc{background:#f8f9fa;border:1px solid var(--color-border);border-radius:var(--radius);padding:20px 24px;margin:1.5rem 0}
.stb-toc-title{font-size:.9rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.stb-toc-title::after{content:"▼";font-size:.65rem;transition:transform .2s}
.stb-toc-title.collapsed::after{transform:rotate(-90deg)}
.stb-toc ul{padding-left:0}
.stb-toc li{padding:4px 0;font-size:.85rem}
.stb-toc li a{color:var(--color-text-secondary)}
.stb-toc li a:hover{color:var(--color-primary)}
.stb-toc li.stb-toc-sub{padding-left:16px}

/* === CONTACT FORM === */
.stb-contact-form{max-width:600px}
.stb-form-group{margin-bottom:16px}
.stb-form-group label{display:block;font-size:.85rem;font-weight:600;margin-bottom:6px;color:var(--color-text)}
.stb-form-group input,.stb-form-group textarea{width:100%;padding:12px 16px;border:1px solid var(--color-border);border-radius:var(--radius-sm);font-size:.9rem;transition:border-color .2s}
.stb-form-group input:focus,.stb-form-group textarea:focus{border-color:var(--color-primary);outline:none}
.stb-form-group textarea{min-height:150px;resize:vertical}
.stb-form-submit{padding:12px 32px;background:var(--color-primary);color:#fff;font-weight:600;border-radius:var(--radius-sm);font-size:.9rem;transition:background .2s;border:none;cursor:pointer}
.stb-form-submit:hover{background:var(--color-primary-hover)}
.stb-form-message{margin-top:12px;padding:12px 16px;border-radius:var(--radius-sm);font-size:.88rem}
.stb-form-message.success{background:#d4edda;color:#155724}
.stb-form-message.error{background:#f8d7da;color:#721c24}

/* === 404 === */
.stb-404{text-align:center;padding:60px 0}
.stb-404 h1{font-size:4rem;color:var(--color-primary);margin-bottom:8px}
.stb-404 p{font-size:1.1rem;color:var(--color-text-secondary);margin-bottom:24px}
.stb-404-search{max-width:400px;margin:0 auto;display:flex;gap:0}
.stb-404-search input{flex:1;padding:12px 16px;border:1px solid var(--color-border);border-radius:var(--radius) 0 0 var(--radius);font-size:.9rem}
.stb-404-search button{padding:12px 20px;background:var(--color-primary);color:#fff;border:none;border-radius:0 var(--radius) var(--radius) 0;font-weight:600}

/* === MORE BUTTON === */
.stb-btn-more{display:inline-block;padding:12px 32px;background:var(--color-primary);color:#fff;font-family:var(--font-heading);font-size:.88rem;font-weight:600;border-radius:var(--radius);transition:background .2s}
.stb-btn-more:hover{background:var(--color-primary-hover);color:#fff}

/* === CB KREACJE SPACING === */
.stb-cb-wrapper{padding:24px 0}
.stb-cb-inline{margin:24px 0}

/* === RESPONSIVE === */
@media(max-width:1024px){
    .stb-hero-grid{height:420px;grid-template-columns:1fr 1fr}
    .stb-cat-section-layout{grid-template-columns:1fr}
    .stb-footer-grid{grid-template-columns:1fr 1fr;gap:24px}
    .stb-trending-card{flex:0 0 calc(50% - 10px)}
    .stb-nav-search-form input{width:120px}
}
@media(max-width:768px){
    .stb-topbar{display:none}
    .stb-logo-bar{padding:12px 0}
    .stb-logo-text{font-size:1.4rem}
    .stb-hamburger{display:flex}
    .stb-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#1b2228;box-shadow:0 8px 24px rgba(0,0,0,.3);padding:0;z-index:100}
    .stb-nav.active{display:block}
    .stb-nav-list{flex-direction:column;gap:0}
    .stb-nav-list>li>a{padding:14px 24px;height:auto}
    .stb-nav-list .sub-menu{display:none;position:static;box-shadow:none;padding-left:16px;background:#151a1e}
    .stb-nav-list .sub-menu a{color:#ccc}
    .stb-nav-list li.open>.sub-menu{display:block}
    .stb-logo-search{display:none}
    .stb-hero-grid{grid-template-columns:1fr;height:auto}
    .stb-hero-col{min-height:250px}
    .stb-hero-col-2,.stb-hero-col-3{grid-template-columns:1fr 1fr}
    .stb-hero-col-2 .stb-hero-item,.stb-hero-col-3 .stb-hero-item{min-height:180px}
    .stb-trending-card{flex:0 0 calc(100% - 14px)}
    .stb-footer-grid{grid-template-columns:1fr}
    .stb-single-header h1{font-size:1.4rem}
    .stb-author-box{flex-direction:column;align-items:center;text-align:center}
    .stb-post-nav{grid-template-columns:1fr}
    .stb-post-nav-next{text-align:left}
}
