/* ==========================================================================
   CUSTOM.CSS — markowe-lampy.pl
   Newspaper Baby Pro design replica
   Accent: #c4956a (warm copper)
   Fonts: Playfair Display (headings), Inter (UI + body)
   NO border-radius anywhere. Section titles with LEFT pink border.
   Prefix: stb-
   ========================================================================== */

/* CSS Custom Properties are defined in functions.php via wp_add_inline_style */

/* --------------------------------------------------------------------------
   1. HEADER — white bg, single row: nav-left | logo-center | nav-right + search
   -------------------------------------------------------------------------- */

.stb-header {
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.stb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.stb-nav-left,
.stb-nav-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.stb-nav-left {
    justify-content: flex-start;
}

.stb-nav-right {
    justify-content: flex-end;
}

.stb-nav-left ul,
.stb-nav-right ul {
    display: flex;
    list-style: none;
    gap: 22px;
    padding: 0;
    margin: 0;
}

.stb-nav-left a,
.stb-nav-right a {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-heading);
    transition: color 0.2s;
}

.stb-nav-left a:hover,
.stb-nav-right a:hover {
    color: var(--color-accent);
}

/* Logo — center */

.stb-header-logo {
    flex-shrink: 0;
    text-align: center;
    padding: 0 24px;
}

.stb-header-logo a,
.stb-header-logo .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-heading);
    text-decoration: none;
}

.stb-header-logo .stb-logo-icon {
    color: var(--color-accent);
}

.stb-header-logo .stb-logo-name,
.stb-header-logo .stb-logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-heading);
}

.stb-header-logo .custom-logo {
    max-height: 50px;
    width: auto;
}

/* Search button */

.stb-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-heading);
    padding: 4px;
    margin-left: 16px;
    transition: color 0.2s;
}

.stb-search-btn:hover {
    color: var(--color-accent);
}

/* Hamburger — hidden on desktop */

.stb-hamburger {
    display: none;
}

.stb-hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-heading);
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* --------------------------------------------------------------------------
   2. HERO GRID — 4 equal posts in a horizontal row (Baby Pro style)
      Images on top (clean, NO dark overlay!), titles BELOW on white bg
   -------------------------------------------------------------------------- */

.stb-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 5px;
    margin-bottom: 20px;
}

.stb-hero-item {
    display: flex;
    flex-direction: column;
}

.stb-hero-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.stb-hero-thumb img,
.stb-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.stb-hero-item:hover .stb-hero-img {
    transform: scale(1.04);
}

.stb-hero-meta {
    padding: 10px 4px 0;
}

.stb-hero-meta .stb-category-badge {
    margin-bottom: 6px;
    display: inline-block;
}

.stb-hero-meta h3 {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: #000;
}

.stb-hero-meta h3 a {
    color: #000;
}

.stb-hero-meta h3 a:hover {
    color: var(--color-accent);
}

/* Override the 1 big + 3 small layout — flatten everything to equal items */
.stb-hero-big {
    grid-row: auto;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

.stb-hero-small-stack {
    display: contents; /* let children participate in parent grid */
}

.stb-hero-small {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

/* Hero link and overlay — Baby Pro: clean image, NO dark gradient */
.stb-hero-big > a.stb-hero-link,
.stb-hero-small > a.stb-hero-link {
    display: block;
    width: 100%;
    height: 100%;
}

.stb-hero-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
}

/* Category badge inside hero */
.stb-hero-overlay .stb-category-badge {
    margin-bottom: 8px;
    align-self: flex-start;
}

/* Hero titles */
.stb-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    color: #fff;
    margin: 0;
}

.stb-hero-title a {
    color: #fff;
}

.stb-hero-title--sm {
    font-size: 14px;
}

/* Hero nav arrows (if present) */
.stb-hero-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 0 4px;
}

.stb-hero-nav button {
    background: none;
    border: 1px solid var(--color-border);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: border-color 0.2s, color 0.2s;
}

.stb-hero-nav button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   3. CATEGORY BADGE (shared component)
   -------------------------------------------------------------------------- */

