/* ==========================================================================
   BIBLE APP — Material Design Overrides
   Mobile-first styling for buttons, cards, and UI components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Body padding — reserve space for bottom nav bar
   -------------------------------------------------------------------------- */
body {
    padding-bottom: 64px !important;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 72px !important;
    }
}

/* --------------------------------------------------------------------------
   CSS Custom Properties (bridge to existing theme vars)
   -------------------------------------------------------------------------- */
:root {
    --md-elevation-1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
    --md-elevation-2: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    --md-elevation-4: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
    --md-elevation-8: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
    --md-radius-card: 12px;
    --md-radius-btn: 4px;
    --md-transition: cubic-bezier(0.4, 0, 0.2, 1);
    --md-on-surface: rgba(0,0,0,.87);
    --md-on-surface-medium: rgba(0,0,0,.6);
    --md-on-surface-disabled: rgba(0,0,0,.38);
    --md-surface: #ffffff;
    --md-surface-variant: #f5f5f5;
}

.dark-mode {
    --md-on-surface: rgba(255,255,255,.87);
    --md-on-surface-medium: rgba(255,255,255,.6);
    --md-on-surface-disabled: rgba(255,255,255,.38);
    --md-surface: #1e1e1e;
    --md-surface-variant: #2c2c2c;
}

/* --------------------------------------------------------------------------
   Material Design Buttons
   -------------------------------------------------------------------------- */
.btn,
.btn-default,
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-custom,
.btn-md,
.btn-load-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--md-radius-btn);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .0892857143em;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    overflow: hidden;
    vertical-align: middle;
    white-space: nowrap;
    outline: none !important;
    transition: box-shadow 280ms var(--md-transition),
                background-color 120ms var(--md-transition),
                color 120ms var(--md-transition);
    box-shadow: var(--md-elevation-2);
    -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.btn-default:hover,
.btn-custom:hover,
.btn-load-more:hover {
    box-shadow: var(--md-elevation-4);
    text-decoration: none !important;
}

.btn:active,
.btn-custom:active {
    box-shadow: var(--md-elevation-8);
}

/* Ripple pseudo-element */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.35) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
    pointer-events: none;
}

.btn:active::after {
    transform: scale(0);
    opacity: .4;
    transition: 0s;
}

/* Size variants */
.btn-lg {
    height: 44px;
    padding: 0 24px;
    font-size: .9375rem;
    border-radius: var(--md-radius-btn);
}

.btn-sm {
    height: 30px;
    padding: 0 12px;
    font-size: .8125rem;
    border-radius: var(--md-radius-btn);
}

.btn-xs {
    height: 26px;
    padding: 0 8px;
    font-size: .75rem;
    border-radius: var(--md-radius-btn);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Outlined / text variant */
.btn-link,
.btn-outline {
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid currentColor;
}

.btn-link:hover {
    background: rgba(0,0,0,.04) !important;
    box-shadow: none !important;
}

/* Larger tap targets on touch devices */
@media (max-width: 768px) {
    .btn,
    .btn-default,
    .btn-custom {
        height: 42px;
        padding: 0 18px;
        font-size: .9rem;
        border-radius: 6px;
    }

    .btn-lg {
        height: 48px;
    }
}

/* --------------------------------------------------------------------------
   Material Design Cards (Post Items)
   -------------------------------------------------------------------------- */
.post-item {
    background: var(--md-surface);
    border-radius: var(--md-radius-card);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
    transition: box-shadow 280ms var(--md-transition),
                transform 200ms var(--md-transition);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,.05);
}

.post-item:hover {
    box-shadow: var(--md-elevation-4);
    transform: translateY(-2px);
    border-color: transparent;
}

/* Card image */
.post-item .post-item-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--md-radius-card) var(--md-radius-card) 0 0;
    background: #e0e0e0;
}

.post-item .post-item-image img,
.post-item .post-item-image .img-fluid {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 400ms var(--md-transition);
}

.post-item:hover .post-item-image img,
.post-item:hover .post-item-image .img-fluid {
    transform: scale(1.04);
}

/* Card body text */
.post-item h3.title,
.post-item .title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 12px 16px 6px;
    padding: 0;
    color: var(--md-on-surface);
}

.post-item .title a {
    color: var(--md-on-surface);
    text-decoration: none;
    transition: color 120ms var(--md-transition);
}

.post-item .title a:hover {
    color: var(--vr-theme-color);
}

.post-item .post-meta,
.post-item p.post-meta {
    margin: 0 16px 6px;
    font-size: .75rem;
    color: var(--md-on-surface-medium);
    line-height: 1.4;
}

