/* ==========================================================
   HORIZON PUBLISHER — BLOG STYLES
   blog index · blog cards · article page · category page ·
   newsletter · floating WhatsApp

   Each rule is defined once. Responsive overrides live in
   the breakpoint sections at the end (1024 / 992 / 768 /
   600 / 480), in that order.
   ========================================================== */


/* ==========================================================
   1. TOKENS
   ========================================================== */

:root {
    --shop-header-height: 110px;

    --blog-bg: #fafafa;
    --blog-card-bg: #ffffff;
    --blog-border: #ececec;

    --blog-text: #222222;
    --blog-text-body: #333333;
    --blog-text-soft: #666666;
    --blog-text-muted: #888888;

    --blog-brown: #412e03;
    --blog-gold: #d89b00;
    --blog-gold-dark: #b98200;
    --blog-gold-soft: rgba(216, 155, 0, 0.10);

    /* Article page column system */
    --article-width: 1200px;
    --article-column: 760px;
    --article-sidebar: 300px;
    --article-gap: 48px;
}


/* ==========================================================
   2. SHARED — TOP BAR, BREADCRUMB, SECTION TAG
   ========================================================== */

.blog-topbar-top {
    position: relative;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    margin: 0;
    padding: 12px 0;

    background: var(--blog-bg);

    border-bottom: 1px solid var(--blog-border);
}


.blog-topbar-top .breadcrumb {
    justify-self: start;

    margin: 0;
}


.blog-topbar-top .section-tag {
    justify-self: center;

    margin: 0;
}


.breadcrumb {
    position: relative;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0;
    padding: 0;

    font-size: 0.9rem;
}


.breadcrumb a {
    color: #000000;

    text-decoration: none;

    font-weight: 500;

    transition: color 0.2s ease;
}


.breadcrumb a:hover {
    color: var(--blog-gold-dark);
}


.breadcrumb span {
    color: var(--blog-text-soft);
}


/* Long article titles in the breadcrumb don't wrap */
.breadcrumb span:last-child {
    max-width: 48ch;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.section-tag {
    display: inline-block;

    margin-bottom: 25px;
    padding: 12px 28px;

    border-radius: 40px;

    color: #111111;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ==========================================================
   3. BLOG INDEX
   ========================================================== */

.blog-page {
    padding: 0 0 36px;

    background: var(--blog-bg);
}


.blog-page .container {
    width: 92%;
    max-width: 1320px;

    margin: 0 auto;
}


/* The index has no breadcrumb bar */
.blog-page .blog-topbar-top {
    display: none;
}


.blog-layout {
    width: 94%;
    max-width: 1400px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}


.blog-header {
    max-width: 760px;

    margin: 0 auto 45px;
    padding-top: 35px;

    text-align: center;
}


.blog-header h1 {
    margin: 0 0 12px;

    color: var(--blog-text);

    font-size: 2.4rem;
    font-weight: 700;
}


.blog-header p {
    color: var(--blog-text-soft);

    font-size: 0.98rem;
    line-height: 1.7;
}


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


/* ----------------------------------------------------------
   BLOG FILTER SIDEBAR
   ---------------------------------------------------------- */

.blog-sidebar {
    position: sticky;
    top: 95px;

    align-self: start;
}


.browse-card {
    padding: 20px;

    background: var(--blog-card-bg);

    border-radius: 18px;
}


.browse-card h3 {
    margin: 0 0 12px;
    padding-left: 14px;

    border-left: 3px solid var(--blog-brown);

    color: var(--blog-text);

    font-size: 1.3rem;
}


.browse-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.browse-links a {
    display: block;

    padding: 9px 14px;

    border-radius: 12px;

    color: var(--blog-text);

    text-decoration: none;

    font-weight: 600;
    line-height: 1.3;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.browse-links a:hover {
    background: #fff8dc;

    color: var(--blog-brown);
}


.browse-links a.active {
    background: var(--blog-brown);

    color: #ffffff;
}


/* ==========================================================
   4. BLOG CARDS
   ========================================================== */

.blog-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: var(--blog-card-bg);

    border-radius: 0;

    transition: 0.15s;
}


.blog-image {
    display: block;

    overflow: hidden;
}


.blog-image img {
    width: 100%;
    height: 260px;

    object-fit: cover;

    transition: 0.25s;
}


.blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 14px;
}


.blog-card h2 {
    margin: 0 0 10px;
}


.blog-card h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    min-height: 2.05em;

    overflow: hidden;
    text-overflow: ellipsis;

    color: var(--blog-text);

    text-decoration: none;

    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
}


.blog-card:hover h2 a {
    color: #302a18;
}


.blog-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    margin: 0 0 12px;

    overflow: hidden;
    text-overflow: ellipsis;

    color: var(--blog-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
}


.blog-card-footer {
    margin-top: auto;
}


.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #eeeeee;
}


.blog-meta {
    display: flex;
    align-items: center;

    color: #777777;

    font-size: 0.78rem;
}


/* ----------------------------------------------------------
   CARD ACTIONS — LIKE / COMMENT / SAVE / SHARE
   ---------------------------------------------------------- */

.blog-card-actions {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    width: 100%;

    margin-top: 12px;
    padding-top: 10px;

    border-top: 1px solid #eeeeee;
}


.blog-card-actions-left,
.blog-card-actions-right {
    display: flex;
    align-items: center;
    gap: 14px;
}


.article-action,
.save-article-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #777777;

    font-size: 14px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.article-action i,
.save-article-button i {
    font-size: 16px;
}


.article-action:hover,
.save-article-button:hover {
    color: var(--blog-brown);

    transform: translateY(-1px);
}


/* "Save" label slides out on hover */
.save-article-button .save-article-label {
    max-width: 0;

    overflow: hidden;

    opacity: 0;

    white-space: nowrap;

    transition:
        max-width 0.25s ease,
        opacity 0.2s ease;
}


.save-article-button:hover .save-article-label {
    max-width: 80px;

    opacity: 1;
}


.save-article-button.saved,
.save-article-button.saved i {
    color: var(--blog-brown);
}


.share-article-button {
    color: #777777;
}


/* Like count */
.card-like-action {
    gap: 6px;
}


.like-count {
    color: #777777;

    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}


.card-like-action.is-active,
.card-like-action.is-active i,
.card-like-action.is-active .like-count {
    color: var(--blog-gold);
}


/* Share options (revealed by JS) */
.blog-share-options {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    max-height: 0;

    margin-top: 10px;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        max-height 0.25s ease,
        visibility 0.25s ease;
}


.blog-share-options.show {
    max-height: 50px;

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


.blog-share-options a,
.blog-share-options button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    color: #777777;

    font-size: 15px;

    text-decoration: none;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.blog-share-options a:hover,
.blog-share-options button:hover {
    color: var(--blog-brown);

    transform: translateY(-2px);
}


/* ==========================================================
   5. ARTICLE PAGE — FRAME
   Title, hero, author box and article body all start on
   the same left edge. The body and sidebar share one grid.
   ========================================================== */

.article-page {
    padding: 20px 0 64px;

    background: var(--blog-bg);
}


.article-page .container {
    width: 92%;
    max-width: var(--article-width);

    margin: 0 auto;
}


.article-page .blog-topbar-top {
    margin: 0 0 20px;
    padding: 0 0 12px;

    background: transparent;
}


/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */

.article-header {
    max-width: var(--article-column);

    margin: 0 0 18px;

    text-align: left;
}


.article-header .category {
    display: inline-block;

    margin-bottom: 14px;
    padding: 6px 16px;

    background: #ffffff;

    border-radius: 50px;

    color: #111111;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.article-header h1,
.article-title {
    margin: 0;

    color: #1f1f1f;

    font-size: clamp(2rem, 3.2vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: -0.02em;
}


.article-excerpt {
    margin: 12px 0 0;

    color: var(--blog-text-soft);

    font-size: 1.1rem;
    line-height: 1.7;
}


/* ----------------------------------------------------------
   HERO IMAGE
   ---------------------------------------------------------- */

.article-hero {
    width: 100%;

    margin: 0 0 24px;

    overflow: hidden;

    border-radius: 12px;
}


.article-hero img {
    display: block;

    width: 100%;
    max-height: 560px;

    object-fit: cover;
}


/* ----------------------------------------------------------
   AUTHOR
   ---------------------------------------------------------- */

.article-meta {
    width: 100%;
    max-width: var(--article-column);

    margin: 0 0 28px;
}


.author-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    width: 100%;

    padding: 16px 20px;

    background: #ffffff;

    border: 1px solid var(--blog-border);
    border-radius: 14px;
}


.author-avatar {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    object-fit: cover;

    border: 2px solid #2e2404;
    border-radius: 50%;
}


.author-info {
    flex: 1;

    min-width: 0;
}


.author-info strong {
    display: block;

    margin-bottom: 4px;

    color: var(--blog-text);

    font-size: 1.05rem;
}


.author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;

    margin-bottom: 8px;
}


.author-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #444444;

    font-size: 0.85rem;
}


