/* =========================================================
   LUCKY STORAGE — BLOG (迷你倉資訊)
   Loaded only on blog pages. Colours, radius and type follow
   the homepage sections (branches, contact panel).
========================================================= */

.ls-blog,
.ls-blog * {
    box-sizing: border-box;
}

.ls-blog {
    background: #FFFFFF;
    color: #20232A;
}

.ls-blog-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.ls-article-narrow {
    width: min(780px, calc(100% - 40px));
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Header: highlight the Blog link while on blog pages */
.ls-desktop-nav > a[aria-current="page"],
.ls-mobile-menu > nav > a[aria-current="page"] {
    color: #F22E78;
}


/* =========================================================
   SHARED TYPE
========================================================= */

.ls-blog-eyebrow {
    margin: 0;
    color: #F22E78;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}

.ls-blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    color: #9BA0A8;
    font-size: 12px;
    font-weight: 700;
}

.ls-blog-breadcrumb a {
    color: #6D727A;
    text-decoration: none;
}

.ls-blog-breadcrumb a:hover {
    color: #F22E78;
}

.ls-blog-breadcrumb [aria-current="page"] {
    color: #20232A;
}

.ls-blog-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #FFF0F5;
    color: #F22E78;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
}

a.ls-blog-chip:hover {
    background: #F22E78;
    color: #FFFFFF;
}

.ls-blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #F22E78;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.ls-blog-read-more span[aria-hidden="true"] {
    transition: transform 0.2s ease;
}

.ls-blog-read-more:hover span[aria-hidden="true"] {
    transform: translateX(3px);
}

.ls-blog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: #F22E78;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ls-blog-button:hover {
    background: #C91D5A;
    transform: translateY(-2px);
}


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

.ls-blog-hero {
    padding: 56px 0 34px;
    background: #FFF9F7;
    border-bottom: 1px solid #F3E4E8;
}

.ls-blog-title {
    margin: 9px 0 0;
    color: #20232A;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.ls-blog-intro {
    max-width: 640px;
    margin: 15px 0 0;
    color: #6D727A;
    font-size: 15px;
    line-height: 1.8;
}

.ls-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.ls-blog-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #EEDCE1;
    border-radius: 999px;
    background: #FFFFFF;
    color: #20232A;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ls-blog-filters a:hover {
    border-color: #F22E78;
    color: #F22E78;
}

.ls-blog-filters a[aria-current="page"] {
    border-color: #20232A;
    background: #20232A;
    color: #FFFFFF;
}


/* =========================================================
   CARD GRID
========================================================= */

.ls-blog-list-section {
    padding: 44px 0 70px;
}

.ls-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ls-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #EEDCE1;
    border-radius: 18px;
    background: #FFFFFF;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ls-blog-card:hover {
    transform: translateY(-3px);
    border-color: #F22E78;
    box-shadow: 0 14px 30px rgba(242, 46, 120, 0.08);
}

.ls-blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #FFF0F5;
}

.ls-blog-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ls-blog-card:hover .ls-blog-card-image {
    transform: scale(1.03);
}

.ls-blog-card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFF9F7 100%);
}

.ls-blog-card-placeholder img {
    width: 46%;
    max-width: 180px;
    height: auto;
    opacity: 0.85;
}

.ls-blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.ls-blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #9BA0A8;
    font-size: 12px;
    font-weight: 700;
}

.ls-blog-card-title {
    margin: 12px 0 0;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.38;
    letter-spacing: -0.01em;
}

.ls-blog-card-title a {
    color: #20232A;
    text-decoration: none;
}

.ls-blog-card-title a:hover {
    color: #F22E78;
}

.ls-blog-card-excerpt {
    flex: 1;
    margin: 10px 0 0;
    color: #6D727A;
    font-size: 14px;
    line-height: 1.75;
}

.ls-blog-card .ls-blog-read-more {
    margin-top: 16px;
}


/* =========================================================
   PAGINATION
========================================================= */

.ls-blog-pagination {
    margin-top: 42px;
}

.ls-blog-pagination ul,
.ls-blog-pagination .page-numbers:not(a):not(span) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ls-blog-pagination a.page-numbers,
.ls-blog-pagination span.page-numbers {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #EEDCE1;
    border-radius: 999px;
    background: #FFFFFF;
    color: #20232A;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.ls-blog-pagination a.page-numbers:hover {
    border-color: #F22E78;
    color: #F22E78;
}

.ls-blog-pagination span.current {
    border-color: #F22E78;
    background: #F22E78;
    color: #FFFFFF;
}

.ls-blog-pagination span.dots {
    border: 0;
    background: transparent;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.ls-blog-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 46px 30px;
    border: 1px dashed #EEDCE1;
    border-radius: 22px;
    background: #FFF9F7;
    text-align: center;
}

