/* =============================================================
   hub_page.css â€” Affina Hub Page
   ============================================================= */

@font-face {
    font-family: 'Familjen Grotesk';
    src: url("../fonts/FamiljenGrotesk-VariableFont_wght.ttf");
}

@font-face {
    font-family: 'Roboto';
    src: url("../fonts/Roboto-VariableFont_wdth\,wght.ttf");
}

@font-face {
    font-family: 'Playfair Display';
    src: url("../fonts/PlayfairDisplay-VariableFont_wght.ttf");
}

html,
body {
    overflow-x: hidden;
}

.hub-wrapper {
    padding-bottom: clamp(48px, 7.5vw, 96px);
}

/* =============================================================
   1. HERO BANNER
   ============================================================= */
.hub-hero {
    background: linear-gradient(3deg, #FF97EB -41.2%, #FEC7F4 -11.65%, #FFF 91.26%);
    padding: clamp(64px, 12.5vw, 160px) clamp(16px, 6vw, 120px) clamp(48px, 7.5vw, 96px) clamp(16px, 6vw, 120px);
}

.hub-hero-title {
    font-family: "Familjen Grotesk", sans-serif;
    font-size: clamp(24px, 3.75vw, 48px);
    font-weight: 700;
    color: #000;
    margin: 0;
}

.hub-hero-title span {
    background: var(--main-gradient, linear-gradient(90deg, #FF51FF 0.34%, #F616B9 63.37%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
    font-family: "Playfair Display";
    font-weight: 700;
}

.hub-hero-desc {
    color: rgba(0, 0, 0, 0.50);
    font-family: Roboto;
    font-size: clamp(12px, 1.406vw, 18px);
    font-weight: 500;
    margin: 0;
}

.hub-hero-cards {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.hub-hero-cards::-webkit-scrollbar {
    display: none;
}

.hub-hero-card {
    display: flex;
    width: clamp(220px, 27.5vw, 352px);
    padding: 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    flex-shrink: 0;
    border-radius: 24px;
    border: 0.8px solid #F3F1F7;
    background: #FFF;
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    min-height: clamp(160px, 18.75vw, 240px);
}

.hub-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.65) 100%);
}

.hub-hero-card-badge {
    position: absolute;
    padding: var(--spacing-xs, 4px) 10px;
    top: 10px;
    left: 10px;
    border-radius: var(--radius-full, 9999px);
    background: var(--Colors-Secondary-950, #55004F);
    color: var(--Colors-Secondary-25, #FFFAFE);
    font-family: Roboto, sans-serif;
    font-size: var(--Font-size-text-sm, 14px);
    font-weight: 500;
}

.hub-hero-card-title {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: -webkit-box;
    width: clamp(200px, 85%, 302px);
    -webkit-box-orient: vertical;
    line-clamp: 2;
    align-self: stretch;
    overflow: hidden;
    color: #FCFCFD;
    text-overflow: ellipsis;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: clamp(18px, 2.187vw, 28px);
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    z-index: 2;
    margin: 0;
}

/* =============================================================
   2. Há»ŒC VIá»†N Báº¢O HIá»‚M
   ============================================================= */
.hub-academy {
    padding: clamp(48px, 10vw, 128px) clamp(16px, 11vw, 141px) 0 clamp(16px, 11vw, 141px);
    gap: 48px;
}

.hub-section-title {
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1C1A20;
    margin: 0;
    text-align: center;
}

.hub-section-desc {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    margin: 0;
}

.hub-search-bar {
    display: flex;
    align-items: center;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #FFF;
    max-width: 672px;
    height: 61px;
    width: 100%;
    padding: 16px 16px 16px 16px;
    gap: 16px;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

.hub-search-bar input {
    flex: 1;
    min-width: none;
    width: 100%;
    border: none;
    outline: none;
    text-overflow: ellipsis;
}

.hub-search-bar i {
    color: rgba(0, 0, 0, 0.35);
    font-size: 16px;
    flex-shrink: 0;
}

.hub-academy-card-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 24px;
    align-self: stretch;
    width: 100%;
}

@media (max-width: 1199.98px) {
    .hub-academy-card-wrapper .hub-academy-card {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .hub-academy-card-wrapper {
        grid-template-columns: 1fr;
    }
}

.hub-academy-card {
    display: flex;
    height: 201.984px;
    padding: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    border-radius: clamp(12px, 1.25vw, 16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #FFF;
}

.hub-academy-card-title {
    color: #000;
    text-align: center;
    font-family: "Familjen Grotesk";
    font-size: 21.333px;
    font-weight: 700;
    margin: 0;
}

.hub-academy-card-desc {
    color: rgba(0, 0, 0, 0.50);
    text-align: center;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.hub-academy-card-icon {
    height: 36px;
    width: 40px;
}

/* =============================================================
   3. LIFESTYLE & Sá»NG KHá»ŽE
   ============================================================= */
.hub-lifestyle {
    padding: clamp(48px, 10vw, 128px) clamp(24px, 5vw, 64px) 0;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hub-filter-pills {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hub-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs, 4px) 10px;
    font-family: Roboto, sans-serif;
    font-size: clamp(12px, 1.094vw, 14px);
    font-weight: 500;
    cursor: pointer;
    color: var(--colors-text-text-primary-900, #1C1A20);
    border-radius: var(--radius-full, 9999px);
    background: var(--colors-gray-light-mode-100, #F3F1F7);
    border: none;
    outline: none;
    text-decoration: none;
}

.hub-pill.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs, 4px) 10px;
    font-family: Roboto, sans-serif;
    font-size: clamp(12px, 1.094vw, 14px);
    font-weight: 500;
    cursor: pointer;
    color: var(--Colors-Secondary-25, #FFFAFE);
    border-radius: var(--radius-full, 9999px);
    background: var(--Colors-Secondary-950, #55004F);
    border: none;
    outline: none;
    text-decoration: none;
}

.hub-article-featured {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s;
    position: relative;
}

.hub-article-featured:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.hub-article-featured-img {
    width: 100%;
    height: clamp(160px, 21.875vw, 280px);
    object-fit: cover;
    display: block;
    background: #e8e8e8;
}

.hub-article-featured-body {
    padding: clamp(14px, 1.5625vw, 20px);
    gap: 8px;
}

.hub-article-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: clamp(10px, 0.859vw, 11px);
    font-weight: 600;
    font-family: Roboto, sans-serif;
    z-index: 1;
}

.hub-article-title {
    font-family: "Familjen Grotesk", sans-serif;
    font-size: clamp(14px, 1.406vw, 18px);
    font-weight: 700;
    color: #1C1A20;
    margin: 0;
    line-height: 1.4;
}


.hub-article-sm {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.15s;
    position: relative;
}

.hub-article-sm:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hub-article-sm-img {
    width: 100%;
    height: clamp(100px, 12.5vw, 160px);
    object-fit: cover;
    display: block;
    background: #e8e8e8;
}

.hub-article-sm-body {
    padding: clamp(10px, 1.094vw, 14px);
    gap: 6px;
}

.hub-article-sm-title {
    font-family: "Familjen Grotesk", sans-serif;
    font-size: clamp(12px, 1.172vw, 15px);
    font-weight: 700;
    color: #1C1A20;
    margin: 0;
    line-height: 1.4;
}

.hub-img-placeholder {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.hub-img-placeholder i {
    font-size: clamp(24px, 3.125vw, 40px);
}

.hub-article-badge[data-category="Dinh dÆ°á»¡ng"] {
    background: #F3FEE7;
    color: #85E13A;
}

.hub-article-badge[data-category="Mental Health"] {
    background: #F3FEE7;
    color: #85E13A;
}

.hub-article-badge[data-category="Mental health"] {
    background: #F3FEE7;
    color: #85E13A;
}

.hub-article-badge[data-category="TÃ i chÃ­nh"] {
    background: #F9F5FF;
    color: #9857F5;
}

.hub-article-badge[data-category="Váº­n Ä‘á»™ng"] {
    background: #EFF4FF;
    color: #528BFF;
}

.hub-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #55004F;
    color: #FFFAFE;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-load-more-btn:hover {
    color: #FFFAFE;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(85, 0, 79, 0.18);
}

[data-hub-lifestyle-root].is-loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* =============================================================
   4. Sá»° KIá»†N & Káº¾T Ná»I
   ============================================================= */
.hub-events {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: clamp(48px, 10vw, 128px) clamp(16px, 2.5vw, 32px) 0;
    gap: clamp(24px, 5vw, 64px);
}

.hub-event-card {
    border-radius: 16px;
    border: 1px solid #FFF;
    background: var(--Colors-Secondary-25, #FFFAFE);
    box-shadow: -4px 4px 30px 0 rgba(255, 255, 255, 0.50) inset, 4px 4px 30px 0 #FFCCFF inset;
    padding: 16px;
}

.hub-event-date-box {
    border-radius: 20px;
    background: var(--Colors-Secondary-950, #55004F);
    color: #FFF;
    width: 80px;
    height: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    gap: 4px;
}

.hub-event-date-box span {
    color: #FFF;
    font-family: Roboto;
    font-size: 12px;
    font-weight: 400;
}

.hub-event-title {
    color: #000;
    font-family: "Familjen Grotesk";
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.hub-event-desc {
    color: rgba(0, 0, 0, 0.50);
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    margin-top: clamp(3px, 0.4vw, 5px);
    margin-bottom: 0;
}

.hub-event-btn {
    display: flex;
    padding: clamp(10px, 1.25vw, 16px) clamp(14px, 1.719vw, 22px);
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 9999px;
    border: 1px solid #D1CDD8;
    background: #55004F;
    box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.18) inset,
        0 -2px 0 0 rgba(16, 24, 40, 0.05) inset,
        0 1px 2px 0 rgba(16, 24, 40, 0.05);
    color: #FFFAFE;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.events-wrapper {
    gap: 32px;
}


.hub-challenge-card {
    display: flex;
    padding: clamp(12px, 1.25vw, 16px);
    flex: 1 0 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.hub-challenge-title {
    color: #000;
    font-family: "Familjen Grotesk";
    font-size: 26.667px;
    font-weight: 700;
    margin: 0;
}

.hub-challenge-participants {
    color: #FF6DFA;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.hub-progress-bar {
    height: 12px;
    border-radius: 9999px;
    background: #EDE9FE;
    width: 100%;
}

.hub-progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #FF51FF 0.34%, #F616B9 63.37%);
}

.hub-progress-label {
    color: rgba(0, 0, 0, 0.50);
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.hub-challenge-btn {
    padding: clamp(8px, 0.937vw, 12px) clamp(16px, 1.875vw, 24px);
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #FFF;
    color: #000;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 768px) {

    .hub-challenge-btn,
    .hub-event-btn {
        width: 100%;
    }
}

/* =============================================================
   5. AFFINA STORIES
   ============================================================= */
.hub-stories {
    padding: clamp(32px, 10vw, 128px) 0 0 0;
    gap: clamp(16px, 5vw, 64px);
}


.hub-story-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #FFF;
    padding: clamp(16px, 1.875vw, 24px);
    gap: clamp(10px, 1.25vw, 16px);
    box-sizing: border-box;
    height: 100%;
}

.hub-story-quote {
    color: #000;
    font-family: Roboto;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    flex: 1;
}

.hub-story-name {
    color: #000;
    font-family: Roboto;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.hub-story-role {
    color: rgba(0, 0, 0, 0.50);
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

.hub-stories .row.g-3 {
    padding-right: 3rem;
}

@media (max-width: 767.98px) {
    .hub-stories .row.g-3 {
        padding-right: 0;
        justify-content: center;
    }

    .g-3 {
        --bs-gutter-y: 2rem;
    }
}

/* Hub refresh overrides */
.hub-refresh {
    background: linear-gradient(180deg, #eaf8ff 0%, #fff 28%, #fff6ff 54%, #fff 72%);
}

.hub-refresh .affina-container {
    width: min(1050px, calc(100% - 32px));
    max-width: none;
}

.hub-refresh .hub-feature {
    padding: clamp(48px, 7vw, 86px) 0 clamp(48px, 7vw, 80px);
}

.hub-refresh .hub-feature-title {
    margin: 0 0 36px;
    color: #072d41;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.hub-refresh .hub-feature-card {
    display: block;
    overflow: visible;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hub-refresh .hub-feature-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(79, 148, 241, 0.14);
}

.hub-refresh .hub-academy {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 36px;
    gap: 28px;
}

.hub-refresh .hub-section-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.hub-refresh .hub-section-title {
    color: #072d41;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.hub-refresh .hub-section-title .text-gradient,
.hub-refresh .hub-section-title span {
    background: linear-gradient(90deg, #ff51ff 0.34%, #f616b9 63.37%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-refresh .hub-section-desc {
    color: #70717a;
    font-size: 16px;
    line-height: 1.45;
}

.hub-refresh .hub-search-bar {
    max-width: none;
    width: 100%;
    height: 58px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(7, 45, 65, 0.04);
}

.hub-refresh .hub-academy-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.hub-refresh .hub-academy-image-card {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: #e8f4ff;
    box-shadow: 0 10px 24px rgba(79, 148, 241, 0.08);
}

.hub-refresh .hub-academy-image-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.hub-refresh .hub-academy-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61, 122, 161, 0.02) 42%, rgba(61, 122, 161, 0.58) 100%);
}

.hub-refresh .hub-academy-image-card span,
.hub-refresh .hub-academy-image-card strong {
    position: absolute;
    z-index: 1;
    left: 18px;
}

.hub-refresh .hub-academy-image-card span {
    top: 18px;
    padding: 7px 12px;
    border-radius: 14px;
    background: #fff;
    color: #ff51ff;
    font-size: 13px;
    font-weight: 700;
}

.hub-refresh .hub-academy-image-card strong {
    right: 18px;
    bottom: 20px;
    color: #fff;
    font-size: clamp(22px, 2.5vw, 28px);
    line-height: 1.1;
}

.hub-refresh .hub-lifestyle {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start !important;
    width: min(1050px, calc(100% - 32px));
    margin: 36px auto 0;
    padding: 36px 0 0;
    row-gap: 40px;
    column-gap: 32px;
}

.hub-refresh .hub-lifestyle > .d-flex:first-child {
    align-items: flex-start !important;
    text-align: left;
}

.hub-refresh .hub-lifestyle > .hub-filter-pills {
    grid-column: 2;
    align-self: start;
    justify-self: end;
    margin: 0;
}

.hub-refresh .hub-lifestyle > .hub-lifestyle-panels,
.hub-refresh .hub-lifestyle > [data-hub-load-more-wrap] {
    grid-column: 1 / -1;
}

.hub-refresh .hub-filter-dropdown {
    position: relative;
    z-index: 4;
    display: block;
}

.hub-refresh .hub-filter-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 96px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #e2e5ec;
    border-radius: 999px;
    background: #fff;
    color: #5f5c66;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    list-style: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(7, 45, 65, 0.08);
}

.hub-refresh .hub-filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.hub-refresh .hub-filter-dropdown summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.hub-refresh .hub-filter-dropdown[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.hub-refresh .hub-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    min-width: 180px;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid #edf1f7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(7, 45, 65, 0.12);
}

.hub-refresh .hub-filter-menu .hub-pill {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    background: transparent;
    color: #5f5c66;
    box-shadow: none;
}

.hub-refresh .hub-filter-menu .hub-pill.active {
    background: #f7f1ff;
    color: #650065;
}

.hub-refresh .hub-lifestyle-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.hub-refresh .hub-lifestyle-item {
    display: grid;
    grid-template-columns: 326px minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    width: 100%;
    color: inherit;
}

.hub-refresh .hub-lifestyle-thumb {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 326 / 201;
    border-radius: 12px;
    background: #e8f4ff;
}

.hub-refresh .hub-lifestyle-thumb .hub-article-featured-img,
.hub-refresh .hub-lifestyle-thumb .hub-article-sm-img,
.hub-refresh .hub-lifestyle-thumb .hub-img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: cover;
}

.hub-refresh .hub-lifestyle-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.hub-refresh .hub-lifestyle-copy .hub-article-title,
.hub-refresh .hub-lifestyle-copy .hub-article-sm-title {
    margin: 0;
    color: #3a373f;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: clamp(24px, 2.25vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
}

.hub-refresh .hub-article-excerpt {
    margin: -4px 0 14px;
    color: #8b8891;
    font-size: clamp(17px, 1.7vw, 20px);
    font-weight: 500;
    line-height: 1.35;
}

.hub-refresh .hub-lifestyle-copy .hub-article-badge {
    position: static;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #ff51ff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: normal;
    box-shadow: 0 10px 18px rgba(79, 148, 241, 0.12), inset 0 -6px 10px rgba(191, 207, 246, 0.32);
}

@media (max-width: 767.98px) {
    .hub-refresh .hub-lifestyle {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .hub-refresh .hub-lifestyle > .hub-filter-pills {
        grid-column: 1;
        justify-self: start;
    }

    .hub-refresh .hub-lifestyle-list {
        gap: 28px;
    }

    .hub-refresh .hub-lifestyle-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hub-refresh .hub-lifestyle-copy .hub-article-title,
    .hub-refresh .hub-lifestyle-copy .hub-article-sm-title {
        font-size: 24px;
    }
}

.hub-refresh .hub-stories-carousel {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(56px, 7vw, 80px) 0;
    align-items: flex-start !important;
    gap: 28px;
}

.hub-refresh .hub-stories-carousel .hub-section-head,
.hub-refresh .hub-stories-carousel .hub-section-title {
    text-align: left;
}

.hub-refresh .hub-stories-carousel .home-testimonial-strip {
    display: flex;
    width: 100%;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 0 18px;
    margin-inline: 0;
    scrollbar-width: none;
}

.hub-refresh .hub-stories-carousel .home-testimonial-strip::-webkit-scrollbar {
    display: none;
}

.hub-refresh .hub-stories-carousel .home-testimonial-card {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    flex: 0 0 min(720px, 82vw);
    gap: 24px;
    align-items: stretch;
    min-height: 320px;
    padding: 0 22px 0 0;
    border: 1px solid #ecf6ff;
    border-radius: 32px;
    background: linear-gradient(180deg, #fff 0%, #dff3ff 100%);
    box-shadow: 0 10px 18px rgba(79, 148, 241, 0.08);
    scroll-snap-align: center;
}

.hub-refresh .hub-stories-carousel .home-testimonial-media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 28px;
}

.hub-refresh .hub-stories-carousel .home-testimonial-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-refresh .hub-stories-carousel .home-testimonial-logo {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    padding: 10px;
    border-radius: 15px;
    background: #fff;
}

.hub-refresh .hub-stories-carousel .home-testimonial-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hub-refresh .hub-stories-carousel .home-testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 0;
}

.hub-refresh .hub-stories-carousel .stars {
    color: #ffc642;
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
}

.hub-refresh .hub-stories-carousel .home-testimonial-title {
    margin: 0 0 12px;
    color: #171717;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.hub-refresh .hub-stories-carousel .home-testimonial-card p {
    margin: 0;
    color: #524d59;
    font-size: 16px;
    line-height: 1.5;
}

.hub-refresh .hub-stories-carousel .user-meta strong {
    display: block;
    color: #404040;
    font-size: 18px;
    line-height: 1.25;
}

.hub-refresh .hub-stories-carousel .user-meta span {
    display: block;
    color: #404040;
    font-size: 15px;
    line-height: 1.35;
}

.hub-refresh .hub-stories-carousel .home-testimonial-pagination {
    align-self: center;
}

@media (max-width: 991.98px) {
    .hub-refresh .hub-academy-image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .hub-refresh .hub-feature h1 {
        font-size: 40px;
    }

    .hub-refresh .hub-section-title {
        font-size: 28px;
    }

    .hub-refresh .hub-academy-image-card,
    .hub-refresh .hub-academy-image-card img {
        min-height: 220px;
    }

    .hub-refresh .hub-stories-carousel .home-testimonial-card {
        grid-template-columns: 132px minmax(0, 1fr);
        flex-basis: min(560px, 92vw);
        min-height: 280px;
    }

    .hub-refresh .hub-stories-carousel .home-testimonial-media {
        min-height: 280px;
    }
}
