/* ==========================================================================
   Homelli v2.0 - Blog & Architectural Guides Stylesheet
   High-performance modular stylesheet for Blog Archive & Single Post
   ========================================================================== */

/* ==========================================================================
   BLOG ARCHIVE (Archive List & Category Cards)
   ========================================================================== */
.hml-blog-archive-wrapper {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    color: #111111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hml-blog-breadcrumb {
    font-size: 13px;
    color: #777777;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hml-blog-breadcrumb a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hml-blog-breadcrumb a:hover {
    color: #111111;
}
.hml-blog-breadcrumb span.sep {
    color: #cccccc;
}

.hml-blog-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
}
.hml-blog-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111111;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.hml-blog-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #111111;
    margin: 0 0 16px;
}
.hml-blog-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

/* Blog Grid */
.hml-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 70px;
}
@media (max-width: 991px) {
    .hml-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}
@media (max-width: 640px) {
    .hml-blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hml-blog-title {
        font-size: 28px;
    }
}

/* Blog Card */
.hml-blog-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hml-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    border-color: #111111;
}

.hml-blog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f4f4;
}
.hml-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hml-blog-card:hover .hml-blog-card-media img {
    transform: scale(1.03);
}

.hml-blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.hml-blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #777777;
}
.hml-blog-card-tag {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    color: #111111;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
}
.hml-blog-card-time {
    font-weight: 500;
}

.hml-blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111111;
    margin: 0 0 12px;
}
.hml-blog-card-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hml-blog-card-title a:hover {
    color: #444444;
}

.hml-blog-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hml-blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    text-decoration: none;
    border-bottom: 1px solid #111111;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: gap 0.2s ease, opacity 0.2s ease;
}
.hml-blog-card-link:hover {
    gap: 10px;
    opacity: 0.8;
}

/* Bottom Consultation Section */
.hml-blog-consult-box {
    background: #111111;
    color: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.hml-blog-consult-info {
    max-width: 650px;
}
.hml-blog-consult-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #cccccc;
    margin-bottom: 12px;
    display: block;
}
.hml-blog-consult-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #ffffff;
}
.hml-blog-consult-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #bbbbbb;
    margin: 0;
}
.hml-blog-consult-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hml-blog-btn-white {
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hml-blog-btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}
.hml-blog-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hml-blog-btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
    .hml-blog-consult-box {
        padding: 36px 24px;
    }
    .hml-blog-consult-title {
        font-size: 22px;
    }
    .hml-blog-consult-actions {
        width: 100%;
        flex-direction: column;
    }
    .hml-blog-btn-white,
    .hml-blog-btn-outline {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   BLOG SINGLE POST / EDITORIAL ARTICLE
   ========================================================================== */
.hml-editorial-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    color: #111111;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Breadcrumb */
.hml-editorial-breadcrumb {
    font-size: 13px;
    color: #777777;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hml-editorial-breadcrumb a {
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hml-editorial-breadcrumb a:hover {
    color: #111111;
}
.hml-editorial-breadcrumb span.sep {
    color: #cccccc;
}
.hml-editorial-breadcrumb span.current {
    color: #111111;
    font-weight: 500;
}

/* Header */
.hml-editorial-header {
    text-align: left;
    max-width: 820px;
    margin: 0 auto 36px;
}
.hml-editorial-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111111;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.hml-editorial-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #111111;
    margin: 0 0 16px;
}
.hml-editorial-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #666666;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 12px 0;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hml-editorial-meta-author {
    font-weight: 600;
    color: #111111;
}
.hml-editorial-meta-dot {
    color: #cccccc;
}

/* Hero Cover Image */
.hml-editorial-hero {
    width: 100%;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f4;
    border: 1px solid #eeeeee;
}
.hml-editorial-hero img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Article Body */
.hml-editorial-body {
    max-width: 780px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #222222;
}
.hml-editorial-body p {
    margin: 0 0 24px;
}
.hml-editorial-body h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    color: #111111;
    margin: 44px 0 18px;
    letter-spacing: -0.3px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;
}
.hml-editorial-body h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #111111;
    margin: 32px 0 14px;
}
.hml-editorial-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin: 24px 0 10px;
}
.hml-editorial-body ul, 
.hml-editorial-body ol {
    margin: 0 0 24px;
    padding-left: 28px;
}
.hml-editorial-body li {
    margin-bottom: 10px;
}
.hml-editorial-body strong {
    color: #111111;
    font-weight: 600;
}
.hml-editorial-body a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}
.hml-editorial-body a:hover {
    opacity: 0.7;
}
.hml-editorial-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 28px 0;
    display: block;
    background: #f8f8f8;
    border: 1px solid #eeeeee;
}
.hml-editorial-body figure {
    margin: 28px 0;
}
.hml-editorial-body figcaption {
    font-size: 13px;
    color: #777777;
    text-align: center;
    margin-top: 8px;
}
.hml-editorial-body blockquote {
    border-left: 3px solid #111111;
    margin: 28px 0;
    padding: 16px 24px;
    background: #f9f9f9;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #333333;
}
.hml-editorial-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    overflow: hidden;
}
.hml-editorial-body th, 
.hml-editorial-body td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}
.hml-editorial-body th {
    background: #f8f8f8;
    font-weight: 700;
    color: #111111;
}

/* Callout Box inside content */
.hml-editorial-callout {
    background: #f8f8f8;
    border-left: 4px solid #111111;
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin: 32px 0;
}
.hml-editorial-callout h4 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #111111;
}
.hml-editorial-callout p:last-child {
    margin-bottom: 0;
}

/* Bottom Direct Consultation Card */
.hml-editorial-cta-box {
    max-width: 780px;
    margin: 60px auto 70px;
    background: #111111;
    color: #ffffff;
    border-radius: 14px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.hml-editorial-cta-box h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #ffffff;
}
.hml-editorial-cta-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}
.hml-editorial-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.hml-cta-btn-white {
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hml-cta-btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}
.hml-cta-btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hml-cta-btn-ghost:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Related Guides */
.hml-editorial-related {
    max-width: 1000px;
    margin: 60px auto 0;
    border-top: 1px solid #eeeeee;
    padding-top: 50px;
}
.hml-editorial-related-title {
    font-size: 22px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 28px;
    text-align: center;
}
.hml-editorial-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.hml-related-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #111111;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hml-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #111111;
}
.hml-related-card-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f4f4;
}
.hml-related-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hml-related-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.hml-related-card-meta {
    font-size: 11px;
    color: #777777;
    margin-bottom: 8px;
    font-weight: 500;
}
.hml-related-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #111111;
    margin: 0 0 10px;
}
.hml-related-card-link {
    font-size: 12px;
    font-weight: 600;
    color: #111111;
    margin-top: auto;
}

@media (max-width: 768px) {
    .hml-editorial-title {
        font-size: 26px;
    }
    .hml-editorial-body {
        font-size: 16px;
        line-height: 1.7;
    }
    .hml-editorial-cta-box {
        padding: 28px 20px;
    }
    .hml-editorial-cta-actions {
        flex-direction: column;
    }
    .hml-cta-btn-white,
    .hml-cta-btn-ghost {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    .hml-editorial-related-grid {
        grid-template-columns: 1fr;
    }
}
