/* ==========================================================
   HK TOPIC PAGE
   ========================================================== */

.hk-topic-page {
    padding: 0 0 100px;
}

.hk-topic-hero {
    padding: clamp(58px, 8vw, 96px) 0 clamp(42px, 6vw, 70px);
}

.hk-topic-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.hk-topic-hero-copy h1 {
    max-width: 760px;
    margin: 20px 0 16px;
    color: #172033;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hk-topic-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #324158;
    font-size: 18px;
    line-height: 1.75;
}

.hk-topic-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hk-topic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.hk-topic-button-primary {
    background: #177233;
    color: #ffffff;
}

.hk-topic-button-secondary {
    border: 1px solid #dbe4ea;
    background: #ffffff;
    color: #172033;
}

.hk-topic-hero-art {
    overflow: hidden;
    border-radius: 34px;
    background: #f8fafc;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.hk-topic-hero-art img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 820px) {
    .hk-topic-hero-inner {
        grid-template-columns: 1fr;
    }

    .hk-topic-hero-copy h1 {
        font-size: 40px;
        line-height: 1.06;
    }

    .hk-topic-hero-copy p {
        font-size: 15px;
        line-height: 1.68;
    }

    .hk-topic-hero-art {
        max-width: 420px;
    }
}
/* ==========================================================
   PREMIUM HERO
   ========================================================== */

.hk-topic-hero {
    padding: 0 0 48px;
}

.hk-topic-hero-card {
    position: relative;
    overflow: hidden;

    min-height: 540px;

    border-radius: 40px;

    background:
        linear-gradient(
            135deg,
            #fdfcf8 0%,
            #f7f4ec 100%
        );

    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;

    box-shadow:
        0 24px 70px rgba(15,23,42,.08);
}

.hk-topic-hero-copy {
    position: relative;
    z-index: 2;

    padding:
        clamp(40px, 5vw, 72px);
}

.hk-topic-hero-copy h1 {
    margin: 14px 0 20px;

    font-size: clamp(52px, 7vw, 88px);

    line-height: .95;

    letter-spacing: -0.06em;
}

.hk-topic-hero-copy p {
    max-width: 620px;

    font-size: 18px;

    line-height: 1.8;
}

.hk-topic-hero-art {
    position: relative;

    height: 100%;
}

.hk-topic-hero-art img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.hk-eyebrow {
    display: inline-flex;

    padding: 8px 14px;

    border-radius: 999px;

    background: rgba(23,114,51,.08);

    color: #177233;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}

@media (max-width: 900px) {

    .hk-topic-hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hk-topic-hero-art {
        order: -1;
    }

    .hk-topic-hero-art img {
        aspect-ratio: 16/10;
    }

    .hk-topic-hero-copy h1 {
        font-size: 42px;
    }
}
/* Full-width illustrated topic hero */
.hk-topic-hero-card {
    min-height: 700px;
    grid-template-columns: 1fr;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(253, 252, 248, 0.98) 0%,
            rgba(253, 252, 248, 0.92) 34%,
            rgba(253, 252, 248, 0.52) 58%,
            rgba(253, 252, 248, 0.08) 100%
        ),
        var(--hk-topic-hero-image),
        linear-gradient(135deg, #fdfcf8 0%, #f7f4ec 100%);

    background-size: contain;
background-position: bottom right;
    background-repeat: no-repeat;
    background-position: right -40px bottom;
}

.hk-topic-hero-copy {
    max-width: 620px;
}

@media (max-width: 760px) {
    .hk-topic-hero-card {
        min-height: 500px;

        background:
            linear-gradient(
                180deg,
                rgba(253, 252, 248, 0.98) 0%,
                rgba(253, 252, 248, 0.90) 45%,
                rgba(253, 252, 248, 0.25) 100%
            ),
            var(--hk-topic-hero-image),
            linear-gradient(135deg, #fdfcf8 0%, #f7f4ec 100%);

        background-position: center bottom;
    }
}
/* ==========================================================
   TOPIC NAVIGATION
   ========================================================== */

.hk-topic-nav-wrap {
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.hk-topic-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e6edf2;

    border-radius: 24px;

    box-shadow:
        0 14px 40px rgba(15,23,42,.08);
}

.hk-topic-nav-label {
    color: #64748b;

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .08em;

    margin-right: 10px;
}

.hk-topic-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 16px;

    border-radius: 999px;

    background: #f8fafc;

    color: #172033;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition: all .2s ease;
}

.hk-topic-nav-link:hover {
    background: #177233;
    color: #ffffff;
}

@media (max-width: 768px) {

    .hk-topic-nav-wrap {
        margin-top: -22px;
    }

    .hk-topic-nav {
        padding: 14px;
    }

}
/* ==========================================================
   TOPIC NAV — PREMIUM MOCKUP STYLE
   ========================================================== */

.hk-topic-nav-wrap {
    margin-top: -92px;
    margin-bottom: 56px;
    position: relative;
    z-index: 8;
}

.hk-topic-nav {
    display: flex;
    align-items: center;
    gap: 0;

    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 18px;

    min-height: 88px;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 228, 234, 0.9);
    border-radius: 24px;

    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(14px);
}