.post-item .description,
.post-item p.description {
    margin: 0 16px 16px;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--md-on-surface-medium);
}

/* Category label chip */
.post-item .category-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Post item without image — add top padding */
.post-item-no-image h3.title,
.post-item-no-image .title {
    margin-top: 16px;
}

/* Horizontal card variant */
.post-item-horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--md-surface);
    border-radius: var(--md-radius-card);
    box-shadow: var(--md-elevation-1);
    transition: box-shadow 280ms var(--md-transition), transform 200ms var(--md-transition);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
}

.post-item-horizontal:hover {
    box-shadow: var(--md-elevation-4);
    transform: translateY(-2px);
}

.post-item-horizontal .post-item-image {
    width: 120px;
    flex-shrink: 0;
    border-radius: var(--md-radius-card) 0 0 var(--md-radius-card);
}

.post-item-horizontal .post-item-image img {
    width: 120px;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Dark Mode Card Adjustments
   -------------------------------------------------------------------------- */
.dark-mode .post-item,
.dark-mode .post-item-horizontal {
    border-color: rgba(255,255,255,.08);
    box-shadow: 0 2px 1px -1px rgba(0,0,0,.4),
                0 1px 1px 0 rgba(0,0,0,.28),
                0 1px 3px 0 rgba(0,0,0,.24);
}

/* --------------------------------------------------------------------------
   Sidebar Widget Cards
   -------------------------------------------------------------------------- */
.sidebar-widget {
    background: var(--md-surface);
    border-radius: var(--md-radius-card);
    overflow: hidden;
    box-shadow: var(--md-elevation-1);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,.05);
}

.dark-mode .sidebar-widget {
    border-color: rgba(255,255,255,.08);
}

/* --------------------------------------------------------------------------
   Material Pagination
   -------------------------------------------------------------------------- */
.pagination > li > a,
.pagination > li > span {
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 3px;
    border: none !important;
    font-size: .875rem;
    transition: background-color 200ms var(--md-transition);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    border-radius: 50% !important;
    background-color: var(--vr-theme-color) !important;
    border-color: var(--vr-theme-color) !important;
    color: #fff !important;
    box-shadow: var(--md-elevation-2);
}

/* --------------------------------------------------------------------------
   Material Form Inputs
   -------------------------------------------------------------------------- */
.form-control,
.form-input,
.auth-form-input {
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,.42) !important;
    border-radius: 4px 4px 0 0 !important;
    background-color: rgba(0,0,0,.04) !important;
    padding: 12px 16px 8px !important;
    transition: border-bottom-color 200ms var(--md-transition),
                background-color 200ms var(--md-transition);
    box-shadow: none !important;
}

.form-control:focus,
.form-input:focus,
.auth-form-input:focus {
    background-color: rgba(0,0,0,.08) !important;
    border-bottom: 2px solid var(--vr-theme-color) !important;
    box-shadow: none !important;
    outline: none !important;
}

.dark-mode .form-control,
.dark-mode .form-input,
.dark-mode .auth-form-input {
    background-color: rgba(255,255,255,.06) !important;
    border-bottom-color: rgba(255,255,255,.42) !important;
    color: var(--md-on-surface) !important;
}

/* --------------------------------------------------------------------------
   Navbar Elevation
   -------------------------------------------------------------------------- */
.navbar-inverse,
.navbar-default {
    box-shadow: var(--md-elevation-4);
}

/* --------------------------------------------------------------------------
   Material Icons Helper Classes
   -------------------------------------------------------------------------- */