.stb-category-badge {
    display: inline-block;
    padding: 3px 6px;
    background: var(--color-badge-bg);
    color: var(--color-badge-text);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    border-radius: 0;
    text-decoration: none;
}

.stb-category-badge a {
    color: var(--color-badge-text);
}

.stb-category-badge:hover {
    background: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   4. SECTION TITLES — global style with LEFT pink border
   -------------------------------------------------------------------------- */

.stb-section-title,
.stb-section-title--accent,
.stb-widget-title,
.stb-col-header h2 {
    border-left: 3px solid var(--color-accent);
    border-bottom: none;
    padding-left: 10px;
    padding-bottom: 0;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   5. TRIPLE SECTION — Must Read (left) | Featured (center) | Recent (right)
   -------------------------------------------------------------------------- */

/* CB kreacje ad containers */
.stb-cb-billboard {
    margin-bottom: 16px;
}

.stb-cb-horizontal {
    margin: 24px auto;
}

.stb-cb-archive-ad {
    margin: 16px 0;
}

.stb-triple-section {
    padding: 40px 0;
}

.stb-triple-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 32px;
}

/* Must Read — interactive list */
.stb-must-read-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stb-must-read-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s;
}

.stb-must-read-item h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.stb-must-read-item h3 a {
    color: inherit;
}

.stb-must-read-item:hover h3,
.stb-must-read-item.stb-must-read-active h3 {
    color: var(--color-heading);
}

.stb-must-read-item.stb-must-read-active {
    border-left: 3px solid var(--color-accent);
    padding-left: 10px;
}

/* Center preview — dynamic featured post */
.stb-col-center {
    display: flex;
    flex-direction: column;
}

.stb-preview-link {
    display: block;
    margin-bottom: 16px;
}

.stb-preview-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.stb-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.stb-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stb-preview-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.stb-preview-title a {
    color: var(--color-heading);
}

.stb-preview-title a:hover {
    color: var(--color-accent);
}

/* ── Left column: WARTO PRZECZYTAC — text-only title list (no thumbnails) ── */

.stb-col-left .stb-small-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stb-col-left .stb-small-post {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.stb-col-left .stb-small-post:last-child {
    border-bottom: none;
}

/* Hide thumbnails in left column — Baby Pro shows only text titles */
.stb-col-left .stb-small-post-thumb {
    display: none;
}

.stb-col-left .stb-small-post-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}

.stb-col-left .stb-small-post-title a {
    color: var(--color-heading);
}

.stb-col-left .stb-small-post-title a:hover {
    color: var(--color-accent);
}

/* ── Center column — 1 big featured + grid of smaller ── */

.stb-center-featured {
    margin-bottom: 28px;
}

.stb-center-featured-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.stb-center-featured-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s;
}

.stb-center-featured-thumb:hover img {
    transform: scale(1.03);
}

.stb-center-featured-thumb .stb-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}

.stb-center-featured-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.stb-center-featured-title a {
    color: var(--color-heading);
}

.stb-center-featured-title a:hover {
    color: var(--color-accent);
}

.stb-center-featured-excerpt {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Center sub-grid — 2 columns */

.stb-center-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stb-center-card {
    position: relative;
}

.stb-center-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 370 / 250;
}

.stb-center-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.stb-center-card-thumb:hover img {
    transform: scale(1.03);
}

.stb-center-card-thumb .stb-category-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}

.stb-center-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.stb-center-card-title a {
    color: var(--color-heading);
}

.stb-center-card-title a:hover {
    color: var(--color-accent);
}

/* ── Right column: NAJNOWSZE — thumbnails + titles ── */

.stb-col-right .stb-small-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stb-col-right .stb-small-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.stb-col-right .stb-small-post:last-child {
    border-bottom: none;
}

.stb-col-right .stb-small-post-thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.stb-col-right .stb-small-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stb-col-right .stb-small-post-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.stb-col-right .stb-small-post-title a {
    color: var(--color-heading);
}