.hk-topic-nav-label {
    flex: 0 0 auto;
    margin: 0 22px 0 0;
    padding: 0 22px 0 4px;

    color: #172033;
    font-size: 15px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;

    border-right: 1px solid #e5edf3;
}

.hk-topic-nav-link {
    position: relative;

    flex: 1;
    min-height: 88px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 0;
    background: transparent;

    color: #334155;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.hk-topic-nav-link + .hk-topic-nav-link {
    border-left: 1px solid #e5edf3;
}

.hk-topic-nav-link:hover {
    background: transparent;
    color: #177233;
}

.hk-topic-nav-link:first-of-type {
    color: #177233;
}

.hk-topic-nav-link:first-of-type::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;

    height: 3px;
    border-radius: 999px;
    background: #177233;
}

@media (max-width: 768px) {
    .hk-topic-nav-wrap {
        margin-top: -28px;
    }

    .hk-topic-nav {
        overflow-x: auto;
        justify-content: flex-start;
        min-height: 72px;
        padding: 0 12px;
        border-radius: 20px;
    }

    .hk-topic-nav-label {
        position: sticky;
        left: 0;
        z-index: 2;
        background: rgba(255,255,255,.96);
        min-height: 72px;
        display: inline-flex;
        align-items: center;
    }

    .hk-topic-nav-link {
        flex: 0 0 auto;
        min-height: 72px;
        white-space: nowrap;
    }
}
/* ==========================================================
   TOPIC CONTENT SECTIONS
   ========================================================== */

.hk-topic-section {
    padding: 46px 0;
}

.hk-topic-section:nth-of-type(even) {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.hk-topic-section .hk-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.hk-topic-section .hk-section-head h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hk-topic-section .hk-section-head p {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(23,114,51,.08);
    color: #177233;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    padding-left: 18px;
}



.hk-topic-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hk-topic-guide-card {
    overflow: hidden;
    border: 1px solid #dbe4ea;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.hk-topic-guide-card:hover {
    transform: translateY(-5px);
    border-color: rgba(23, 114, 51, .25);
    box-shadow: 0 26px 70px rgba(15, 23, 42, .11);
}

.hk-topic-guide-card a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hk-topic-guide-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.hk-topic-guide-body {
    padding: 22px;
}

.hk-topic-guide-body h3 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 20px;
    line-height: 1.25;
}

.hk-topic-guide-body p {
    margin: 0;
    color: #5f6f86;
    font-size: 14px;
    line-height: 1.65;
}

