/* ============================================================================
   MiniCab Lane — blog article (pages/blogarticle.blade.php)
   ----------------------------------------------------------------------------
   Dark photo hero with the title, a readable white article card on cream
   with a sticky booking sidebar, and prose styles for the CMS HTML.

   Article HTML comes from the admin editor (often pasted from Word), so the
   .mlb-prose rules override its inline styles: Times New Roman spans, fixed
   cell heights/widths, blue and yellow link and border colours. Everything is
   scoped to .mlb.
   ========================================================================= */

.mlb {
    --b-ink: #141210;
    --b-ink-2: #2b2620;
    --b-body: #4f4842;
    --b-muted: #8a8178;
    --b-line: #eee7dc;
    --b-line-2: #ded5c7;
    --b-cream: #faf6ef;
    --b-tint: #fbf8f3;
    --b-wash: #fff5dc;
    --b-orange: #f57c00;
    --b-orange-ink: #a64f00;
    --b-gold: #ffc219;
    --b-gold-2: #f5b94c;
    --b-r: 14px;
    --b-r-lg: 20px;
    --b-shadow-sm: 0 1px 2px rgba(28, 20, 8, .04), 0 4px 14px -4px rgba(28, 20, 8, .07);
    --b-shadow: 0 1px 3px rgba(28, 20, 8, .05), 0 14px 34px -10px rgba(28, 20, 8, .14);
    --b-ease: cubic-bezier(.22, .61, .36, 1);
    background: var(--b-cream);
    color: var(--b-body);
}

/* =================================================================== HERO */

.mlb-hero {
    position: relative;
    overflow: hidden;
    background: #0c0b0a center / cover no-repeat;
    color: #fff;
}
.mlb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 7, 6, .9) 0%, rgba(8, 7, 6, .72) 55%, rgba(8, 7, 6, .45) 100%),
        linear-gradient(180deg, rgba(8, 7, 6, .2) 0%, rgba(8, 7, 6, .55) 100%);
}
.mlb-hero__inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    /* top padding clears the fixed promo bar + header */
    padding: clamp(150px, 13vw, 184px) 24px clamp(56px, 6vw, 84px);
}
.mlb-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 0 0 22px;
    font-size: .85rem !important;
    color: rgba(255, 255, 255, .7) !important;
}
.mlb-crumbs a { color: var(--b-gold-2) !important; text-decoration: none !important; font-weight: 600; }
.mlb-crumbs a:hover { color: var(--b-gold) !important; }
.mlb-crumbs span[aria-hidden] { opacity: .5; }

.mlb .mlb-hero h1 {
    max-width: 860px;
    margin: 0 0 18px !important;
    font-size: clamp(2rem, 4.2vw, 3.3rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -.03em !important;
    color: #fff !important;
    text-shadow: 0 1px 18px rgba(0, 0, 0, .25);
}
.mlb .mlb-hero__lede {
    max-width: 720px;
    margin: 0 0 26px !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, .85) !important;
}
.mlb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.mlb-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 194, 25, .3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: .85rem !important;
    color: #fff !important;
}
.mlb-meta i { color: var(--b-gold); }

/* =================================================================== BODY */

.mlb-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(32px, 4vw, 56px) 24px clamp(48px, 6vw, 80px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.mlb-article {
    background: #fff;
    border: 1px solid var(--b-line);
    border-radius: var(--b-r-lg);
    box-shadow: var(--b-shadow-sm);
    padding: clamp(26px, 4.5vw, 60px);
    min-width: 0;
}

/* --------------------------------------------------------------- prose */

.mlb-prose { max-width: 740px; margin: 0 auto; }

/* Word paste leaves fonts, sizes and colours on spans; take them back. */
.mlb-prose span,
.mlb-prose font {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.mlb-prose section {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
}
.mlb-prose section + section {
    margin-top: 36px !important;
    padding-top: 36px !important;
    border-top: 1px solid var(--b-line);
}

.mlb-prose p,
.mlb-prose li {
    font-size: 1.04rem !important;
    line-height: 1.85 !important;
    color: var(--b-body) !important;
}
.mlb-prose p { margin: 0 0 18px !important; }
.mlb-prose p:empty,
.mlb-prose p:has(> br:only-child) { display: none; }
.mlb-prose strong,
.mlb-prose b { color: var(--b-ink) !important; }

.mlb-prose h2 {
    position: relative;
    margin: 0 0 18px !important;
    padding-top: 20px !important;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -.02em !important;
    color: var(--b-ink) !important;
    border: 0 !important;
}
.mlb-prose h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--b-gold-2), var(--b-orange));
}
.mlb-prose h2::after { display: none !important; }

.mlb-prose h3,
.mlb-prose h4 {
    margin: 28px 0 10px !important;
    font-size: 1.18rem !important;
    line-height: 1.35 !important;
    color: var(--b-ink) !important;
}
.mlb-prose h4 { font-size: 1.05rem !important; }

/* Links: deep orange with an underline that draws in. */
.mlb-prose a {
    color: var(--b-orange-ink) !important;
    font-weight: 600;
    text-decoration: none !important;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color .2s, background-size .25s var(--b-ease);
}
.mlb-prose a:hover { color: var(--b-orange) !important; }

