.blog-hero-banner {
    position: relative;
    width: 100%;
    min-height: clamp(240px, 42vw, 420px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #111;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.blog-hero-banner__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 5vw, 56px);
}

.blog-hero-banner__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-hero-banner__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.blog-hero-banner__breadcrumb span:last-child {
    color: #fff;
}

.blog-hero-banner__title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    text-wrap: balance;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.blog-article-layout {
    margin-top: clamp(28px, 4vw, 48px);
}

.article-section.wrapper {
    padding-left: 0;
    padding-right: 0;
}

.article-content-box {
    position: relative;
    padding: clamp(24px, 3.2vw, 42px);
    border-radius: 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 249, 246, 0.99) 100%);
    border: 1px solid rgba(19, 32, 54, 0.08);
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.08), 0 4px 16px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.article-content-box::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #f26522 0%, #ff9b62 100%);
}

.richtext {
    color: #223047;
    font-size: 1.04rem;
    line-height: 1.9;
    word-break: break-word;
}

.richtext > *:first-child {
    margin-top: 0 !important;
}

.richtext > *:last-child {
    margin-bottom: 0 !important;
}

.richtext h1,
.richtext h2,
.richtext h3,
.richtext h4,
.richtext h5,
.richtext h6 {
    color: #0f1f38;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1.9em;
    margin-bottom: 0.7em;
}

.richtext h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
}

.richtext h2 {
    font-size: clamp(1.65rem, 2.5vw, 2.3rem);
}

.richtext h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.richtext h4,
.richtext h5,
.richtext h6 {
    font-size: 1.15rem;
}

.richtext p,
.richtext ul,
.richtext ol,
.richtext blockquote,
.richtext table,
.richtext .table-responsive,
.richtext figure {
    margin-top: 0;
    margin-bottom: 1.35em;
}

.richtext p {
    color: #324055;
}

.richtext a {
    display: inline;
    color: #cf5a24;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.16em;
}

.richtext strong,
.richtext b {
    color: #111f35;
    font-weight: 800;
}

.richtext em,
.richtext i {
    color: #425066;
}

.richtext ul,
.richtext ol {
    padding-left: 1.25rem;
}

.richtext li {
    margin-bottom: 0.55em;
    padding-left: 0.2rem;
}

.richtext li::marker {
    color: #f26522;
}

.richtext blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 1.1rem 1.25rem 1.1rem 1.35rem;
    border-left: 4px solid #f26522;
    border-radius: 0 18px 18px 0;
    background: linear-gradient(180deg, rgba(242, 101, 34, 0.08) 0%, rgba(242, 101, 34, 0.03) 100%);
    color: #1c2940;
    font-size: 1.02rem;
}

.richtext img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 31, 56, 0.14);
}

.richtext figure {
    margin-left: 0;
    margin-right: 0;
}

.richtext figcaption {
    margin-top: 0.8rem;
    color: #718096;
    font-size: 0.92rem;
    text-align: center;
}

.richtext hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid rgba(15, 31, 56, 0.12);
}

.richtext table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 31, 56, 0.06);
}

.richtext th,
.richtext td {
    padding: 0.95rem 1rem;
    border: 1px solid rgba(15, 31, 56, 0.08);
    text-align: left;
    vertical-align: top;
}

.richtext th {
    background: #f7f4ef;
    color: #132036;
    font-weight: 800;
}

.richtext code {
    padding: 0.14rem 0.4rem;
    border-radius: 8px;
    background: #f3f5f8;
    color: #9a3412;
    font-size: 0.92em;
}

.richtext pre {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border-radius: 18px;
    background: #101820;
    color: #f8fafc;
}

.richtext pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.article-section h2.mt-5.mb-4,
.article-section h3.mt-5.mb-4 {
    color: #132036;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

#add-comment-form,
#add-comment-form-desktop {
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid rgba(19, 32, 54, 0.09);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f7f4 100%);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
}

#add-comment-form .row,
#add-comment-form-desktop .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.25rem;
}

#add-comment-form .form-label,
#add-comment-form-desktop .form-label {
    margin-bottom: 0.45rem;
    color: #24344d;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

#add-comment-form input,
#add-comment-form textarea,
#add-comment-form-desktop input,
#add-comment-form-desktop textarea {
    font-size: 0.98rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(27, 73, 98, 0.18) !important;
    background: #fff !important;
    color: #1e293b;
    font-weight: 500;
    box-shadow: none !important;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

#add-comment-form input,
#add-comment-form-desktop input {
    height: 52px;
    margin-bottom: 0;
    padding: 0 16px;
}