.hk-topic-guide-body .hk-guide-link {
    display: inline-flex;
    margin-top: 18px;
    color: #177233;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .hk-topic-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hk-topic-section .hk-section-head {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hk-topic-section {
        padding: 36px 0;
    }

    .hk-topic-guides-grid {
        grid-template-columns: 1fr;
    }

    .hk-topic-guide-image img {
        height: 180px;
    }

    .hk-topic-guide-body {
        padding: 20px;
    }
}
/* Premium article cards */
.hk-topic-guide-card {
    min-height: 100%;
}

.hk-topic-guide-card a {
    display: flex;
    flex-direction: column;
}

.hk-topic-guide-image {
    background: #f3f7f5;
}

.hk-topic-guide-image img {
    height: 210px;
}

.hk-topic-guide-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.hk-topic-card-type {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(23, 114, 51, .08);
    color: #177233;
    font-size: 12px;
    font-weight: 800;
}

.hk-topic-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 22px;
    color: #64748b;
    font-size: 13px;
}

.hk-topic-card-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #f8fafc;
    color: #177233;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease;
}

.hk-topic-guide-card:hover .hk-topic-card-cue {
    transform: translateX(3px) translateY(-3px);
    background: rgba(23, 114, 51, .1);
}
/* Card proportion polish: 60% image / 40% content */
.hk-topic-guide-card {
    min-height: 430px;
}

.hk-topic-guide-card a {
    min-height: 430px;
}

.hk-topic-guide-image {
    flex: 0 0 58%;
}

.hk-topic-guide-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hk-topic-guide-body {
    flex: 1;
    min-height: 180px;
}

@media (max-width: 640px) {
    .hk-topic-guide-card,
    .hk-topic-guide-card a {
        min-height: 400px;
    }

    .hk-topic-guide-image img {
        height: 230px;
    }
}
/* ==========================================================
   FINAL TOPIC SECTION + CARD POLISH
   ========================================================== */

.hk-topic-section {
    padding: 64px 0;
}

.hk-topic-section .hk-shell {
    max-width: 1240px;
    padding-left: clamp(20px, 4vw, 42px);
    padding-right: clamp(20px, 4vw, 42px);
}

.hk-topic-section .hk-section-head {
    align-items: flex-start;
    margin-bottom: 34px;
}

.hk-topic-section .hk-section-head h2 {
    position: relative;
    padding-left: 18px;
    font-size: clamp(36px, 4.5vw, 54px);
}

.hk-topic-section .hk-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 38px;
    border-radius: 999px;
    background: #177233;
}

.hk-topic-section .hk-section-head p {
    max-width: 520px;
    padding-top: 8px;
    font-size: 15px;
}

.hk-topic-guides-grid {
    gap: 28px;
}

.hk-topic-guide-card,
.hk-topic-guide-card a {
    min-height: 500px;
}

.hk-topic-guide-image {
    flex: 0 0 60%;
}

.hk-topic-guide-image img {
    height: 300px;
}

.hk-topic-guide-body {
    min-height: 200px;
    padding: 24px;
}

.hk-topic-guide-body h3 {
    font-size: 21px;
}

@media (max-width: 640px) {
    .hk-topic-section {
        padding: 46px 0;
    }

    .hk-topic-guide-card,
    .hk-topic-guide-card a {
        min-height: 440px;
    }

    .hk-topic-guide-image img {
        height: 245px;
    }
}

/* Fix topic card width and section balance */
.hk-topic-section .hk-shell {
    max-width: 1360px;
}

.hk-topic-guides-grid {
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 32px;
}

.hk-topic-guide-card,
.hk-topic-guide-card a {
    min-height: 520px;
}

.hk-topic-guide-image img {
    height: 285px;
}