.author-meta .meta-item i {
    color: #000000;
}


.author-bio {
    margin: 0;

    color: var(--blog-text-soft);

    font-size: 0.92rem;
    line-height: 1.6;
}


/* ----------------------------------------------------------
   BODY + SIDEBAR GRID
   ---------------------------------------------------------- */

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--article-sidebar);
    gap: var(--article-gap);
    align-items: start;
}


.article-main {
    position: relative;

    min-width: 0;
    max-width: var(--article-column);
}


/* ==========================================================
   6. ARTICLE CONTENT — TYPOGRAPHY
   Styles everything the article editor can produce.
   ========================================================== */

.article-content {
    color: #2f2f2f;

    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.8;

    overflow-wrap: break-word;
}


.article-content > :first-child {
    margin-top: 0;
}


/* Contain floated (left/right aligned) images */
.article-content::after {
    content: "";

    display: block;

    clear: both;
}


.article-content ::selection {
    background: rgba(216, 155, 0, 0.25);

    color: #111111;
}


.article-content p {
    margin: 0 0 1.25rem;

    color: #3c3c3c;
}


/* ----------------------------------------------------------
   HEADINGS
   ---------------------------------------------------------- */

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    clear: both;

    color: var(--blog-text);
}


.article-content h1 {
    margin: 2.4rem 0 0.8rem;

    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: -0.03em;
}


.article-content h2 {
    margin: 2.2rem 0 0.75rem;

    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;

    letter-spacing: -0.02em;
}


.article-content h3 {
    margin: 1.8rem 0 0.6rem;

    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: -0.01em;
}


.article-content h4 {
    margin: 1.5rem 0 0.5rem;

    color: #333333;

    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   INLINE
   ---------------------------------------------------------- */

.article-content strong {
    color: #1d1d1d;

    font-weight: 700;
}


.article-content em {
    color: #555555;

    font-style: italic;
}


.article-content a {
    color: #000000;

    text-decoration: none;

    font-weight: 600;

    border-bottom: 1px solid rgba(201, 151, 0, 0.35);

    transition: border-color 0.2s ease;
}


.article-content a:hover {
    border-bottom-color: #c99700;
}


.article-content mark {
    padding: 0.05em 0.2em;

    border-radius: 3px;
}


/* ----------------------------------------------------------
   LISTS (incl. checklists)
   ---------------------------------------------------------- */

.article-content ul,
.article-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}


.article-content li {
    margin-bottom: 0.5rem;

    color: #444444;

    line-height: 1.7;
}


.article-content li > p {
    margin: 0;
}


.article-content li ul,
.article-content li ol {
    margin: 0.5rem 0 0;
}


.article-content li::marker {
    color: var(--blog-brown);
}


.article-content ul[data-type="taskList"] {
    padding-left: 0;

    list-style: none;
}


.article-content ul[data-type="taskList"] li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}


.article-content ul[data-type="taskList"] li > label {
    flex: 0 0 auto;

    margin-top: 0.3rem;
}


.article-content ul[data-type="taskList"] li > div {
    flex: 1 1 auto;
}


/* ----------------------------------------------------------
   BLOCKQUOTE / CALLOUT / RULE
   ---------------------------------------------------------- */

.article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.4rem;

    background: #fffdf6;

    border-left: 4px solid var(--blog-brown);
    border-radius: 0 10px 10px 0;

    color: #222222;

    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.75;
}


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


/* Text boxes from the article editor: note (default), tip,
   important, warning. Older articles: info = note,
   success = tip. Same design as the editor. */

.article-content .article-callout {
    --callout-accent: #412e03;
    --callout-bg: #f7f4ee;
    --callout-label: #412e03;
    --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7.5h.01'/%3E%3C/svg%3E");

    position: relative;

    clear: both;

    margin: 1.75rem 0;
    padding: 14px 18px 15px 20px;

    background: var(--callout-bg);

    border: 0;
    border-left: 4px solid var(--callout-accent);
    border-radius: 0;

    box-shadow: none;

    color: #2f2f2f;

    font-style: normal;
}


/* Label: the style name, or the writer's own label */
.article-content .article-callout::before {
    content: "Note";

    display: block;

    margin: 0 0 6px;
    padding-left: 22px;

    color: var(--callout-label);

    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}


/* Icon beside the label */
.article-content .article-callout::after {
    content: "";

    position: absolute;
    top: 15px;
    left: 20px;

    width: 15px;
    height: 15px;

    background: var(--callout-accent);

    -webkit-mask: var(--callout-icon) center / contain no-repeat;
    mask: var(--callout-icon) center / contain no-repeat;

    pointer-events: none;
}


.article-content .article-callout p {
    margin: 0 0 0.6em;

    color: inherit;
}


.article-content .article-callout > :last-child {
    margin-bottom: 0;
}


.article-content .article-callout[data-callout-type="tip"],
.article-content .article-callout[data-callout-type="success"] {
    --callout-accent: #2f6b3a;
    --callout-bg: #eff6ef;
    --callout-label: #2f6b3a;
    --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21.5h4'/%3E%3Cpath d='M12 2.5a6.5 6.5 0 0 0-3.8 11.8c.5.4.8 1 .8 1.6V16h6v-.1c0-.6.3-1.2.8-1.6A6.5 6.5 0 0 0 12 2.5z'/%3E%3C/svg%3E");
}


.article-content .article-callout[data-callout-type="important"] {
    --callout-accent: #d89b00;
    --callout-bg: #fdf7e7;
    --callout-label: #7a5600;
    --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8l2.8 5.8 6.3.9-4.6 4.4 1.1 6.3L12 17.2l-5.6 3 1.1-6.3-4.6-4.4 6.3-.9z'/%3E%3C/svg%3E");
}


.article-content .article-callout[data-callout-type="warning"] {
    --callout-accent: #b42318;
    --callout-bg: #fdf0ee;
    --callout-label: #b42318;
    --callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.9 18a2 2 0 0 0 1.7 3h16.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9.5v4.5'/%3E%3Cpath d='M12 17.5h.01'/%3E%3C/svg%3E");
}


.article-content .article-callout[data-callout-type="tip"]::before,
.article-content .article-callout[data-callout-type="success"]::before {
    content: "Tip";
}


.article-content .article-callout[data-callout-type="important"]::before {
    content: "Important";
}


.article-content .article-callout[data-callout-type="warning"]::before {
    content: "Warning";
}


/* A label typed by the writer replaces the style name */
.article-content .article-callout[data-callout-title]::before {
    content: attr(data-callout-title);
}


.article-content hr {
    clear: both;

    margin: 2rem 0;

    border: none;
    border-top: 1px solid #e9e9e9;
}


/* ----------------------------------------------------------
   IMAGES
   Width and alignment come from the editor's image tools
   (style="width: 50%" and data-align="left|right").
   ---------------------------------------------------------- */

.article-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 1.75rem auto;

    border-radius: 12px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}


/* Images without a chosen size fill the column */
.article-content img:not([style*="width"]) {
    width: 100%;
}


.article-content img[data-align="left"] {
    float: left;

    margin: 0.4rem 1.5rem 1rem 0;
}


.article-content img[data-align="right"] {
    float: right;

    margin: 0.4rem 0 1rem 1.5rem;
}


.article-content figure {
    margin: 1.75rem 0;
}