.material-icons,
.material-icons-outlined,
.material-icons-round {
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Mobile-first: Responsive Card Grid
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
    .post-item {
        border-radius: 10px;
        margin-bottom: 14px;
    }

    .post-item .post-item-image img {
        height: 190px;
    }

    .post-item h3.title,
    .post-item .title {
        font-size: .9375rem;
    }

    .post-item-horizontal .post-item-image {
        width: 100px;
    }

    .post-item-horizontal .post-item-image img {
        width: 100px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Bottom Navigation Bar
   -------------------------------------------------------------------------- */
#mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    display: flex;
    align-items: stretch;
    height: 58px;
    background: var(--md-surface, #ffffff);
    box-shadow: 0 -1px 0 rgba(0,0,0,.08), 0 -4px 12px rgba(0,0,0,.10);
    border-top: 1px solid rgba(0,0,0,.06);
    /* Safe-area inset for iOS notched devices */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(58px + env(safe-area-inset-bottom, 0px));
}

.dark-mode #mobile-bottom-nav {
    background: #1e1e1e;
    border-top-color: rgba(255,255,255,.10);
    box-shadow: 0 -1px 0 rgba(255,255,255,.06), 0 -4px 12px rgba(0,0,0,.30);
}

/* Each tab item */
.mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(0,0,0,.54) !important;
    text-decoration: none !important;
    padding: 6px 0 4px;
    position: relative;
    cursor: pointer;
    transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.dark-mode .mbn-item {
    color: rgba(255,255,255,.54) !important;
}

/* Active tab */
.mbn-item.mbn-active {
    color: var(--vr-theme-color, #1976d2) !important;
}

.dark-mode .mbn-item.mbn-active {
    color: var(--vr-theme-color, #90caf9) !important;
}

/* Active indicator pill behind icon */
.mbn-item.mbn-active::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 28px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--vr-theme-color, #1976d2) 15%, transparent);
}

/* Ripple on tap */
.mbn-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 200ms;
    border-radius: 0;
    pointer-events: none;
}

.mbn-item:active::after {
    opacity: .08;
}

/* Icon size */
.mbn-item .material-icons,
.mbn-item .material-icons-outlined,
.mbn-item .material-icons-round {
    font-size: 22px;
    line-height: 1;
    position: relative;
    z-index: 1;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mbn-item.mbn-active .material-icons,
.mbn-item.mbn-active .material-icons-outlined,
.mbn-item.mbn-active .material-icons-round {
    transform: translateY(-1px);
}

/* Label */
.mbn-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .03em;
    line-height: 1;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    transition: font-weight 200ms;
}

.mbn-item.mbn-active .mbn-label {
    font-weight: 700;
}

/* Hide old scrollup button (overridden) */
.scrollup {
    display: none !important;
}

/* Hide legacy footer if it somehow remains */
#footer {
    display: none !important;
}

/* On very wide screens, constrain + center the nav */
@media (min-width: 600px) {
    #mobile-bottom-nav {
        height: 64px;
    }

    .mbn-item .material-icons,
    .mbn-item .material-icons-outlined,
    .mbn-item .material-icons-round {
        font-size: 24px;
    }

    .mbn-label {
        font-size: 11px;
    }
}

/* ==========================================================================
   Post Detail — Hero Section
   ========================================================================== */

/* Hero wrapper */
.post-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.post-hero-has-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.post-hero-color {
    background-color: var(--vr-theme-color, #1565c0);
    min-height: 30vh;
}

/* Dark overlay gradient for legibility over images */
.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.78) 0%,
        rgba(0,0,0,.38) 55%,
        rgba(0,0,0,.08) 100%
    );
    pointer-events: none;
}

/* solid tint for color-only hero (no image) */
.post-hero-color .post-hero-overlay {
    background: rgba(0,0,0,.22);
}

/* Inner container positioned above overlay */
.post-hero-body {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px 0 52px;
}

/* Breadcrumb inside hero — white text */
.post-hero-breadcrumb {
    margin-bottom: 12px;
}
.post-hero-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}
.post-hero-breadcrumb .breadcrumb-item,
.post-hero-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,.80) !important;
    font-size: 12px;
    text-decoration: none !important;
}
.post-hero-breadcrumb .breadcrumb-item.active {
    color: rgba(255,255,255,.60) !important;
}
.post-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.45);
}

/* Category badge in hero */
.post-hero-badges .badge-category {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
}

/* Hero title */
.post-hero-title {
    color: #ffffff !important;
    font-size: clamp(1.35rem, 5vw, 2rem);
    line-height: 1.3;
    margin: 10px 0 8px;
    text-shadow: 0 1px 5px rgba(0,0,0,.55);
}