.stb-col-right .stb-small-post-title a:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   6. NEWSLETTER BOX — salmon pink background, white text
   -------------------------------------------------------------------------- */

.stb-newsletter-box {
    background: var(--color-accent);
    padding: 24px;
    margin-top: 24px;
    text-align: center;
    color: #fff;
}

.stb-newsletter-box .stb-newsletter-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stb-newsletter-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stb-newsletter-desc {
    font-family: var(--font-ui);
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    line-height: 1.5;
}

.stb-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stb-newsletter-input {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: #fff;
    font-size: 14px;
    font-family: var(--font-body);
    color: #333;
    outline: none;
}

.stb-newsletter-input::placeholder {
    color: #aaa;
}

.stb-newsletter-input:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.stb-newsletter-btn {
    width: 100%;
    padding: 10px 20px;
    background: var(--color-heading);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.stb-newsletter-btn:hover {
    background: #333;
}

/* --------------------------------------------------------------------------
   7. FEATURED CATEGORIES — 5 cards with dark overlay + white title
   -------------------------------------------------------------------------- */

.stb-featured-categories {
    padding: 48px 0;
    text-align: center;
}

.stb-featured-categories-heading {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-heading);
    margin-bottom: 32px;
}

.stb-featured-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.stb-featured-cat-card {
    position: relative;
    display: block;
    height: 280px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    text-decoration: none;
}

.stb-featured-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.stb-featured-cat-card:hover img {
    transform: scale(1.08);
}

.stb-featured-cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.stb-featured-cat-card:hover .stb-featured-cat-overlay {
    background: rgba(0,0,0,0.5);
}

.stb-featured-cat-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-transform: none;
    text-align: center;
    padding: 0 12px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. GUIDE SECTION — icon circles with salmon pink bg
   -------------------------------------------------------------------------- */

.stb-guide-section {
    background: var(--color-surface);
    padding: 48px 0;
}

.stb-guide-layout {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.stb-guide-intro {
    flex: 0 0 260px;
}

.stb-guide-heading {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-heading);
    margin-bottom: 12px;
    border-left: 3px solid var(--color-accent);
    padding-left: 10px;
}

.stb-guide-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.stb-guide-boxes {
    display: flex;
    gap: 24px;
    flex: 1;
}

.stb-guide-box {
    text-align: center;
    flex: 1;
}

.stb-guide-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.stb-guide-icon svg {
    width: 28px;
    height: 28px;
}

.stb-guide-box-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.stb-guide-box-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.stb-guide-box-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent);
    transition: color 0.2s;
}

.stb-guide-box-link:hover {
    color: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   9. BOTTOM SECTION — main (2/3) + sidebar (1/3)
   -------------------------------------------------------------------------- */

.stb-bottom-section {
    padding: 48px 0;
}

.stb-bottom-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* 2 large featured posts side by side — with overlay */

.stb-bottom-featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 32px;
}

.stb-bottom-featured {
    position: relative;
    overflow: hidden;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.stb-bottom-featured .stb-hero-link {
    display: block;
    width: 100%;
    height: 100%;
}

.stb-bottom-featured .stb-hero-overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}

.stb-bottom-featured .stb-category-badge {
    margin-bottom: 8px;
    align-self: flex-start;
}

.stb-bottom-featured .stb-hero-title,
.stb-bottom-featured .stb-hero-title--sm {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

/* Grid of 8 posts (2 columns) */

.stb-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stb-bottom-card {
    position: relative;
}

.stb-bottom-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 370 / 250;
}

.stb-bottom-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.stb-bottom-card-thumb:hover img {
    transform: scale(1.03);
}

.stb-bottom-card-thumb .stb-category-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}

.stb-bottom-card-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.stb-bottom-card-title a {
    color: var(--color-heading);
}

.stb-bottom-card-title a:hover {
    color: var(--color-accent);
}

/* ── Bottom sidebar ── */

.stb-bottom-sidebar .stb-widget {
    margin-bottom: 32px;
}