.article-content figure img {
    margin: 0 auto;
}


.article-content figcaption {
    margin-top: 0.6rem;

    color: #777777;

    font-size: 0.88rem;
    font-style: italic;

    text-align: center;
}


/* ----------------------------------------------------------
   VIDEO
   ---------------------------------------------------------- */

.article-content div[data-youtube-video] {
    clear: both;

    margin: 1.75rem 0;
}


.article-content iframe {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    border: 0;
    border-radius: 10px;
}


.article-content video {
    width: 100%;
    max-width: 100%;
    height: auto;

    border-radius: 10px;
}


/* ----------------------------------------------------------
   TABLES
   ---------------------------------------------------------- */

/* Tables from the article editor. The generator wraps each
   table in .article-table-scroll so wide tables scroll
   sideways on phones instead of breaking the page. */

.article-content .article-table-scroll {
    clear: both;

    margin: 1.75rem 0;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


.article-content table {
    clear: both;

    margin: 1.75rem 0;
}


.article-content .article-table-scroll > table {
    margin: 0;
}

.article-content table {
    width: 100%;

    border-collapse: collapse;
    border-spacing: 0;

    border: 1px solid #d8d0bd;

    background: #ffffff;

    font-size: 0.95em;
    line-height: 1.55;
}


.article-content th,
.article-content td {
    padding: 9px 12px;

    border: 1px solid #d8d0bd;

    vertical-align: top;
    text-align: left;
}


.article-content th {
    background: #f4eee0;

    color: #2c1f02;

    font-weight: 700;
}


.article-content th p,
.article-content td p {
    margin: 0 0 0.5em;
}


.article-content th > :last-child,
.article-content td > :last-child {
    margin-bottom: 0;
}


/* Empty cells keep a full line height */
.article-content th p:empty::before,
.article-content td p:empty::before {
    content: "\00a0";
}


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


/* ----------------------------------------------------------
   CODE
   ---------------------------------------------------------- */

.article-content code {
    padding: 2px 6px;

    background: #f5f5f5;

    border-radius: 5px;

    color: #b00020;

    font-family: Consolas, Monaco, monospace;
    font-size: 0.9rem;
}


.article-content pre {
    clear: both;

    margin: 1.75rem 0;
    padding: 1.1rem 1.25rem;

    overflow-x: auto;

    background: #f6f6f4;

    border: 1px solid #e8e8e4;
    border-radius: 10px;

    color: #1f1f1f;

    font-size: 0.9rem;
    line-height: 1.6;
}


.article-content pre code {
    padding: 0;

    background: none;

    color: inherit;

    font-size: inherit;
}


/* ==========================================================
   7. ARTICLE INTERACTIONS — LIKE / COMMENT / SAVE / SHARE
   Scoped to .article-page and kept !important so the site's
   global button styles can't override them.
   ========================================================== */

.article-page .article-interactions {
    position: relative !important;
    z-index: 20 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;

    width: 100% !important;

    margin: 28px 0 0 !important;
    padding: 16px 0 0 !important;

    border-top: 1px solid rgba(0, 0, 0, 0.10) !important;
}


/* All four round buttons share one look */
.article-page .article-interactions .article-action,
.article-page .article-interactions .save-article-section .save-action,
.article-page .article-interactions .share-action-wrapper .share-action {
    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 42px !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;

    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 50% !important;

    color: #333333 !important;

    font-family: inherit !important;
    font-size: 17px !important;
    line-height: 1 !important;

    text-decoration: none !important;

    cursor: pointer !important;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease !important;
}


.article-page .article-interactions .article-action i,
.article-page .article-interactions .save-action i,
.article-page .article-interactions .share-action i,
.article-page .article-interactions .share-option i {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: inherit !important;
    line-height: 1 !important;

    pointer-events: none !important;
}


.article-page .article-interactions .article-action:hover,
.article-page .article-interactions .save-action:hover,
.article-page .article-interactions .share-action:hover,
.article-page .article-interactions .share-action[aria-expanded="true"] {
    transform: translateY(-2px) !important;

    border-color: var(--blog-gold) !important;

    color: var(--blog-gold) !important;
}


.article-page .article-interactions .share-action[aria-expanded="true"] {
    background: rgba(216, 155, 0, 0.08) !important;
}


.article-page .article-interactions .article-action:focus-visible {
    outline: 2px solid var(--blog-gold) !important;
    outline-offset: 3px !important;
}


/* Liked / saved */
.article-page .article-interactions .like-action.is-active,
.article-page .article-interactions .save-action.is-active {
    background: var(--blog-gold-soft) !important;

    border-color: var(--blog-gold) !important;

    color: var(--blog-gold) !important;
}


.article-page .article-interactions .like-action.is-active i,
.article-page .article-interactions .save-action.is-active i {
    font-weight: 900 !important;
}


/* Save wrapper */
.article-page .article-interactions .save-article-section {
    position: relative !important;
    z-index: 25 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
}


.article-page .article-interactions .save-action .article-action-text {
    display: none !important;
}


/* Save status message: small line under the buttons */
.article-page .save-article-message {
    margin: 8px 0 0 !important;

    color: var(--blog-text-soft) !important;

    font-size: 13px !important;
    line-height: 1.4 !important;

    text-align: right !important;
}


.article-page .save-article-message:empty {
    display: none !important;
}


/* Share wrapper + options */
.article-page .article-interactions .share-action-wrapper {
    position: relative !important;
    z-index: 100 !important;

    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 0 !important;
}


.article-page .article-interactions .article-share-options {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 50% !important;
    z-index: 999 !important;

    display: none !important;
    align-items: center !important;
    gap: 8px !important;

    padding: 9px !important;

    background: #ffffff !important;

    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;

    white-space: nowrap !important;

    transform: translateX(-50%) !important;
}


.article-page .article-interactions .article-share-options.show {
    display: flex !important;
}


.article-page .article-interactions .article-share-options .share-option {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;

    width: 36px !important;
    height: 36px !important;

    margin: 0 !important;
    padding: 0 !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 50% !important;

    color: #444444 !important;

    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1 !important;

    text-decoration: none !important;

    cursor: pointer !important;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease !important;
}


.article-page .article-interactions .article-share-options .share-option:hover {
    transform: translateY(-2px) !important;

    background: var(--blog-gold-soft) !important;

    color: var(--blog-gold) !important;
}


.article-page .article-interactions .article-share-options .share-option.is-active,
.article-page .article-interactions .article-share-options .share-option.copy-link.success {
    background: rgba(216, 155, 0, 0.12) !important;

    color: var(--blog-gold) !important;

    font-weight: 700 !important;
}


/* ==========================================================
   8. LOGIN PROMPT
   ========================================================== */

.article-page .article-login-prompt {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;

    display: none !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 20px !important;

    background: rgba(0, 0, 0, 0.55) !important;
}


.article-page .article-login-prompt.show {
    display: flex !important;
}


.article-page .article-login-box {
    position: relative !important;

    width: 100% !important;
    max-width: 400px !important;

    padding: 30px !important;

    background: #ffffff !important;

    border-radius: 14px !important;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25) !important;

    text-align: center !important;
}


.article-page .article-login-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 34px !important;
    height: 34px !important;

    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 50% !important;

    color: #555555 !important;

    font-size: 16px !important;

    cursor: pointer !important;
}


.article-page .article-login-icon {
    margin-bottom: 15px !important;

    color: var(--blog-gold) !important;

    font-size: 35px !important;
}


.article-page .article-login-box h3 {
    margin: 0 0 10px !important;

    font-size: 21px !important;
    line-height: 1.3 !important;
}


.article-page .article-login-box p {
    margin: 0 0 22px !important;

    color: var(--blog-text-soft) !important;

    line-height: 1.6 !important;
}


.article-page .article-login-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}


.article-page .article-login-button,
.article-page .article-login-cancel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 100px !important;
    min-height: 40px !important;

    padding: 10px 18px !important;

    border-radius: 7px !important;

    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;

    cursor: pointer !important;
}


.article-page .article-login-button {
    background: var(--blog-gold) !important;

    border: 1px solid var(--blog-gold) !important;

    color: #ffffff !important;
}