/* Hero summary / subtitle */
.post-hero-summary {
    color: rgba(255,255,255,.88) !important;
    font-size: 1rem;
    margin: 0 0 4px;
    line-height: 1.55;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

/* ==========================================================================
   Post Detail — Body Card
   ========================================================================== */

.post-details-page {
    margin-bottom: 60px;
}

/* The main content area rises up to overlap the bottom of the hero */
.post-body-card {
    background: #ffffff;
    border-radius: 14px 14px 10px 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    padding: 24px 20px 28px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.dark-mode .post-body-card {
    background: #1e1e1e;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* 2.0 line spacing for article body */
.post-text,
.post-content .post-text {
    line-height: 2.0 !important;
    font-size: 16px;
}
.post-text p,
.post-content .post-text p,
.post-text div,
.post-content .post-text div {
    line-height: 2.0;
    margin-bottom: 1.1em;
}

/* ==========================================================================
   Post Detail — Fixed Circular Prev/Next Nav (Josephus style)
   ========================================================================== */

.post-nav-fixed {
    position: fixed;
    bottom: 82px;              /* sits above 64px mobile-bottom-nav */
    z-index: 10000000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.14);
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
    color: var(--vr-theme-color, #1565c0);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: box-shadow 200ms cubic-bezier(0.4,0,0.2,1),
                transform 200ms cubic-bezier(0.4,0,0.2,1);
    -webkit-tap-highlight-color: transparent;
}

.post-nav-fixed:hover,
.post-nav-fixed:focus {
    box-shadow: 0 5px 16px rgba(0,0,0,.30);
    transform: scale(1.08);
    color: var(--vr-theme-color, #1565c0);
    text-decoration: none !important;
}

.post-nav-fixed:active {
    transform: scale(0.96);
}

.post-nav-fixed svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.post-nav-prev { left: 10px; }
.post-nav-next { right: 10px; }

.dark-mode .post-nav-fixed {
    background: #2c2c2c;
    border-color: rgba(255,255,255,.12);
    color: var(--vr-theme-color, #90caf9);
}

/* ==========================================================================
   Post Detail — Inline Prev/Next Cards (above fixed buttons)
   ========================================================================== */

.post-next-prev-cards {
    display: flex;
    gap: 10px;
    margin: 24px 0 8px;
}

.pnp-card {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 180ms, transform 180ms;
}

.pnp-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.11);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.dark-mode .pnp-card {
    background: #2a2a2a;
    border-color: rgba(255,255,255,.08);
}

.pnp-card-next {
    flex-direction: row-reverse;   /* thumb on right */
}

/* Thumbnail inside card */
.pnp-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Icon placeholder when no image */
.pnp-icon-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(0,0,0,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--vr-theme-color, #1565c0);
}

.dark-mode .pnp-icon-placeholder {
    background: rgba(255,255,255,.08);
}

.pnp-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pnp-text-end {
    text-align: right;
}

.pnp-dir {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--vr-theme-color, #1565c0);
    display: flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
}

.pnp-text-end .pnp-dir {
    justify-content: flex-end;
}

.pnp-arrow {
    font-size: 14px !important;
    line-height: 1 !important;
}

.pnp-title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* On mobile: stack cards vertically if very narrow */
@media (max-width: 400px) {
    .post-next-prev-cards {
        flex-direction: column;
    }
}

/* ==========================================================================
   App Header — force mobile header on ALL screen sizes
   ========================================================================== */

/* Hide admin top bar and desktop nav menu on all screens */
#nav-top {
    display: none !important;
}

.nav-main {
    display: none !important;
}

/* Force the mobile header container visible on ALL screen sizes */
.header-mobile-container {
    display: block !important;
}

/* Push page content down to clear the fixed header */
#header {
    min-height: 70px;
    margin-bottom: 0 !important;
}

/* Raise header above everything (incl. Bootstrap modal backdrop) */
.header-mobile-container .fixed-top {
    z-index: 9500;
}

/* Dark mode header background */
.dark-mode .header-mobile {
    background-color: #1e1e1e;
    box-shadow: 0 2px 15px rgba(0,0,0,.35);
    border-bottom-color: rgba(255,255,255,.08);
}

.dark-mode .header-mobile .menu-button svg {
    stroke: #e0e0e0;
}

/* ==========================================================================
   Back Header (non-homepage) — title + back button
   ========================================================================== */

.header-mobile-back {
    /* inherits .header-mobile styles; no overrides needed by default */
}

/* Back chevron button */
.mobile-back-button {
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 10px 13px !important;
    background-color: transparent !important;
    color: inherit;
}

.mobile-back-button svg {
    display: block;
}

/* Center title area */
.mobile-page-title {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-page-title-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: inherit;
}

.dark-mode .mobile-page-title-text {
    color: #f0f0f0;
}

/* ==========================================================================
   Homepage mobile header — keep the hamburger-menu drawer working
   ========================================================================== */

/* Adjust nav-mobile drawer top to match fixed header height */
.nav-mobile {
    top: 70px !important;
}

/* Ensure content body clears the fixed header */
body > .container-xl,
body > section,
#postDetailsPage,
.post-details-page,
.post-hero {
    margin-top: 0;
}

/* Add top clearance below fixed header for all pages */
#header + * {
    padding-top: 0;
}

@media (min-width: 992px) {
    /* On larger screens, widen the header to full width neatly */
    .header-mobile .d-flex {
        padding: 0 24px;
    }

    .nav-mobile {
        top: 70px !important;
    }
}

/* Hide standalone breadcrumb — app feels native without it */
nav[aria-label="breadcrumb"] {
    display: none !important;
}
/* Keep breadcrumb inside the post hero (it's styled as part of the hero) */
.post-hero-breadcrumb nav[aria-label="breadcrumb"] {
    display: block !important;
}