@media (max-width: 1100px) {
    .hk-topic-guides-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    .hk-topic-guides-grid {
        grid-template-columns: 1fr;
    }
}
/* Full-width topic content rail */
.hk-topic-section .hk-shell {
    width: min(100% - 64px, 1440px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.hk-topic-guides-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.hk-topic-guide-card,
.hk-topic-guide-card a {
    min-height: 540px;
}

.hk-topic-guide-image img {
    height: 310px;
}

@media (max-width: 900px) {
    .hk-topic-section .hk-shell {
        width: min(100% - 36px, 720px);
    }
}

@media (max-width: 640px) {
    .hk-topic-section .hk-shell {
        width: min(100% - 28px, 420px);
    }

    .hk-topic-guide-card,
    .hk-topic-guide-card a {
        min-height: 460px;
    }

    .hk-topic-guide-image img {
        height: 245px;
    }
}
.hk-topic-section-pill {
    display: inline-flex;
    align-items: center;

    padding: 9px 15px;

    border-radius: 999px;

    background: rgba(23, 114, 51, .08);

    color: #177233 !important;

    font-size: 13px !important;
    font-weight: 800;
    line-height: 1.2 !important;
}
/* ==========================================================
   MOBILE TOPIC NAV
   ========================================================== */

.hk-topic-mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {

    .hk-topic-mobile-nav-toggle {

        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: 58px;

        margin-bottom: 12px;

        border: 1px solid #dbe4ea;
        border-radius: 18px;

        background: #ffffff;

        color: #172033;
        font-size: 15px;
        font-weight: 700;

        box-shadow: 0 10px 24px rgba(15,23,42,.06);

        cursor: pointer;
    }

    .hk-topic-nav {
        display: none;
    }

    .hk-topic-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        min-height: auto;

        padding: 10px;
    }

    .hk-topic-nav-label {
        display: none;
    }

    .hk-topic-nav-link {

        min-height: 50px;

        justify-content: flex-start;

        border-left: 0 !important;
        border-bottom: 1px solid #eef3f6;

        padding: 0 16px;
    }

    .hk-topic-nav-link:last-child {
        border-bottom: 0;
    }

}

/* ==========================================================
   MOBILE TOPIC CARD FIX
   ========================================================== */

@media (max-width: 640px) {

    .hk-topic-guides-grid {
        grid-template-columns: 1fr !important;
        gap: 22px;
    }

    .hk-topic-guide-card,
    .hk-topic-guide-card a {
        width: 100%;
        min-height: 0;
    }

    .hk-topic-guide-image {
        flex: none;
    }

    .hk-topic-guide-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .hk-topic-guide-body {
        min-height: auto;
        padding: 20px;
    }

    .hk-topic-guide-body h3 {
        font-size: 20px;
        line-height: 1.25;
    }

    .hk-topic-guide-body p {
        font-size: 14px;
        line-height: 1.65;
    }

    .hk-topic-card-meta {
        padding-top: 18px;
    }
}
/* ==========================================================
   MOBILE HERO + SWIPE CARD RAILS
   ========================================================== */

@media (max-width: 640px) {

    .hk-topic-hero {
        padding: 18px 0 30px;
    }

    .hk-topic-hero-card {
        min-height: 560px;

        background:
            linear-gradient(
                180deg,
                rgba(253, 252, 248, 0.98) 0%,
                rgba(253, 252, 248, 0.94) 48%,
                rgba(253, 252, 248, 0.72) 100%
            ),
            var(--hk-topic-hero-image),
            linear-gradient(135deg, #fdfcf8 0%, #f7f4ec 100%);

        background-size: auto 72%;
background-position: right -34px bottom;
        background-repeat: no-repeat;

        border-radius: 28px;
    }

    .hk-topic-hero-copy {
        padding: 44px 22px 26px;
        max-width: 100%;
    }

    .hk-topic-hero-copy h1 {
        max-width: 92%;
        font-size: 34px;
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .hk-topic-hero-copy p {
        max-width: 86%;
        font-size: 14px;
        line-height: 1.7;
    }

    .hk-topic-hero-actions {
        gap: 10px;
        margin-top: 22px;
    }

    .hk-topic-button {
        min-height: 44px;
        padding: 0 16px;
        font-size: 12px;
    }

    .hk-topic-guides-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 16px;

        overflow-x: auto;
        padding: 4px 4px 18px;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .hk-topic-guide-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
        min-height: 420px;
    }

    .hk-topic-guide-card a {
        min-height: 420px;
    }

    .hk-topic-guide-image img {
        height: 210px;
    }

    .hk-topic-guides-grid::-webkit-scrollbar {
        display: none;
    }
}
/* Final mobile hero spacing fix */
@media (max-width: 640px) {

    .hk-topic-hero {
        padding-top: 0;
        padding-bottom: 24px;
    }

    .hk-topic-hero-card {
        min-height: 500px;
    }

    .hk-topic-hero-copy {
        padding-top: 26px;
    }
}

/* Premium Tool Card */
.hk-topic-tool-card {
    grid-column: 1 / -1;
    border: 1px solid rgba(23,114,51,.18);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(23,114,51,.10), transparent 34%),
        #ffffff;
    box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.hk-topic-tool-card a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 32px;
    color: inherit;
    text-decoration: none;
}

.hk-topic-tool-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(23,114,51,.10);
    font-size: 32px;
}