.article-page .article-login-button:hover {
    background: var(--blog-gold-dark) !important;

    border-color: var(--blog-gold-dark) !important;
}


.article-page .article-login-cancel {
    background: #ffffff !important;

    border: 1px solid #dddddd !important;

    color: #444444 !important;
}


.article-page .article-login-cancel:hover {
    border-color: #bbbbbb !important;
}


/* ==========================================================
   9. ARTICLE SIDEBAR
   ========================================================== */

.article-sidebar {
    position: sticky;
    top: calc(var(--shop-header-height) + 12px);

    align-self: start;
}


.sidebar-widget {
    margin-bottom: 16px;
    padding: 18px;

    background: #ffffff;

    border-radius: 14px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}


.sidebar-widget h3 {
    margin: 0 0 12px;
    padding-left: 12px;

    border-left: 3px solid #000000;

    color: var(--blog-text);

    font-size: 1rem;
}


.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.sidebar-links li {
    margin: 0;
}


.sidebar-links a {
    display: block;

    padding: 12px 14px;

    background: var(--blog-bg);

    border-left: 3px solid transparent;
    border-radius: 10px;

    color: var(--blog-text);

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.sidebar-links a:hover {
    transform: translateX(4px);

    background: #fff8dc;

    border-left-color: var(--blog-brown);

    color: #000000;
}


/* Categories */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.category-card {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 12px;

    background: var(--blog-bg);

    border: 1px solid #e6e6e6;
    border-radius: 10px;

    text-decoration: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}


.category-card:hover {
    background: #fff8dc;

    border-color: var(--blog-brown);
}


.category-card .category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 32px;
    height: 32px;

    background: #ffffff;

    border-radius: 50%;

    font-size: 16px;
}


.category-details {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.category-details h4 {
    margin: 0;

    color: var(--blog-text);

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}


.category-details span {
    margin-top: 2px;

    color: var(--blog-text-muted);

    font-size: 0.75rem;
}


/* ==========================================================
   10. LATEST / RELATED ARTICLES
   ========================================================== */

.latest-articles {
    margin-top: 48px;
    padding-top: 32px;

    border-top: 1px solid var(--blog-border);
}


.latest-articles h2 {
    margin: 0 0 20px;

    color: var(--blog-text);

    font-size: 1.6rem;
    font-weight: 700;
}


.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.related-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border-radius: 10px;

    transition: 0.25s;
}


.related-card > a {
    display: block;

    color: inherit;

    text-decoration: none;
}


.related-card img {
    display: block;

    width: 100%;
    height: 200px;

    object-fit: cover;

    transition: 0.15s;
}


.related-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 18px;
}


.related-body span {
    display: inline-block;
    align-self: flex-start;

    margin-bottom: 10px;
    padding: 4px 10px;

    background: #f5f3ec;

    border-radius: 8px;

    color: var(--blog-text);

    font-size: 0.78rem;
    font-weight: 600;
}


.related-body h3 {
    margin: 0 0 8px;

    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}


.related-body h3 a {
    color: var(--blog-text);

    text-decoration: none;

    transition: color 0.2s ease;
}


.related-body h3 a:hover {
    color: var(--blog-brown);
}


.related-body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    margin: 0;

    overflow: hidden;

    color: var(--blog-text-soft);

    font-size: 0.95rem;
    line-height: 1.45;
}


/* Only shown on mobile (section 16) */
.mobile-blog-sidebar,
.mobile-sidebar-toggle,
.mobile-sidebar-overlay,
.mobile-back-blog,
.mobile-related-articles {
    display: none;
}


/* ==========================================================
   11. LEGACY SHARE SECTION (older article template)
   ========================================================== */

.share-section {
    width: 100%;

    margin: 32px 0 36px;
    padding: 20px 0 0;

    border-top: 1px solid var(--blog-border);
}


.share-section h3 {
    margin: 0 0 16px;

    color: var(--blog-text);

    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}


.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;
}


.share-buttons a,
.share-buttons .copy-link {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    min-width: 44px;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 50%;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}


.share-buttons i {
    display: block;

    font-size: 1rem;
    line-height: 1;

    pointer-events: none;
}


.share-buttons .facebook { background: #1877f2; color: #ffffff; }
.share-buttons .linkedin { background: #0a66c2; color: #ffffff; }
.share-buttons .twitter  { background: #000000; color: #ffffff; }
.share-buttons .whatsapp { background: #25d366; color: #ffffff; }


.share-buttons .copy-link {
    background: #2b2b2b;

    color: #ffffff;

    font-family: inherit;
}


.share-buttons a:hover,
.share-buttons .copy-link:hover {
    transform: translateY(-2px);

    opacity: 0.9;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}


.share-buttons a:active,
.share-buttons .copy-link:active {
    transform: scale(0.94);
}


.share-buttons a:focus-visible,
.share-buttons .copy-link:focus-visible {
    outline: 3px solid var(--blog-text);
    outline-offset: 3px;
}


.share-buttons .copy-link.success {
    background: #198754;

    color: #ffffff;
}


/* ==========================================================
   12. SCROLL TO TOP · COPY TOAST · READING PROGRESS
   ========================================================== */

#scrollTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: #4b4a48;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);

    transition: 0.3s;
}


#scrollTop.show {
    opacity: 1;
    visibility: visible;
}


.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 9999;

    padding: 14px 22px;

    background: #1d1d1d;

    border-radius: 30px;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 500;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%) translateY(20px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}


.copy-toast.show {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);
}


#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;

    width: 0;
    height: 4px;

    background: #000000;
}


/* ==========================================================
   13. CATEGORY PAGE
   ========================================================== */

.category-page {
    padding: 60px 0;

    background: var(--blog-bg);
}


.category-page .container {
    width: 92%;
    max-width: 1320px;

    margin: 0 auto;
}


.section-heading {
    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}


.section-heading h2 {
    margin-bottom: 18px;

    color: var(--blog-text);

    font-size: 2.4rem;
    font-weight: 800;
}


.section-heading p {
    color: var(--blog-text-soft);

    font-size: 1.05rem;
    line-height: 1.8;
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}


.category-article-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border-radius: 18px;

    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);

    transition: 0.35s;
}


.category-image {
    display: block;

    overflow: hidden;
}


.category-image img {
    width: 100%;
    height: 240px;

    object-fit: cover;

    transition: 0.45s;
}


.category-article-card:hover .category-image img {
    transform: scale(1.08);
}


.category-article-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 28px;
}


.category-badge {
    display: inline-block;
    align-self: flex-start;

    margin-bottom: 18px;
    padding: 8px 18px;

    background: #000000;

    border-radius: 30px;

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 1px;
    text-transform: uppercase;
}


.category-article-body h2 {
    margin: 0 0 18px;
}


.category-article-body h2 a {
    color: var(--blog-text);

    text-decoration: none;

    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;

    transition: 0.3s;
}


.category-article-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    margin: 0 0 24px;

    overflow: hidden;

    color: var(--blog-text-soft);

    line-height: 1.8;
}


.category-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: auto;
    margin-bottom: 22px;

    color: #777777;

    font-size: 0.9rem;
}


.empty-category {
    grid-column: 1 / -1;

    padding: 70px 40px;

    background: #ffffff;

    border-radius: 18px;

    text-align: center;
}


.empty-category h3 {
    margin-bottom: 18px;

    color: var(--blog-text);

    font-size: 2rem;
}


.empty-category p {
    color: var(--blog-text-soft);

    line-height: 1.8;
}


.explore-more {
    margin-top: 70px;

    text-align: center;
}


.browse-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 16px 34px;

    background: var(--blog-text);

    border-radius: 50px;

    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    transition: 0.3s;
}


/* ==========================================================
   14. PAGINATION
   ========================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;

    margin: 32px 0 0;
    padding: 0;

    background: transparent;
}


.page-numbers {
    display: flex;
    gap: 4px;
}


/* Page numbers: no background, just the number */
.page-numbers a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;
    padding: 0 6px;

    background: transparent;

    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;

    color: #555555;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;

    transition: color 0.2s ease, border-color 0.2s ease;
}


.page-numbers a:hover {
    color: var(--blog-gold-dark);
}