/* The gold inline "button" links some articles carry. */
.mlb-prose a[style*="display: inline-block"],
.mlb-prose a[style*="display:inline-block"] {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 13px 24px !important;
    margin: 6px 0;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #ff8a12 0%, var(--b-orange) 100%) !important;
    background-size: auto !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 24px -10px rgba(245, 124, 0, .75);
}
.mlb-prose a[style*="display: inline-block"]:hover,
.mlb-prose a[style*="display:inline-block"]:hover { color: #fff !important; transform: translateY(-1px); }

/* Lists: orange check circles; ordered lists get numbered badges. */
.mlb-prose ul,
.mlb-prose ol { margin: 0 0 20px !important; padding: 0 !important; list-style: none !important; }
.mlb-prose li {
    position: relative;
    padding-left: 34px !important;
    margin: 0 0 12px !important;
}
.mlb-prose ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--b-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f57c00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
    box-shadow: inset 0 0 0 1px rgba(245, 185, 76, .35);
}
.mlb-prose ol { counter-reset: mlb-ol; }
.mlb-prose ol > li { counter-increment: mlb-ol; }
.mlb-prose ol > li::before {
    content: counter(mlb-ol);
    position: absolute;
    left: 0;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #000;
    color: var(--b-gold);
    font: 700 .75rem/1 'Inter', sans-serif;
}

/* The article's own "Table of Contents" list reads as a card. */
.mlb-prose section:first-child:has(> h2 + p + ul, > h2 + ul) ul,
.mlb-prose .mlb-toc ul {
    background: var(--b-tint);
    border: 1px solid var(--b-line);
    border-radius: var(--b-r);
    padding: 18px 22px 8px !important;
}

/* Tables: rounded, light header, no fixed cell sizes from the editor. */
.mlb-prose .mlb-table-wrap {
    overflow-x: auto;
    margin: 6px 0 24px;
    border: 1px solid var(--b-line);
    border-radius: var(--b-r);
}
.mlb-prose table {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: #fff !important;
}
.mlb-prose col { width: auto !important; }
.mlb-prose tr,
.mlb-prose td,
.mlb-prose th { height: auto !important; }
.mlb-prose th,
.mlb-prose tbody tr:first-child td:has(> strong:only-child) {
    background: var(--b-cream) !important;
    color: var(--b-muted) !important;
    font-size: .76rem !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}
.mlb-prose th,
.mlb-prose td {
    padding: 14px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--b-line) !important;
    text-align: left !important;
    font-size: .95rem !important;
    line-height: 1.55 !important;
    color: var(--b-body) !important;
    vertical-align: top;
}
.mlb-prose td strong,
.mlb-prose th strong { color: inherit !important; }
.mlb-prose tr:last-child td { border-bottom: 0 !important; }
.mlb-prose tbody tr:nth-child(even) td { background: #fff !important; }
.mlb-prose tbody tr:hover td { background: #fffaf0 !important; }
.mlb-prose td:first-child { color: var(--b-ink) !important; font-weight: 600; }

.mlb-prose blockquote {
    margin: 24px 0 !important;
    padding: 6px 0 6px 20px !important;
    border-left: 3px solid var(--b-gold-2) !important;
    font-style: italic;
    color: var(--b-ink-2) !important;
}
.mlb-prose img,
.mlb-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--b-r) !important;
}
.mlb-prose iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.mlb-prose hr { border: 0; border-top: 1px solid var(--b-line); margin: 32px 0; }

/* ================================================================ SIDEBAR */

.mlb-side { position: sticky; top: 130px; display: grid; gap: 16px; }

.mlb-card {
    background: #fff;
    border: 1px solid var(--b-line);
    border-radius: var(--b-r-lg);
    box-shadow: var(--b-shadow-sm);
    padding: 24px;
}
.mlb-card h2 {
    margin: 0 0 8px !important;
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    color: var(--b-ink) !important;
    padding: 0 !important;
    border: 0 !important;
}
.mlb-card h2::before,
.mlb-card h2::after { display: none !important; }
.mlb-card p { font-size: .92rem !important; line-height: 1.65 !important; color: var(--b-body) !important; margin: 0 0 16px !important; }

.mlb-card--book {
    position: relative;
    overflow: hidden;
    background: #0c0b0a radial-gradient(circle at 100% 0%, rgba(255, 194, 25, .25), transparent 55%);
    border-color: rgba(255, 194, 25, .2);
}
.mlb-card--book h2 { color: #fff !important; }
.mlb-card--book p { color: rgba(255, 255, 255, .72) !important; }
.mlb-card--book ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mlb-card--book li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: .9rem !important;
    color: rgba(255, 255, 255, .85) !important;
}
.mlb-card--book li i { color: var(--b-gold); font-size: .8rem; }