.hk-topic-tool-content h3 {
    margin: 8px 0 10px;
    color: #172033;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.hk-topic-tool-content p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.hk-topic-tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hk-topic-tool-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f4f8f6;
    color: #177233;
    font-size: 13px;
    font-weight: 800;
}

.hk-topic-tool-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: #177233;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .hk-topic-tool-card a {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .hk-topic-tool-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        font-size: 26px;
    }

    .hk-topic-tool-action {
        width: 100%;
    }
}
/* Tool section: desktop rail + mobile swipe */
.hk-topic-tools-section .hk-topic-guides-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 4px 22px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hk-topic-tools-section .hk-topic-tool-card {
    flex: 0 0 min(100%, 980px);
    scroll-snap-align: start;
}

.hk-topic-tools-section .hk-topic-guides-grid::-webkit-scrollbar {
    display: none;
}

.hk-topic-tools-section .hk-topic-tool-card a {
    min-height: 260px;
}

@media (max-width: 760px) {
    .hk-topic-tools-section .hk-topic-tool-card {
        flex: 0 0 88%;
    }

    .hk-topic-tools-section .hk-topic-tool-card a {
        min-height: 0;
        gap: 16px;
    }

    .hk-topic-tool-action {
        margin-top: 8px;
        align-self: stretch;
        width: 100%;
    }
}

/* Final tool card polish */
.hk-topic-tool-card {
    position: relative;
    overflow: hidden;
}

.hk-topic-tool-card::after {
    content: "";
    position: absolute;
    right: 40px;
    bottom: -44px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(23, 114, 51, .08);
    pointer-events: none;
}

.hk-topic-tool-content p:empty {
    display: none;
}

.hk-topic-tool-content {
    max-width: 640px;
}

.hk-topic-tool-card a {
    position: relative;
    z-index: 1;
}