/* Current page: brown, underlined */
.page-numbers a.active {
    background: transparent;

    border-bottom-color: var(--blog-brown);

    color: var(--blog-brown);

    font-weight: 800;
}


/* Next: a plain text link */
.page-button {
    display: inline-flex;
    align-items: center;

    height: 34px;
    padding: 0 4px;

    background: transparent;

    border: 0;
    border-radius: 0;

    color: var(--blog-brown);

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 700;

    transition: color 0.2s ease;
}


.page-button:hover {
    color: var(--blog-gold-dark);
}


.blog-pagination,
#blog-pagination {
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: transparent;
}


@media (max-width: 768px) {

    .blog-page {
        padding-bottom: 24px;
    }

    .pagination {
        margin-top: 22px;
    }
}


/* ==========================================================
   15. NEWSLETTER + COMMUNITY
   ========================================================== */

.hba-newsletter-community {
    width: 100%;

    margin: 0;
    padding: 32px 18px 42px;

    background: #ffffff;

    border-top: 6px solid #111111;
    border-bottom: 6px solid #111111;
}


.hba-newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: start;

    width: 100%;
    max-width: 1900px;

    margin: 0 auto;
}


.hba-newsletter-column,
.hba-community-column {
    width: 100%;
    min-width: 0;
}


.hba-newsletter-heading,
.hba-social-heading,
.hba-whatsapp-heading {
    margin: 0;

    color: #111111;

    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;

    text-transform: uppercase;
}


.hba-newsletter-heading {
    margin-bottom: 18px;

    font-size: 40px;
    line-height: 1.15;
}


.hba-newsletter-description {
    max-width: 760px;

    margin: 0 0 32px;

    color: #111111;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.55;
}


.hba-newsletter-form {
    display: flex;
    align-items: stretch;
    gap: 7px;

    width: 100%;

    margin: 0;
}


#hba-newsletter-email {
    flex: 1;

    min-width: 0;
    height: 66px;

    padding: 0 15px;

    background: #ffffff;

    border: 1px solid #888888;
    border-radius: 0;

    outline: none;

    color: #222222;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}


#hba-newsletter-email::placeholder {
    color: #777777;

    opacity: 1;
}


#hba-newsletter-email:focus {
    border-color: #3f3f3e;
}


.hba-newsletter-submit {
    flex: 0 0 auto;

    height: 66px;

    padding: 0 25px;

    background: #111111;

    border: 0;
    border-radius: 0;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.hba-social-block {
    width: 100%;

    padding-bottom: 35px;

    border-bottom: 1px solid #888888;
}


.hba-social-heading {
    margin-bottom: 35px;

    font-size: 40px;
    line-height: 1.15;
}


.hba-social-icons {
    display: flex;
    align-items: center;
    gap: 30px;
}


.hba-social-link,
.hba-whatsapp-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 55px;

    width: 55px;
    height: 55px;

    background: #ffffff;

    color: #111111;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.hba-social-link {
    border: 2px solid #2d2801;

    text-decoration: none;

    font-size: 31px;
}


.hba-whatsapp-channel {
    width: 100%;

    padding-top: 35px;
}


.hba-whatsapp-heading {
    margin-bottom: 22px;

    font-size: 20px;
    line-height: 1;
}


.hba-whatsapp-channel-link {
    display: flex;
    align-items: center;
    gap: 28px;

    width: fit-content;

    color: #111111;

    text-decoration: none;
}


.hba-whatsapp-icon-box {
    border: 2px solid #111111;

    font-size: 34px;
}


.hba-whatsapp-channel-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}


/* ==========================================================
   16. FLOATING WHATSAPP BUTTON (with radiating waves)
   ========================================================== */

.hba-floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;

    isolation: isolate;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    background: #25d366;

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    font-size: 32px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.hba-floating-whatsapp:hover {
    transform: scale(1.08);

    color: #ffffff;

    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.3);
}


.hba-floating-whatsapp::before,
.hba-floating-whatsapp::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;

    width: 100%;
    height: 100%;

    background: #25d366;

    border-radius: 50%;

    opacity: 0.55;

    pointer-events: none;

    transform: translate(-50%, -50%) scale(1);

    animation: hba-whatsapp-wave 2.2s ease-out infinite;
}


.hba-floating-whatsapp::after {
    opacity: 0.45;

    animation-delay: 1.1s;
}


@keyframes hba-whatsapp-wave {

    0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.55; }
    25%  { transform: translate(-50%, -50%) scale(1.15); opacity: 0.40; }
    60%  { transform: translate(-50%, -50%) scale(1.45); opacity: 0.18; }
    100% { transform: translate(-50%, -50%) scale(1.75); opacity: 0;    }

}


/* ==========================================================
   17. LARGE TABLET — 1024px AND BELOW
   ========================================================== */

@media (max-width: 1024px) {

    /* Sidebar moves under the article */
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }


    .article-main {
        max-width: none;
    }


    .article-sidebar {
        position: static;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }


    .sidebar-widget {
        margin-bottom: 0;
    }


    /* Older newsletter block */
    .newsletter {
        padding: 50px 30px;
    }


    .newsletter h2 {
        margin-bottom: 12px;

        font-size: 2rem;
    }


    .newsletter p {
        max-width: 620px;

        margin: 0 auto;

        color: #dddddd;

        line-height: 1.8;
    }


    .newsletter-form {
        gap: 14px;

        margin-top: 28px;
    }


    .newsletter-form input {
        width: 340px;

        padding: 14px 18px;

        border-radius: 10px;

        font-size: 0.95rem;
    }


    .newsletter-form button {
        padding: 14px 26px;

        border-radius: 10px;

        font-weight: 600;

        transition: 0.3s;
    }

}


/* ==========================================================
   18. TABLET — 992px AND BELOW
   ========================================================== */

@media (max-width: 992px) {

    .blog-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .blog-layout {
        grid-template-columns: 1fr;
    }


    .blog-sidebar {
        position: static;

        margin-top: 40px;
    }


    .category-hero {
        grid-template-columns: 1fr;
        gap: 40px;

        text-align: center;
    }


    .category-hero .category-icon {
        margin: 0 auto 25px;
    }


    .category-stats {
        justify-content: center;
    }

}


/* ----------------------------------------------------------
   NEWSLETTER — TABLET (769–1100px)
   ---------------------------------------------------------- */

@media (min-width: 769px) and (max-width: 1100px) {

    .hba-newsletter-community {
        padding: 30px 25px 38px;
    }


    .hba-newsletter-grid {
        gap: 5%;
    }


    .hba-newsletter-heading,
    .hba-social-heading {
        font-size: 31px;
    }


    .hba-whatsapp-heading {
        margin-bottom: 24px;

        font-size: 29px;
    }


    .hba-newsletter-description {
        margin-bottom: 25px;

        font-size: 20px;
        line-height: 1.5;
    }


    #hba-newsletter-email {
        height: 56px;

        font-size: 15px;
    }


    .hba-newsletter-submit {
        height: 56px;

        padding: 0 19px;

        font-size: 15px;
    }


    .hba-social-block {
        padding-bottom: 28px;
    }


    .hba-social-heading {
        margin-bottom: 25px;
    }


    .hba-social-icons {
        gap: 18px;
    }


    .hba-social-link,
    .hba-whatsapp-icon-box {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }


    .hba-social-link {
        font-size: 25px;
    }


    .hba-whatsapp-icon-box {
        font-size: 28px;
    }


    .hba-whatsapp-channel {
        padding-top: 28px;
    }


    .hba-whatsapp-channel-link {
        gap: 18px;
    }


    .hba-whatsapp-channel-text {
        font-size: 16px;
    }

}


/* ==========================================================
   19. MOBILE — 768px AND BELOW
   ========================================================== */