.ls-blog-empty h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.ls-blog-empty p {
    margin: 10px 0 22px;
    color: #6D727A;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   SINGLE ARTICLE
========================================================= */

.ls-article-header {
    padding: 52px 0 28px;
    background: #FFF9F7;
}

.ls-article-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.ls-article-title {
    margin: 14px 0 0;
    color: #20232A;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.ls-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    color: #6D727A;
    font-size: 13px;
    font-weight: 700;
}

.ls-article-figure {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 0;
    position: relative;
}

.ls-article-header + .ls-article-figure {
    margin-top: 0;
}

.ls-article-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 14px 38px rgba(40, 25, 35, 0.08);
}

.ls-article-header:has(+ .ls-article-figure) {
    padding-bottom: 36px;
}

/* ---------- Article body ---------- */

.ls-article-content {
    padding: 38px 0 10px;
    color: #33363D;
    font-size: 17px;
    line-height: 1.95;
    overflow-wrap: break-word;
}

.ls-article-content > * {
    margin-top: 0;
    margin-bottom: 1.15em;
}

.ls-article-content h2 {
    margin: 2.1em 0 0.7em;
    padding-top: 0.2em;
    color: #20232A;
    font-size: clamp(23px, 2.6vw, 28px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.02em;
    scroll-margin-top: 110px;
}

.ls-article-content h2::before {
    content: "";
    display: block;
    width: 34px;
    height: 4px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #F22E78;
}

.ls-article-content h3 {
    margin: 1.8em 0 0.6em;
    color: #20232A;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
    scroll-margin-top: 110px;
}

.ls-article-content h4 {
    margin: 1.6em 0 0.5em;
    font-size: 17px;
    font-weight: 900;
    scroll-margin-top: 110px;
}

.ls-article-content a {
    color: #F22E78;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ls-article-content a:hover {
    color: #C91D5A;
}

.ls-article-content strong {
    color: #20232A;
    font-weight: 900;
}

.ls-article-content ul,
.ls-article-content ol {
    padding-left: 1.4em;
}

.ls-article-content li {
    margin-bottom: 0.45em;
    padding-left: 0.2em;
}

.ls-article-content ul li::marker {
    color: #F22E78;
}

.ls-article-content ol li::marker {
    color: #F22E78;
    font-weight: 900;
}

.ls-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.ls-article-content figure {
    margin-left: 0;
    margin-right: 0;
}

.ls-article-content figcaption {
    margin-top: 8px;
    color: #9BA0A8;
    font-size: 13px;
    text-align: center;
}

.ls-article-content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 18px 22px;
    border-left: 4px solid #F22E78;
    border-radius: 0 16px 16px 0;
    background: #FFF9F7;
    color: #20232A;
    font-weight: 700;
}

.ls-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.ls-article-content hr {
    margin: 2.4em 0;
    border: 0;
    border-top: 1px solid #F0DEDF;
}

/* Tables scroll sideways on small screens instead of breaking the page */
.ls-article-content .wp-block-table,
.ls-article-content figure.wp-block-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ls-article-content table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #EEDCE1;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.ls-article-content th,
.ls-article-content td {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #F3E4E8;
    text-align: left;
    vertical-align: top;
}

.ls-article-content thead th,
.ls-article-content tr:first-child th {
    background: #FFF0F5;
    color: #20232A;
    font-weight: 900;
}

.ls-article-content tbody tr:last-child td {
    border-bottom: 0;
}

.ls-article-content tbody tr:nth-child(even) td {
    background: #FFFCFB;
}

.ls-article {
    padding-bottom: 64px;
}

.ls-article-back {
    margin: 28px 0 0;
    padding: 22px 0 6px;
    border-top: 1px solid #F0DEDF;
}

.ls-article-back a {
    color: #20232A;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.ls-article-back a:hover {
    color: #F22E78;
}


/* =========================================================
   MORE ARTICLES
========================================================= */

.ls-blog-more {
    padding: 58px 0 76px;
    background: #FFF9F7;
}

.ls-blog-more-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.ls-blog-more-head h2 {
    margin: 9px 0 0;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}


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

@media (max-width: 1020px) {
    .ls-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ls-blog-container,
    .ls-article-narrow,
    .ls-article-figure {
        width: calc(100% - 32px);
    }

    .ls-blog-hero {
        padding: 34px 0 26px;
    }

    .ls-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ls-blog-list-section {
        padding: 28px 0 50px;
    }

    .ls-blog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding-right: 16px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .ls-blog-filters::-webkit-scrollbar {
        display: none;
    }

    .ls-blog-filters a {
        white-space: nowrap;
    }

    .ls-article-header {
        padding: 30px 0 22px;
    }

    .ls-article-image {
        border-radius: 18px;
    }

    .ls-article-content {
        padding-top: 28px;
        font-size: 16px;
        line-height: 1.9;
    }

    .ls-blog-more {
        padding: 42px 0 56px;
    }

    .ls-article {
        padding-bottom: 44px;
    }

    .ls-blog-more-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