.mlb-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px !important;
    border-radius: 12px !important;
    font-size: .95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform .2s var(--b-ease), background-color .2s, box-shadow .2s;
}
.mlb-btn + .mlb-btn { margin-top: 10px; }
.mlb-btn:hover { transform: translateY(-1px); }
.mlb-btn--accent {
    background: linear-gradient(180deg, #ff8a12 0%, var(--b-orange) 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px -10px rgba(245, 124, 0, .8);
}
.mlb-btn--glass {
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff !important;
}
.mlb-btn--glass:hover { background: rgba(255, 255, 255, .18) !important; }

.mlb-links { list-style: none; margin: 0; padding: 0; }
.mlb-links li { border-bottom: 1px solid var(--b-line); }
.mlb-links li:last-child { border-bottom: 0; }
.mlb-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 2px;
    font-size: .92rem !important;
    font-weight: 600;
    color: var(--b-ink-2) !important;
    text-decoration: none !important;
    transition: color .2s, padding-left .2s var(--b-ease);
}
.mlb-links a i { font-size: .7rem; color: var(--b-muted); transition: transform .2s var(--b-ease), color .2s; }
.mlb-links a:hover { color: var(--b-orange-ink) !important; padding-left: 6px; }
.mlb-links a:hover i { color: var(--b-orange); transform: translateX(2px); }

/* ================================================================ FOOTER */

.mlb-foot {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px clamp(56px, 7vw, 96px);
}

.mlb-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--b-r-lg);
    background: #0c0b0a;
    border: 1px solid rgba(255, 194, 25, .18);
    padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 64px);
    text-align: center;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}
.mlb-cta::before,
.mlb-cta::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    pointer-events: none;
}
.mlb-cta::before { right: -160px; top: -260px; background: radial-gradient(circle, rgba(255, 194, 25, .28), transparent 70%); }
.mlb-cta::after { left: -180px; bottom: -280px; background: radial-gradient(circle, rgba(113, 0, 24, .55), transparent 70%); }
.mlb-cta > * { position: relative; z-index: 1; }
.mlb .mlb-cta h2 {
    margin: 0 auto 14px !important;
    max-width: 640px;
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    line-height: 1.18 !important;
    color: #fff !important;
}
.mlb .mlb-cta p {
    max-width: 620px;
    margin: 0 auto 26px !important;
    font-size: 1.02rem !important;
    line-height: 1.75 !important;
    color: rgba(255, 255, 255, .74) !important;
}
.mlb-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mlb-cta__actions .mlb-btn { display: inline-flex !important; margin: 0 !important; }

.mlb-related { margin-top: clamp(48px, 6vw, 72px); }
.mlb-related__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.mlb .mlb-related__head h2 {
    position: relative;
    margin: 0 !important;
    padding-top: 20px !important;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important;
    color: var(--b-ink) !important;
    border: 0 !important;
}
.mlb .mlb-related__head h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--b-gold-2), var(--b-orange));
}
.mlb .mlb-related__head h2::after { display: none !important; }
.mlb-related__all {
    font-size: .92rem !important;
    font-weight: 600;
    color: var(--b-orange-ink) !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.mlb-related__all:hover { color: var(--b-orange) !important; }

.mlb-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mlb-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--b-line);
    border-radius: var(--b-r-lg);
    box-shadow: var(--b-shadow-sm);
    overflow: hidden;
    text-decoration: none !important;
    transition: transform .25s var(--b-ease), box-shadow .25s var(--b-ease), border-color .25s;
}
.mlb-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--b-shadow);
    border-color: rgba(245, 185, 76, .5);
}
.mlb-post__img { aspect-ratio: 16 / 9; background: #efe8dc; overflow: hidden; }
.mlb-post__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    transition: transform .6s var(--b-ease);
}
.mlb-post:hover .mlb-post__img img { transform: scale(1.04); }
.mlb-post__body { padding: 18px 20px 22px; }
.mlb-post__body strong {
    display: block;
    font-family: 'Manrope', 'Inter', sans-serif !important;
    font-size: 1.02rem !important;
    line-height: 1.4 !important;
    color: var(--b-ink) !important;
    margin-bottom: 8px;
}
.mlb-post__body span {
    display: block;
    font-size: .88rem !important;
    line-height: 1.6 !important;
    color: var(--b-muted) !important;
}

/* ============================================================== RESPONSIVE */

@media (max-width: 1024px) {
    .mlb-body { grid-template-columns: 1fr; }
    .mlb-side { position: static; grid-template-columns: 1fr 1fr; }
    .mlb-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mlb-hero__inner { padding: 140px 16px 44px; }
    .mlb .mlb-hero h1 { font-size: 1.95rem !important; }
    .mlb .mlb-hero__lede { font-size: 1rem !important; }
    .mlb-body { padding: 20px 12px 44px; gap: 16px; }
    .mlb-article { padding: 24px 18px; border-radius: 16px; }
    .mlb-prose p, .mlb-prose li { font-size: 1rem !important; line-height: 1.8 !important; }
    .mlb-side { grid-template-columns: 1fr; }
    .mlb-foot { padding: 0 12px 56px; }
    .mlb-posts { grid-template-columns: 1fr; }
    .mlb-related__head { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    .mlb *, .mlb *::before, .mlb *::after { transition: none !important; }
}