@media (max-width: 768px) {

    /* ------------------------------------------------------
       GLOBAL
       ------------------------------------------------------ */

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;
    }


    * {
        box-sizing: border-box;
    }


    img,
    video,
    iframe {
        max-width: 100%;
    }


    .container,
    .article-page .container {
        width: 100%;
        max-width: 100%;

        margin: 0 auto;
        padding-left: 18px;
        padding-right: 18px;
    }


    .breadcrumb,
    .section-tag,
    .blog-sidebar,
    .latest-articles {
        display: none !important;
    }


    /* ------------------------------------------------------
       BLOG INDEX
       ------------------------------------------------------ */

    .blog-page,
    .blog-section {
        width: 100%;
        max-width: 100%;

        margin-top: 0;
        padding-top: 0;

        overflow-x: hidden;
    }


    /* Cards run edge to edge */
    .blog-content {
        width: 100%;
        max-width: 100%;

        margin-top: 0;
        padding: 0;

        overflow-x: hidden;
    }


    .blog-header {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;

        margin: 0;
        padding: 20px 18px 10px;

        text-align: center;
    }


    .blog-header h1 {
        margin: 0 0 12px;

        color: var(--blog-text);

        font-size: 28px;
        line-height: 1.25;

        text-align: center;
    }


    .blog-description {
        max-width: 100%;

        margin: 0 auto 25px;
        padding: 0;

        font-size: 15px;
        line-height: 1.65;
    }


    .blog-grid {
        grid-template-columns: 1fr;
        gap: 0;

        margin: 0;
        padding: 0;
    }


    /* ------------------------------------------------------
       BLOG CARD — thumbnail left, text right
       ------------------------------------------------------ */

    .blog-card {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 12px;

        width: 100%;
        min-width: 0;
        height: auto;

        margin: 0;
        padding: 14px 16px;

        overflow: visible;

        border: none;
        border-bottom: 1px solid #d0d0d0;
        border-radius: 0;

        box-shadow: none;
    }


    .blog-card:last-child {
        border-bottom: none;
    }


    .blog-image {
        display: block;
        align-self: start;

        width: 58px;
        height: 58px;

        margin: 0;
        padding: 0;

        overflow: hidden;

        border-radius: 6px;
    }


    .blog-image img {
        display: block;

        width: 58px;
        height: 58px;

        object-fit: cover;
    }


    .blog-card-content {
        display: flex;
        flex-direction: column;

        width: 100%;
        min-width: 0;

        margin: 0;
        padding: 0;
    }


    .blog-card .category {
        display: none;
    }


    .blog-card h2,
    .blog-card h3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        margin: 0 0 4px;

        overflow: hidden;

        font-size: 15px;
        font-weight: 700;
        line-height: 1.25;
    }


    .blog-card h2 a,
    .blog-card h3 a {
        min-height: 0;

        font-size: inherit;
        line-height: inherit;
    }


    .blog-card p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        max-height: calc(1.35em * 2);

        margin: 0 0 6px;

        overflow: hidden;

        color: var(--blog-text-soft);

        font-size: 11.5px;
        line-height: 1.35;
    }


    .blog-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;

        width: 100%;

        margin: 2px 0 0;
        padding: 0;

        border: none;
    }


    .blog-meta {
        min-width: 0;

        margin: 0;
        padding: 0;
    }


    .blog-meta span {
        display: inline-block;

        padding: 3px 7px;

        background: #faf7eb;

        border-radius: 999px;

        color: var(--blog-text-soft);

        font-size: 10px;
        line-height: 1.2;

        white-space: nowrap;
    }


    .read-more {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;

        margin: 0;
        padding: 0;

        color: #000000;

        text-decoration: none;

        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;

        white-space: nowrap;
    }


    .blog-card-actions {
        flex-wrap: nowrap;

        margin-top: 8px;
        padding-top: 8px;

        border-top: 1px solid rgba(65, 46, 3, 0.35);
    }


    .blog-card-actions-left,
    .blog-card-actions-right {
        gap: 10px;
    }


    .card-like-action i,
    .save-article-button i,
    .share-article-button i {
        font-size: 14px;
    }


    .like-count {
        margin-left: 4px;
    }


    /* ------------------------------------------------------
       MOBILE FILTER DRAWER
       ------------------------------------------------------ */

    .mobile-blog-sidebar {
        position: fixed;
        top: 180px;
        left: -300px;
        z-index: 10000;

        display: block;

        width: 280px;
        max-width: 82vw;
        height: auto;

        overflow: visible;

        background: #ffffff;

        border: 1px solid #dddddd;
        border-radius: 0 0 10px 0;

        box-shadow: 5px 8px 25px rgba(0, 0, 0, 0.18);

        transition: left 0.3s ease;
    }


    .mobile-blog-sidebar.open {
        left: 0;
    }


    .mobile-filter-card {
        height: auto;

        margin: 0;
        padding: 0 18px 18px;

        background: #ffffff;
    }


    .mobile-filter-card h3 {
        margin: 0 -18px 8px;
        padding: 14px 18px;

        background: var(--blog-brown);

        color: #ffffff;

        font-size: 19px;
        font-weight: 700;
        line-height: 1.25;
    }


    .mobile-filter-links {
        margin: 0;
        padding: 0;
    }


    .mobile-filter-links a {
        display: block;

        padding: 14px 0;

        border-bottom: 1px solid #eeeeee;

        color: #111111;

        text-decoration: none;

        font-size: 14px;
        line-height: 1.3;
    }


    .mobile-filter-links a.active {
        font-weight: 800;
    }


    .mobile-category-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;

        padding: 14px 0;

        background: none;

        border: none;

        font-size: 16px;
        font-weight: 600;

        text-align: left;

        cursor: pointer;
    }


    .mobile-category-arrow {
        transition: transform 0.3s ease;
    }


    .mobile-category-arrow.rotate {
        transform: rotate(90deg);
    }


    .mobile-category-list {
        display: none;

        margin: 0;
        padding: 0;
    }


    .mobile-category-list.show {
        display: block;

        padding-left: 12px;
    }


    .mobile-search-box {
        margin-top: 24px;
        padding-top: 16px;

        border-top: 1px solid #dddddd;
    }


    .mobile-search {
        width: 100%;

        margin: 0;
        padding: 11px 12px;

        border: 1px solid #dddddd;
        border-radius: 10px;

        font-size: 13px;
    }


    .mobile-sidebar-toggle {
        position: fixed;
        top: 50%;
        left: 0;
        z-index: 10002;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 32px;
        height: 62px;

        padding: 0;

        background: var(--blog-brown);

        border: none;
        border-radius: 0 9px 9px 0;

        color: #ffffff;

        cursor: pointer;

        transform: translateY(-50%);
    }


    /* ------------------------------------------------------
       ARTICLE PAGE
       ------------------------------------------------------ */

    .article-page {
        width: 100%;
        max-width: 100%;

        padding: 12px 0 40px;

        overflow-x: hidden;
    }


    .article-page .blog-topbar-top {
        display: none;
    }


    .mobile-back-blog {
        display: flex;
        align-items: center;

        width: 100%;

        margin: 0 0 14px;
        padding: 0;
    }


    .mobile-back-blog a {
        display: inline-flex;
        align-items: center;
        gap: 8px;

        color: var(--blog-text);

        text-decoration: none;

        font-size: 15px;
        font-weight: 700;
    }


    .article-header {
        max-width: 100%;

        margin: 0 0 14px;
    }


    .article-header h1,
    .article-title {
        font-size: 26px;
        font-weight: 700;
        line-height: 1.3;

        overflow-wrap: anywhere;
    }


    .article-hero {
        margin: 0 0 16px;

        border-radius: 10px;
    }


    .article-hero img {
        height: auto;
        max-height: 320px;
    }


    .article-meta {
        max-width: 100%;

        margin: 0 0 20px;
    }


    .author-box {
        gap: 12px;

        padding: 14px;
    }


    .author-avatar {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }


    .author-info strong {
        font-size: 15px;
    }


    .author-meta {
        gap: 4px 12px;
    }


    .author-meta .meta-item {
        font-size: 12px;
    }


    .author-bio {
        font-size: 13px;
        line-height: 1.6;
    }


    .article-layout {
        display: block;
    }


    .article-sidebar {
        display: none;
    }


    /* ------------------------------------------------------
       ARTICLE CONTENT
       ------------------------------------------------------ */

    .article-content {
        color: #444444;

        font-size: 16px;
        line-height: 1.75;
    }


    .article-content p {
        margin: 0 0 1.1rem;
    }


    .article-content h1,
    .article-content h2,
    .article-content h3,
    .article-content h4 {
        line-height: 1.35;

        overflow-wrap: anywhere;
    }


    .article-content h1 {
        margin: 1.8rem 0 0.6rem;

        font-size: 24px;
    }


    .article-content h2 {
        margin: 1.8rem 0 0.6rem;

        font-size: 22px;
    }


    .article-content h3 {
        margin: 1.5rem 0 0.5rem;

        font-size: 19px;
    }


    .article-content ul,
    .article-content ol {
        padding-left: 1.3rem;
    }


    .article-content blockquote {
        margin: 1.5rem 0;
        padding: 14px 16px;

        border-left-color: #000000;

        font-size: 15px;
        line-height: 1.7;
    }


    /* Side-by-side text is too narrow on phones: stack images */
    .article-content img,
    .article-content img[data-align="left"],
    .article-content img[data-align="right"] {
        float: none;

        margin: 1.4rem auto;

        border-radius: 10px;
    }


    .article-content img[style*="width"] {
        min-width: 60%;
    }


    /* Wide tables scroll sideways inside .article-table-scroll */
    .article-content .article-table-scroll {
        margin: 1.5rem 0;
    }


    .article-content table {
        font-size: 13px;
    }


    .article-content th,
    .article-content td {
        min-width: 110px;
        padding: 9px 11px;
    }


    /* Pages published before the wrapper existed */
    .article-content > table {
        display: block;

        max-width: 100%;

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }


    .article-content .article-callout {
        padding: 12px 14px 13px 16px;
    }


    .article-content .article-callout::after {
        top: 13px;
        left: 16px;
    }


    .article-content pre {
        margin: 1.5rem 0;
        padding: 14px;

        font-size: 12px;
    }


    .article-content code {
        font-size: 13px;

        overflow-wrap: anywhere;
    }


    /* ------------------------------------------------------
       MOBILE RELATED ARTICLES
       ------------------------------------------------------ */

    .mobile-related-articles {
        display: block;

        width: 100%;

        margin-top: 36px;
        padding: 24px 0 0;

        border-top: 1px solid var(--blog-border);
    }


    .mobile-related-articles h2 {
        position: relative;

        display: inline-block;

        margin: 0 0 18px;
        padding-bottom: 8px;

        color: var(--blog-text);

        font-size: 22px;
        line-height: 1.3;
    }


    .mobile-related-articles h2::after {
        content: "";

        position: absolute;
        left: 0;
        bottom: 0;

        width: 50px;
        height: 3px;

        background: #000000;

        border-radius: 20px;
    }


    .mobile-related-articles .blog-grid {
        gap: 16px;
    }


    .mobile-related-articles .blog-card {
        display: block;

        padding: 0;

        border-bottom: 1px solid #d0d0d0;
    }


    .mobile-related-articles .blog-card-content {
        padding: 18px 16px 20px;
    }


    .mobile-related-articles .blog-card-content h2,
    .mobile-related-articles .blog-card-content h3 {
        display: block;

        margin: 0 0 8px;

        overflow: visible;

        font-size: 20px;
        line-height: 1.25;
    }


    .mobile-related-articles .blog-card-content p {
        -webkit-line-clamp: 3;

        max-height: 4.5em;

        margin: 0;

        font-size: 15px;
        line-height: 1.5;
    }


    .mobile-related-articles .blog-footer {
        gap: 12px;

        margin-top: 12px;
    }


    .mobile-related-articles .read-more {
        padding: 6px 10px;
    }


    /* ------------------------------------------------------
       CATEGORY PAGE
       ------------------------------------------------------ */

    .category-page {
        padding: 40px 0 70px;
    }


    .category-hero {
        padding: 35px 28px;
    }


    .category-hero h1 {
        font-size: 2.2rem;
    }


    .category-grid {
        grid-template-columns: 1fr;
    }


    .category-article-body {
        padding: 22px;
    }


    .category-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }


    .section-heading h2 {
        font-size: 2rem;
    }


    /* ------------------------------------------------------
       LEGACY SHARE SECTION
       ------------------------------------------------------ */

    .share-section {
        margin: 24px 0;
        padding: 12px 0 0;
    }


    .share-section h3 {
        margin: 0 0 12px;

        font-size: 16px;
    }


    .share-buttons {
        gap: 10px;
    }


    .share-buttons a,
    .share-buttons .copy-link {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }


    /* ------------------------------------------------------
       FLOATING ELEMENTS
       ------------------------------------------------------ */

    #scrollTop {
        right: 16px;
        bottom: 16px;

        width: 42px;
        height: 42px;

        font-size: 14px;

        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }


    .copy-toast {
        bottom: 20px;

        width: calc(100% - 40px);
        max-width: 320px;

        padding: 13px 16px;

        border-radius: 12px;

        font-size: 13px;

        text-align: center;
    }


    .hba-floating-whatsapp {
        right: 20px;
        bottom: 50px;

        width: 52px;
        height: 52px;

        font-size: 27px;
    }


    /* ------------------------------------------------------
       OLDER NEWSLETTER BLOCK
       ------------------------------------------------------ */

    .newsletter {
        width: 100%;

        padding: 45px 20px;

        text-align: left;
    }


    .newsletter h2 {
        margin: 0 0 10px;

        font-size: 25px;
        line-height: 1.3;
    }


    .newsletter p {
        margin: 0 0 22px;

        color: #dddddd;

        font-size: 14px;
        line-height: 1.7;
    }


    .newsletter-form {
        flex-direction: column;
        gap: 12px;

        width: 100%;

        margin: 0;
    }


    .newsletter-form input {
        width: 100%;

        padding: 14px 15px;

        border-radius: 9px;

        font-size: 14px;
    }


    .newsletter-form button {
        width: 100%;

        padding: 14px;

        border-radius: 9px;

        font-size: 14px;
        font-weight: 700;
    }


    /* ------------------------------------------------------
       NEWSLETTER + COMMUNITY
       ------------------------------------------------------ */

    .hba-newsletter-community {
        padding: 28px 18px 32px;

        border-top-width: 4px;
        border-bottom-width: 4px;
    }


    .hba-newsletter-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }


    .hba-newsletter-heading {
        margin-bottom: 12px;

        font-size: 27px;
    }


    .hba-newsletter-description {
        width: 100%;

        margin-bottom: 22px;

        font-size: 17px;
        line-height: 1.5;
    }


    .hba-newsletter-form {
        gap: 5px;
    }


    #hba-newsletter-email {
        width: 100%;
        height: 49px;

        padding: 0 12px;

        font-size: 14px;
    }


    .hba-newsletter-submit {
        height: 49px;

        padding: 0 14px;

        font-size: 13px;
    }


    .hba-social-block {
        padding-bottom: 25px;
    }


    .hba-social-heading {
        margin-bottom: 22px;

        font-size: 27px;
    }


    .hba-social-icons {
        flex-wrap: wrap;
        gap: 13px;
    }


    .hba-social-link,
    .hba-whatsapp-icon-box {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }


    .hba-social-link {
        font-size: 21px;
    }


    .hba-whatsapp-icon-box {
        font-size: 24px;
    }


    .hba-whatsapp-channel {
        padding-top: 20px;
    }


    .hba-whatsapp-channel-link {
        gap: 14px;

        width: 100%;
    }


    .hba-whatsapp-channel-text {
        font-size: 14px;
    }

}