/* Popularne Artykuly — numbered list */

.stb-small-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stb-small-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.stb-small-post:last-child {
    border-bottom: none;
}

.stb-small-post-thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.stb-small-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stb-small-post-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.stb-small-post-title a {
    color: var(--color-heading);
}

.stb-small-post-title a:hover {
    color: var(--color-accent);
}

/* Numbered popular posts */

.stb-small-post--numbered {
    position: relative;
    padding-left: 0;
}

.stb-small-post-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-border);
    min-width: 28px;
    line-height: 1;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. SINGLE POST
   -------------------------------------------------------------------------- */

.stb-single-header {
    padding: 24px 0 16px;
    margin-bottom: 16px;
}

.stb-single-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--color-heading);
}

.stb-single-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.stb-single-meta a {
    color: var(--color-text-secondary);
}

.stb-single-meta a:hover {
    color: var(--color-accent);
}

/* Share buttons */

.stb-share-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.stb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.stb-share-btn--facebook { background: #3b5998; }
.stb-share-btn--twitter { background: #1da1f2; }
.stb-share-btn--pinterest { background: #bd081c; }
.stb-share-btn--whatsapp { background: #25d366; }

.stb-share-btn:hover {
    opacity: 0.9;
}

/* Featured image */

.stb-featured-image {
    margin-bottom: 32px;
    overflow: hidden;
}

.stb-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tags */

.stb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.stb-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-surface);
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-text);
    font-weight: 500;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}

.stb-tags a:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Author box */

.stb-author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-surface);
    margin-bottom: 32px;
}

.stb-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.stb-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stb-author-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stb-author-name a {
    color: var(--color-heading);
}

.stb-author-name a:hover {
    color: var(--color-accent);
}

.stb-author-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Post navigation */

.stb-post-nav {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    margin-bottom: 32px;
}

.stb-post-nav-link {
    max-width: 45%;
}

.stb-post-nav-label {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stb-post-nav-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-heading);
}

.stb-post-nav-title:hover {
    color: var(--color-accent);
}

/* Related posts */

.stb-related {
    margin-bottom: 32px;
}

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

.stb-related-item-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 16 / 10;
}

.stb-related-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stb-related-item h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.stb-related-item h3 a {
    color: var(--color-heading);
}

.stb-related-item h3 a:hover {
    color: var(--color-accent);
}

.stb-related-item .stb-post-date {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   11. ARCHIVE HEADER
   -------------------------------------------------------------------------- */

.stb-archive-header {
    background: var(--color-surface);
    padding: 20px 0;
    margin-bottom: 24px;
}

.stb-archive-header .stb-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.stb-archive-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.stb-archive-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
    order: 1;
}

.stb-archive-header .stb-breadcrumbs {
    order: 2;
    margin: 0;
    padding: 0;
}

/* Sidebar: Najnowsze widget */
.stb-tab-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.stb-tab-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stb-tab-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 65px;
    overflow: hidden;
    display: block;
}

.stb-tab-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stb-tab-info {
    flex: 1;
    min-width: 0;
}

.stb-tab-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 4px 0;
}

.stb-tab-title a {
    color: var(--color-heading);
}

.stb-tab-title a:hover {
    color: var(--color-accent);
}

.stb-tab-meta {
    font-size: 11px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.stb-tab-meta a {
    color: var(--color-accent);
    font-weight: 500;
}

/* Archive horizontal card list */
.stb-archive-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stb-archive-card {
    display: flex;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.stb-archive-card:last-child {
    border-bottom: none;
}

.stb-archive-card-thumb {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    overflow: hidden;
    display: block;
}

.stb-archive-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.stb-archive-card:hover .stb-archive-card-thumb img {
    transform: scale(1.04);
}

.stb-archive-card-thumb .stb-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-surface);
}

.stb-archive-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stb-archive-card-body .stb-category-badge {
    align-self: flex-start;
}

.stb-archive-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.stb-archive-card-title a {
    color: var(--color-heading);
}