/* Mobile tool alignment */
@media (max-width: 760px) {
    .hk-topic-tools-section .hk-topic-guides-grid {
        align-items: stretch;
    }

    .hk-topic-tools-section .hk-topic-tool-card {
        flex: 0 0 86%;
    }

    .hk-topic-tool-card a {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hk-topic-tool-action {
        display: flex;
        align-self: stretch;
        width: 100%;
        margin-top: 18px;
    }
}
/* ==========================================================
   FINAL TOOL CARD CTA FIX
   ========================================================== */

.hk-topic-tool-card {
    min-height: 0;
}

.hk-topic-tools-section .hk-topic-tool-card a {
    align-items: center;
}

.hk-topic-tool-action {
    position: relative;
    z-index: 2;
}

@media (max-width: 760px) {

    .hk-topic-tools-section .hk-topic-tool-card {
        flex: 0 0 88%;
    }

    .hk-topic-tools-section .hk-topic-tool-card a {
        min-height: 360px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
        padding: 22px;
    }

    .hk-topic-tool-content {
        max-width: none;
    }

    .hk-topic-tool-action {
        margin-top: auto;
        min-height: 48px;
        width: 100%;
        align-self: stretch;
    }
}

/* ==========================================================
   FINAL PREMIUM TOOL + LOAD MORE POLISH
   ========================================================== */

/* reduce section gap */
.hk-topic-section {
    padding: 48px 0;
}

.hk-topic-section + .hk-topic-section {
    border-top: 1px solid rgba(219, 228, 234, 0.65);
}

/* premium load more */
.hk-topic-section-load-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.hk-topic-section-load-more {
    min-height: 52px;
    padding: 0 30px;
    border: 1px solid rgba(23, 114, 51, 0.45);
    border-radius: 999px;
    background: #ffffff;
    color: #177233;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.hk-topic-section-load-more:hover {
    background: #177233;
    color: #ffffff;
}

.hk-topic-section-load-more:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* better tool card */
.hk-topic-tool-card {
    background:
        radial-gradient(circle at 88% 76%, rgba(23, 114, 51, 0.11) 0 120px, transparent 121px),
        radial-gradient(circle at 95% 15%, rgba(23, 114, 51, 0.08) 0 90px, transparent 91px),
        linear-gradient(135deg, #ffffff 0%, #f8fcfa 100%);
}

.hk-topic-tool-card::before {
    content: "";
    position: absolute;
    right: 34px;
    top: 34px;
    width: 70px;
    height: 42px;
    background-image: radial-gradient(rgba(23,114,51,.22) 2px, transparent 2px);
    background-size: 14px 14px;
    opacity: .45;
}

/* mobile CTA inside card */
@media (max-width: 760px) {
    .hk-topic-section {
        padding: 38px 0;
    }

    .hk-topic-tool-action {
        width: auto;
        max-width: 100%;
        align-self: stretch;
        box-sizing: border-box;
        margin: 16px 0 0;
        border-radius: 18px;
    }

    .hk-topic-tools-section .hk-topic-tool-card a {
        padding: 22px;
        overflow: hidden;
    }
}
/* ==========================================================
   TOPIC PAGE FOOTER GAP FIX
   ========================================================== */

.hk-topic-page {
    padding-bottom: 0;
}

.hk-topic-page .hk-topic-section:last-of-type {
    padding-bottom: 56px;
}

@media (max-width: 760px) {
    .hk-topic-page .hk-topic-section:last-of-type {
        padding-bottom: 36px;
    }
}

/* ==========================================================
   TOPIC / LANGUAGE HERO HEADER GAP FIX
========================================================== */

.hk-topic-page .hk-topic-hero,
.hk-language-page .hk-topic-hero {
    padding-top: 0;
}

.hk-topic-page .hk-topic-hero .hk-shell,
.hk-language-page .hk-topic-hero .hk-shell {
    width: 100%;
}

.hk-topic-page .hk-topic-hero-card,
.hk-language-page .hk-topic-hero-card {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ==========================================================
   QUICK MOBILE HERO GAP FIX — TOPIC + LANGUAGE ONLY
========================================================== */

@media (max-width: 640px) {
    .hk-topic-page .hk-topic-hero,
    .hk-language-page .hk-topic-hero {
        padding-top: 0 !important;
        padding-bottom: 12px !important;
    }

    .hk-topic-page .hk-topic-hero-card,
    .hk-language-page .hk-topic-hero-card {
        min-height: 390px !important;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }

    .hk-topic-page .hk-topic-hero-copy,
    .hk-language-page .hk-topic-hero-copy {
        padding-top: 16px !important;
    }
}