/* ==========================================================
   20. SMALL MOBILE — 600px AND BELOW
   ========================================================== */

@media (max-width: 600px) {

    .article-page .article-interactions {
        gap: 10px !important;

        margin-top: 24px !important;
        padding-top: 14px !important;
    }


    .article-page .article-interactions .article-action,
    .article-page .article-interactions .save-article-section .save-action,
    .article-page .article-interactions .share-action-wrapper .share-action {
        flex-basis: 40px !important;

        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;

        font-size: 16px !important;
    }


    .article-page .article-interactions .article-share-options {
        top: calc(100% + 9px) !important;

        gap: 6px !important;

        padding: 8px !important;

        border-radius: 10px !important;
    }


    .article-page .article-interactions .article-share-options .share-option {
        flex-basis: 34px !important;

        width: 34px !important;
        height: 34px !important;

        font-size: 14px !important;
    }


    .article-page .article-login-box {
        padding: 26px 20px !important;
    }


    .article-page .article-login-actions {
        flex-direction: column !important;

        width: 100% !important;
    }


    .article-page .article-login-button,
    .article-page .article-login-cancel {
        width: 100% !important;
    }

}


/* ==========================================================
   21. SMALLEST — 480px AND BELOW
   ========================================================== */

@media (max-width: 480px) {

    .share-buttons {
        gap: 9px;
    }


    .share-buttons a,
    .share-buttons .copy-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }


    .hba-floating-whatsapp {
        right: 15px;

        width: 48px;
        height: 48px;

        font-size: 24px;
    }


    .hba-newsletter-community {
        padding: 24px 14px 28px;
    }


    .hba-newsletter-grid {
        gap: 30px;
    }


    .hba-newsletter-heading,
    .hba-social-heading {
        font-size: 24px;
    }


    .hba-newsletter-description {
        margin-bottom: 18px;

        font-size: 15px;
    }


    #hba-newsletter-email {
        height: 45px;

        padding: 0 10px;

        font-size: 13px;
    }


    .hba-newsletter-submit {
        height: 45px;

        padding: 0 11px;

        font-size: 12px;
    }


    .hba-social-heading {
        margin-bottom: 18px;
    }


    .hba-social-icons {
        gap: 10px;
    }


    .hba-social-link,
    .hba-whatsapp-icon-box {
        flex-basis: 46px;

        width: 46px;
        height: 46px;
    }


    .hba-social-link {
        font-size: 18px;
    }


    .hba-whatsapp-heading {
        margin-bottom: 18px;

        font-size: 22px;
    }


    .hba-whatsapp-icon-box {
        font-size: 21px;
    }


    .hba-whatsapp-channel-text {
        font-size: 13px;
    }

}