.stb-archive-card-title a:hover {
    color: var(--color-accent);
}

.stb-archive-card-meta {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 6px;
    align-items: center;
}

.stb-archive-card-excerpt {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stb-archive-card-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: auto;
}

.stb-archive-card-more:hover {
    color: var(--color-accent-hover);
}

@media (max-width: 768px) {
    .stb-archive-card {
        flex-direction: column;
    }
    .stb-archive-card-thumb {
        width: 100%;
        height: 200px;
    }
}

.stb-archive-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   12. FOOTER — light gray bg (#f4f4f4), dark text, salmon pink accents
   -------------------------------------------------------------------------- */

.stb-footer {
    background: var(--color-footer-bg);
    padding: 48px 0 0;
    color: var(--color-footer-text);
}

.stb-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

/* Footer logo — DARK text (not white) */

.stb-footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 16px;
}

.stb-footer-logo-icon {
    color: var(--color-accent);
}

.stb-footer-logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
}

.stb-footer .stb-footer-logo a {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stb-footer .stb-footer-logo .stb-logo-icon {
    color: var(--color-accent);
}

.stb-footer-desc {
    font-size: 14px;
    color: var(--color-footer-text);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Social icons — salmon pink circles */

.stb-footer-social {
    display: flex;
    gap: 10px;
}

.stb-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.stb-footer-social a:hover {
    background: var(--color-accent-hover);
}

.stb-footer-social a svg {
    width: 16px;
    height: 16px;
}

/* Footer headings — Montserrat uppercase, dark */

.stb-footer-title,
.stb-footer-heading {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--color-heading);
}

/* Footer links */

.stb-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stb-footer-links li {
    margin-bottom: 10px;
}

.stb-footer-links a {
    font-size: 14px;
    color: var(--color-footer-text);
    transition: color 0.2s;
}

.stb-footer-links a:hover {
    color: var(--color-accent);
}

/* Footer categories list */

.stb-footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stb-footer-categories li {
    margin-bottom: 10px;
}

.stb-footer-categories a {
    font-size: 14px;
    color: var(--color-footer-text);
    transition: color 0.2s;
}

.stb-footer-categories a:hover {
    color: var(--color-accent);
}

.stb-footer-cat-count {
    color: var(--color-text-secondary);
    font-size: 12px;
}

/* Footer contact */

.stb-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stb-footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-footer-text);
}

.stb-footer-contact svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.stb-footer-contact a {
    color: var(--color-footer-text);
}

.stb-footer-contact a:hover {
    color: var(--color-accent);
}

.stb-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.stb-footer-legal-links a {
    font-size: 13px;
    color: var(--color-accent);
}

.stb-footer-legal-links a:hover {
    color: var(--color-accent-hover);
}

/* Footer posts (column 2) */

.stb-footer-post {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.stb-footer-post-thumb {
    width: 70px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
    display: block;
}

.stb-footer-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stb-footer-post-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.4;
    display: block;
}

.stb-footer-post-title:hover {
    color: var(--color-accent);
}

.stb-footer-post-date {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: block;
    margin-top: 2px;
}

/* Footer bottom bar */

.stb-footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
    color: var(--color-footer-text);
}

.stb-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stb-footer-bottom-links {
    display: flex;
    gap: 16px;
}

.stb-footer-bottom a {
    color: var(--color-accent);
}

.stb-footer-bottom a:hover {
    color: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   13. BUTTONS (shared)
   -------------------------------------------------------------------------- */

.stb-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.stb-btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
}

/* --------------------------------------------------------------------------
   14. MOBILE MENU (slide from left)
   -------------------------------------------------------------------------- */

.stb-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
}

.stb-mobile-overlay.active {
    display: block;
}

.stb-mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 200;
    transition: left 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 16px rgba(0,0,0,0.1);
}

.stb-mobile-menu.active {
    left: 0;
}

.stb-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.stb-mobile-menu-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-heading);
}

.stb-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-heading);
    padding: 4px;
}