#add-comment-form textarea,
#add-comment-form-desktop textarea {
    min-height: 148px;
    height: 148px;
    margin-bottom: 0;
    padding: 14px 16px;
    resize: vertical;
}

#add-comment-form input:focus,
#add-comment-form textarea:focus,
#add-comment-form-desktop input:focus,
#add-comment-form-desktop textarea:focus {
    border-color: rgba(242, 101, 34, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.12) !important;
}

#add-comment-form .invalid-feedback,
#add-comment-form-desktop .invalid-feedback {
    margin-top: 0.35rem;
    font-size: 0.82rem;
}

#add-comment-form-btn,
#add-comment-form-btn-desktop {
    min-width: 170px;
    width: auto;
    height: 52px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f26522 0%, #ff8248 100%);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(242, 101, 34, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

#add-comment-form-btn:hover,
#add-comment-form-btn-desktop:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 18px 32px rgba(242, 101, 34, 0.28);
}

#add-comment-form-btn:active,
#add-comment-form-btn-desktop:active {
    transform: translateY(0);
}

.reel-thumb {
    width: 100px;
    cursor: pointer;
}

.reel-thumb__image {
    height: 177px;
    width: 100%;
    object-fit: cover;
}

.reel-thumb__icon {
    font-size: 2rem;
    opacity: 0.8;
}

.reel-modal-dialog {
    width: min(96vw, 980px);
    max-width: 980px;
    margin: 1rem auto;
}

.reel-modal-content {
    background: #101214 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.reel-modal-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    border: 0;
    padding: 0;
}

.reel-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.reel-modal-body {
    padding: 0;
}

.reel-modal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    height: min(90dvh, 820px);
    min-height: min(90dvh, 820px);
}

.reel-modal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 42%),
        linear-gradient(180deg, #181b1f 0%, #090a0c 100%);
    padding: 24px;
}

.reel-frame,
.reel-video {
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    background: #000;
}

.reel-frame {
    border: 0;
}

.reel-video {
    object-fit: contain;
}

.reel-modal-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: linear-gradient(180deg, #14171b 0%, #101214 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.reel-caption-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.reel-caption-card__header {
    flex: 0 0 auto;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reel-caption-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reel-caption-card__title {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.reel-caption-card__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 20px 24px 24px;
}

.reel-caption {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: left;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    white-space: pre-wrap;
    padding-right: 6px;
}

.reel-caption--empty {
    color: rgba(255, 255, 255, 0.52);
    font-style: italic;
}

.reel-caption::-webkit-scrollbar {
    width: 4px;
}

.reel-caption::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.reel-caption::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

@media (max-width: 575.98px) {
    .article-section.wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .blog-hero-banner {
        min-height: 220px;
        background-position: center;
    }

    .blog-hero-banner__inner {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .blog-hero-banner__breadcrumb {
        margin-bottom: 10px;
        font-size: 0.75rem;
    }

    .reel-modal-dialog {
        width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .reel-modal-content {
        border-radius: 20px;
    }

    .reel-modal-shell {
        grid-template-columns: 1fr;
        height: calc(100dvh - 1rem);
        min-height: calc(100dvh - 1rem);
    }

    .reel-modal-media {
        flex: 0 0 auto;
        padding: 16px 16px 10px;
    }

    .reel-modal-side {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .reel-caption-card__header {
        padding: 16px 18px 14px;
    }

    .reel-caption-card__body {
        padding: 16px 18px 18px;
    }

    .reel-frame,
    .reel-video {
        max-width: 100%;
        max-height: min(56dvh, 520px);
    }

    .article-content-box {
        padding: 20px 18px 22px;
        border-radius: 22px;
    }

    .richtext {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .richtext h1 {
        font-size: 1.8rem;
    }

    .richtext h2 {
        font-size: 1.5rem;
    }

    .richtext h3 {
        font-size: 1.25rem;
    }

    .richtext blockquote {
        padding: 1rem 1rem 1rem 1.1rem;
    }

    #add-comment-form,
    #add-comment-form-desktop {
        padding: 18px 16px 20px;
        border-radius: 20px;
    }

    #add-comment-form input,
    #add-comment-form-desktop input {
        height: 48px;
    }

    #add-comment-form textarea,
    #add-comment-form-desktop textarea {
        min-height: 132px;
        height: 132px;
    }

    #add-comment-form-btn,
    #add-comment-form-btn-desktop {
        width: 100%;
        min-width: 0;
    }
}