/* ==========================================================
   22. MOBILE BLOG DRAWER — CATEGORIES, TAB, OVERLAY
   Paste at the very end of blog.css.
   Works with blognew.js section 6 and 7.
   ========================================================== */

@media (max-width: 768px) {

    /* ------------------------------------------------------
       Drawer scrolls inside itself when the list is long
       ------------------------------------------------------ */

    .mobile-blog-sidebar {
        max-height: calc(100vh - 200px);
        max-height: calc(100dvh - 200px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }


    /* ------------------------------------------------------
       ">" tab: moves to the drawer's edge while it is open
       (blognew.js adds .is-open), so it never covers the menu
       ------------------------------------------------------ */

    .mobile-sidebar-toggle {
        transition: left 0.3s ease;
    }

    .mobile-sidebar-toggle.is-open {
        left: min(280px, 82vw);
    }


    /* ------------------------------------------------------
       Dimmed page behind the open drawer; tapping it closes
       ------------------------------------------------------ */

    .mobile-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 9999;

        display: block;

        background: rgba(0, 0, 0, 0.35);

        opacity: 0;
        visibility: hidden;

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
    }

    .mobile-sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }


    /* ------------------------------------------------------
       Categories button
       ------------------------------------------------------ */

    .mobile-category-toggle {
        color: #111111;

        border-bottom: 1px solid #eeeeee;

        font-family: inherit;
    }

    .mobile-category-arrow {
        display: inline-block;
    }


    /* ------------------------------------------------------
       Category cards: icon, name, article count
       ------------------------------------------------------ */

    .mobile-category-list.show {
        padding: 4px 0 6px 12px;
    }

    .mobile-category-card {
        display: flex;
        align-items: center;
        gap: 10px;

        padding: 9px 0;

        border-bottom: 1px solid #f1f1f1;

        color: #111111;

        text-decoration: none;
    }

    .mobile-category-card:last-child {
        border-bottom: none;
    }

    .mobile-category-card:hover,
    .mobile-category-card:active {
        background: #fff8dc;
    }

    .mobile-category-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 30px;

        width: 30px;
        height: 30px;

        background: #faf7eb;

        border-radius: 50%;

        font-size: 15px;
    }

    .mobile-category-details {
        display: flex;
        flex-direction: column;

        min-width: 0;
    }

    .mobile-category-details strong {
        color: #111111;

        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }

    .mobile-category-details small {
        color: #777777;

        font-size: 12px;
    }

}

/* ==========================================================
   23. BLOG CARD ACTIONS
   Left: like, comment, share.  Right: save.

   The card's actions row also carries the class
   "save-article-section" (save-article.js reads the article
   details from it). The rules below undo the big article-page
   Save button styles from the save-article CSS, but only
   inside blog cards.
   ========================================================== */

.blog-card .blog-card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;

    width: 100%;

    margin: 12px 0 0;
}

.blog-card .blog-card-actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Pushes save to the far right, whatever else is set */
.blog-card .blog-card-actions-right {
    display: flex;
    align-items: center;

    margin-left: auto;
}


/* Comment link looks like the other icon buttons */
.blog-card .card-comment-action {
    color: #777777;

    text-decoration: none;
}

.blog-card .card-comment-action:hover {
    color: var(--blog-brown, #412e03);
}


/* Save button: small icon, not the big article-page button */
.blog-card .save-article-button {
    width: auto;
    min-height: 0;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;
    color: #777777;

    font-size: 14px;
    font-weight: 400;
}

.blog-card .save-article-button:hover {
    background: transparent;
    color: var(--blog-brown, #412e03);
}

.blog-card .save-article-button.saved,
.blog-card .save-article-button.saved:hover {
    background: transparent;
    border: 0;
    color: var(--blog-brown, #412e03);
}


/* Share options open on their own full-width row below */
.blog-card .blog-share-options {
    flex-basis: 100%;
}


@media (max-width: 768px) {

    .blog-card .blog-card-actions {
        flex-direction: row;
        align-items: center;

        margin-top: 8px;
    }

    .blog-card .blog-card-actions-left {
        gap: 14px;
    }

    .blog-card .save-article-button {
        width: auto;
    }

    /* "Save" label stays hidden on phones; icon only */
    .blog-card .save-article-button .save-article-label {
        display: none;
    }

}



/* ==========================================================
   24. SHARE POPUPS
   Kept at the very end so it wins over earlier rules.
   ========================================================== */


/* ----------------------------------------------------------
   ARTICLE PAGE
   The share row lines up with the share button's right edge
   and opens towards the left, so it never runs off-screen.
   ---------------------------------------------------------- */

.article-page .article-interactions .share-action-wrapper .article-share-options {
    left: auto !important;
    right: 0 !important;

    transform: none !important;

    flex-direction: row !important;
    flex-wrap: nowrap !important;

    max-width: calc(100vw - 32px) !important;
}


/* ----------------------------------------------------------
   BLOG CARDS
   The share row floats above the buttons instead of
   pushing the page down. It opens upwards, over the card's
   own text, because cards clip anything below them.
   ---------------------------------------------------------- */

.blog-card .blog-card-actions {
    position: relative;
}

.blog-card .blog-share-options,
.blog-card .blog-share-options.show {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 8px);
    top: auto;
    z-index: 30;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;

    flex-basis: auto;
    width: auto;
    max-width: calc(100vw - 40px);
    max-height: none;

    margin: 0;
    padding: 8px 10px;

    overflow: visible;

    background: #ffffff;

    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* Closed: invisible and not clickable, but still in position */
.blog-card .blog-share-options {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(6px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}

/* Open */
.blog-card .blog-share-options.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}

.blog-card .blog-share-options a,
.blog-card .blog-share-options button {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    border-radius: 50%;
}

.blog-card .blog-share-options a:hover,
.blog-card .blog-share-options button:hover {
    background: rgba(216, 155, 0, 0.10);
}


/* Share button in cards: plain icon, like like/comment/save */
.blog-card .share-article-button {
    padding: 0;

    border: 0;

    background: transparent;

    outline: none;
}

.blog-card .share-article-button:focus-visible {
    outline: 2px solid #d89b00;
    outline-offset: 3px;

    border-radius: 4px;
}

.blog-card .share-article-button[aria-expanded="true"] {
    color: var(--blog-brown, #412e03);
}