.stb-mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.stb-mobile-menu-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stb-mobile-menu-body li {
    border-bottom: 1px solid var(--color-border);
}

.stb-mobile-menu-body a,
.stb-mobile-nav-list a {
    display: block;
    padding: 14px 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stb-mobile-menu-body a:hover,
.stb-mobile-nav-list a:hover {
    color: var(--color-accent);
    background: var(--color-surface);
}

.stb-mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
}

.stb-mobile-search {
    display: flex;
    gap: 0;
}

.stb-mobile-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-right: none;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.stb-mobile-search button {
    padding: 10px 14px;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: #fff;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   15. SEARCH OVERLAY (fullscreen)
   -------------------------------------------------------------------------- */

.stb-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 300;
    align-items: center;
    justify-content: center;
}

.stb-search-overlay.active {
    display: flex;
}

.stb-search-overlay-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.stb-search-overlay-close:hover {
    color: var(--color-accent);
}

.stb-search-overlay-form {
    width: 90%;
    max-width: 600px;
    display: flex;
    gap: 0;
}

.stb-search-overlay-form input[type="search"] {
    flex: 1;
    padding: 16px 24px;
    font-size: 18px;
    font-family: var(--font-body);
    border: none;
    outline: none;
    background: #fff;
    color: var(--color-heading);
}

.stb-search-overlay-form button {
    padding: 16px 20px;
    background: var(--color-accent);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.stb-search-overlay-form button:hover {
    background: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   16. POST DATE & META (shared)
   -------------------------------------------------------------------------- */

.stb-post-date {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.stb-meta-separator {
    color: var(--color-border);
}

/* --------------------------------------------------------------------------
   17. BREADCRUMBS
   -------------------------------------------------------------------------- */

.stb-breadcrumbs {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #666;
    padding: 8px 0;
    margin-bottom: 8px;
}

.stb-breadcrumbs ol,
.stb-breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.stb-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.stb-breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.stb-breadcrumbs a:hover {
    color: var(--color-accent);
}

.stb-breadcrumbs .stb-breadcrumb-sep {
    margin: 0 8px;
    color: #aaa;
    font-size: 11px;
}

.stb-archive-header .stb-breadcrumbs {
    color: #666;
}

.stb-archive-header .stb-breadcrumbs a {
    color: #666;
}

/* --------------------------------------------------------------------------
   18. PAGINATION
   -------------------------------------------------------------------------- */

.stb-pagination {
    margin: 32px 0;
    text-align: center;
}

.stb-pagination ul,
.stb-pagination ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.stb-pagination li {
    display: inline-flex;
}

.stb-pagination a,
.stb-pagination span,
.stb-pagination li a,
.stb-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

.stb-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.stb-page-num:hover,
.stb-pagination a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.stb-page-current,
.stb-pagination .current {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.stb-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--color-text-secondary);
    border: none;
}

/* --------------------------------------------------------------------------
   19. TABLE OF CONTENTS (single)
   -------------------------------------------------------------------------- */

.stb-toc {
    background: var(--color-surface);
    padding: 20px 24px;
    margin-bottom: 32px;
    border-left: 3px solid var(--color-accent);
    border-radius: 0;
}

.stb-toc-title {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-heading);
}

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

.stb-toc-list li {
    margin-bottom: 6px;
}

.stb-toc-list a {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
}

.stb-toc-list a:hover {
    color: var(--color-accent);
}

.stb-toc-list .stb-toc-h3 {
    padding-left: 16px;
}

/* --------------------------------------------------------------------------
   20. BACK TO TOP
   -------------------------------------------------------------------------- */

.stb-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.stb-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.stb-back-to-top:hover {
    background: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   21. CONTACT PAGE
   -------------------------------------------------------------------------- */

.stb-contact-form {
    max-width: 600px;
}

.stb-form-group {
    margin-bottom: 20px;
}

.stb-form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.stb-form-group input,
.stb-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s;
    color: var(--color-text);
    background: #fff;
}

.stb-form-group input:focus,
.stb-form-group textarea:focus {
    border-color: var(--color-accent);
}

.stb-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.stb-contact-success {
    padding: 16px;
    background: #d4edda;
    color: #155724;
    font-size: 14px;
    margin-bottom: 16px;
}

.stb-contact-error {
    padding: 16px;
    background: #f8d7da;
    color: #721c24;
    font-size: 14px;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   22. RESPONSIVE — 1024px
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    /* Hero: 2 columns instead of 4 */
    .stb-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stb-hero-big {
        min-height: 200px;
    }

    .stb-hero-small {
        min-height: 200px;
    }

    /* Triple: single column */
    .stb-triple-grid {
        grid-template-columns: 1fr;
    }

    /* Featured categories: 3 cols */
    .stb-featured-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Guide: stack vertically */
    .stb-guide-layout {
        flex-direction: column;
    }

    .stb-guide-intro {
        flex: 0 0 auto;
        text-align: center;
    }

    .stb-guide-heading {
        display: inline-block;
    }

    /* Bottom: single column */
    .stb-bottom-layout {
        grid-template-columns: 1fr;
    }

    /* Footer: 2 cols */
    .stb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   23. RESPONSIVE — 768px
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .stb-header-inner {
        height: 60px;
    }

    .stb-nav-left,
    .stb-nav-right {
        display: none;
    }

    .stb-hamburger {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-heading);
        padding: 4px;
        gap: 0;
    }

    /* Hero: 2 columns */
    .stb-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stb-hero-big,
    .stb-hero-small {
        min-height: 180px;
    }

    /* Show thumbnails in left column on mobile */
    .stb-col-left .stb-small-post-thumb {
        display: block;
        width: 80px;
        height: 60px;
        flex-shrink: 0;
        overflow: hidden;
    }

    .stb-col-left .stb-small-post {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    /* Featured categories: 2 cols */
    .stb-featured-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stb-featured-cat-card {
        height: 220px;
    }

    /* Guide boxes wrap */
    .stb-guide-boxes {
        flex-wrap: wrap;
    }

    .stb-guide-box {
        flex: 0 0 calc(50% - 12px);
    }

    /* Bottom featured: single col */
    .stb-bottom-featured-row {
        grid-template-columns: 1fr;
    }

    .stb-bottom-featured {
        height: 240px;
    }

    /* Bottom grid: single col */
    .stb-bottom-grid {
        grid-template-columns: 1fr;
    }

    /* Center grid: single col */
    .stb-center-grid {
        grid-template-columns: 1fr;
    }

    /* Related: single col */
    .stb-related-grid {
        grid-template-columns: 1fr;
    }

    /* Footer: single col */
    .stb-footer-grid {
        grid-template-columns: 1fr;
    }

    /* Share buttons wrap */
    .stb-share-buttons {
        flex-wrap: wrap;
    }

    /* Post nav stack */
    .stb-post-nav {
        flex-direction: column;
        gap: 16px;
    }

    .stb-post-nav-link {
        max-width: 100%;
    }

    /* Author box stack */
    .stb-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Single title smaller */
    .stb-single-title {
        font-size: 1.6rem;
    }

    /* Footer bottom stack */
    .stb-footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   24. RESPONSIVE — 480px
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    /* Hero: single column */
    .stb-hero-grid {
        grid-template-columns: 1fr;
    }

    .stb-hero-big,
    .stb-hero-small {
        min-height: 180px;
    }

    /* Featured categories: single col */
    .stb-featured-categories-grid {
        grid-template-columns: 1fr;
    }

    .stb-featured-cat-card {
        height: 200px;
    }

    .stb-center-grid {
        grid-template-columns: 1fr;
    }

    .stb-single-title {
        font-size: 1.4rem;
    }

    .stb-hero-title {
        font-size: 14px;
    }

    .stb-hero-overlay {
        padding: 12px;
    }

    .stb-guide-box {
        flex: 0 0 100%;
    }

    .stb-share-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .stb-newsletter-box {
        padding: 20px 16px;
    }
}
