/*--------------------------------------------------------------
LankaFriends Child Theme — Custom Styles
--------------------------------------------------------------*/

/* ---- Ad widget reset ---- */
.widget:has(.lf-ad) {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* ---- Brand Colors ---- */
:root {
    --lf-brand: #C24749;
    --lf-brand-light: #e85d5f;
    --lf-gradient: linear-gradient(135deg, #C24749, #e85d5f);
    --lf-shadow: rgba(194, 71, 73, 0.3);
    --lf-shadow-hover: rgba(194, 71, 73, 0.4);

}

/* =========================================
   LF Homepage
   ========================================= */

/* Remove BuddyBoss content padding on homepage */
.page-template-templateshomepage-php #content {
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#lf-homepage {
    overflow-x: hidden;
}

/* ---- Hero ---- */
.lf-hero {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 0;
}

.lf-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15, 23, 55, 0.88) 0%,
        rgba(15, 23, 55, 0.65) 45%,
        rgba(15, 23, 55, 0.15) 75%,
        transparent 100%
    );
    z-index: 1;
}

.lf-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.lf-hero__content {
    flex: 1;
    min-width: 0;
}

.lf-hero__title {
    font-size: 72px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    margin: 0 0 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.lf-hero__subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    margin: 0 0 30px;
    line-height: 1.5;
}

.lf-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--lf-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px var(--lf-shadow);
}

.lf-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--lf-shadow-hover);
    color: #fff;
}

/* Auth card */
.lf-hero__auth {
    position: relative;
    z-index: 2;
    flex: 0 0 380px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

/* Tabs */
.lf-hero__auth .lf-auth-tabs {
    border-bottom: none;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 0;
}

.lf-hero__auth .lf-auth-tab {
    color: #6b7b8d;
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    transition: all 0.2s;
}

.lf-hero__auth .lf-auth-tab[data-tab="signup"] {
    margin-right: 4px;
}

.lf-hero__auth .lf-auth-tab.active {
    color: #fff;
    background: var(--lf-gradient);
    border-bottom-color: transparent;
    box-shadow: 0 2px 8px var(--lf-shadow);
}

.lf-hero__auth .lf-auth-tab:hover:not(.active) {
    color: var(--lf-brand);
}

/* Inputs */
.lf-hero__auth .lf-auth-input {
    background: #f7f8fa;
    border: 1.5px solid #e8eaed;
    height: 48px;
    border-radius: 12px;
    font-size: 14px;
}

.lf-hero__auth .lf-auth-input:focus {
    background: #fff;
    border-color: var(--lf-brand);
    box-shadow: 0 0 0 3px rgba(194,71,73,0.1);
}

/* Button */
.lf-hero__auth .lf-auth-btn {
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    background: var(--lf-gradient);
    color: #fff;
    box-shadow: 0 4px 16px var(--lf-shadow);
}

.lf-hero__auth .lf-auth-btn:hover {
    box-shadow: 0 6px 24px var(--lf-shadow-hover);
    transform: translateY(-1px);
}

/* Extras */
.lf-hero__auth .lf-auth-extras {
    margin-top: -2px;
}

.lf-hero__auth .lf-auth-remember {
    color: #6b7b8d;
    font-size: 13px;
}

.lf-hero__auth .lf-auth-forgot {
    font-size: 13px;
}

/* Fields spacing */
.lf-hero__auth .lf-auth-field {
    margin-bottom: 14px;
}

.lf-auth-field--submit {
    margin-bottom: 0 !important;
}

.lf-hero__auth .lf-auth-tabs {
    margin-bottom: 18px;
}

.lf-hero__auth .lf-auth-form {
    margin-bottom: 0;
}

/* Search — overlapping card */
.lf-hero__search-wrap {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    transform: translateY(50%);
}

.lf-hero__search-wrap .lf-quick-search {
    background: #fff;
    border-radius: 16px;
    padding: 24px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.04);
}

/* ---- Features ---- */
.lf-features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 50px; /* extra top for overlapping search */
}

.lf-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.lf-feature {
    background: #fff;
    border-radius: 16px;
    padding: 36px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.25s, box-shadow 0.25s;
}

.lf-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

.lf-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--lf-gradient);
    color: #fff;
    font-size: 28px;
    margin: 0 auto 18px;
}

.lf-feature__title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--bb-headings-color, #122B46);
    margin: 0 0 10px;
}

.lf-feature__desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--bb-body-text-color, #6B7B8D);
    margin: 0;
}

.lf-feature__desc a {
    color: var(--lf-brand);
    text-decoration: none;
    font-weight: 500;
}

.lf-feature__desc a:hover {
    text-decoration: underline;
}

.lf-feature__btn {
    display: inline-block;
    background: var(--lf-gradient);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    transition: opacity 0.2s;
    box-shadow: 0 3px 12px var(--lf-shadow);
}

.lf-feature__btn:hover {
    opacity: 0.9;
    color: #fff !important;
    text-decoration: none !important;
}

/* ---- Intro Text ---- */
.lf-intro-text {
    max-width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.lf-intro-text p {
    max-width: 850px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--bb-body-text-color, #5A6A7B);
}

.lf-bg-light {
    background-color: #f0f2f5;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjYzVjYWQzIiBzdHJva2Utd2lkdGg9IjAuOCIgb3BhY2l0eT0iMC4zNSI+PHBhdGggZD0iTTIwIDE1YzAtMyA1LTMgNSAwcy01IDMtNSAwIi8+PGNpcmNsZSBjeD0iNjAiIGN5PSIxMiIgcj0iNCIvPjxwYXRoIGQ9Ik05NSA4bDUgMTAgNS0xMCIvPjxwYXRoIGQ9Ik0xNDAgMTBoOHY4aC04eiIvPjxwYXRoIGQ9Ik0xNzUgMTVjMy01IDggMCA1IDVzLTggMC01LTUiLz48cGF0aCBkPSJNMTUgNTBsNC04IDQgOCIvPjxjaXJjbGUgY3g9IjU1IiBjeT0iNDgiIHI9IjMiLz48cGF0aCBkPSJNODggNDVjMCAwIDYtNSAxMiAwcy02IDEwLTEyIDAiLz48cGF0aCBkPSJNMTMwIDQybDggNi04IDYiLz48cGF0aCBkPSJNMTY4IDQ4YzAtNCA4LTQgOCAwcy04IDQtOCAwIi8+PHBhdGggZD0iTTI1IDg1YTUgNSAwIDEgMSAwIDEwIDUgNSAwIDAgMSAwLTEwIi8+PHBhdGggZD0iTTYyIDgybDMgMTAgMy01IDMgNSAzLTEwIi8+PHBhdGggZD0iTTEwMCA4OGgxME0xMDUgODN2MTAiLz48cGF0aCBkPSJNMTM4IDgyYzggMCA4IDEyIDAgMTIiLz48cGF0aCBkPSJNMTcyIDg1bDggOG0tOCAwbDgtOCIvPjxwYXRoIGQ9Ik0xOCAxMjBjNS0yIDEwIDIgOCA3Ii8+PHBhdGggZD0iTTU1IDExOGE2IDYgMCAxIDAgMTIgMCA2IDYgMCAxIDAtMTIgMCIvPjxwYXRoIGQ9Ik05NSAxMTVsMTAgNS0xMCA1Ii8+PHBhdGggZD0iTTEzNSAxMjJoMTAiLz48cGF0aCBkPSJNMTcwIDExNXYxMmg4Ii8+PHBhdGggZD0iTTIyIDE1NWMwLTUgMTAtNSAxMCAwIi8+PGNpcmNsZSBjeD0iNTgiIGN5PSIxNTgiIHI9IjUiLz48cGF0aCBkPSJNOTIgMTUybDYgMTIgNi0xMiIvPjxwYXRoIGQ9Ik0xMzIgMTU1aDEydjZoLTEyeiIvPjxwYXRoIGQ9Ik0xNzIgMTUyYzQgMCA2IDQgNCA4Ii8+PHBhdGggZD0iTTI4IDE4OGwtNS04aDEweiIvPjxwYXRoIGQ9Ik01OCAxODVjNC0zIDggMCA4IDQiLz48cGF0aCBkPSJNOTggMTkwYTQgNCAwIDEgMSA4IDAgNCA0IDAgMSAxLTggMCIvPjxwYXRoIGQ9Ik0xMzggMTg1bDQgOCA0LTgiLz48cGF0aCBkPSJNMTc4IDE4OGgtOHYtNmg4Ii8+PC9nPjwvc3ZnPgo=");
}

.lf-bg-pattern-dots {
    background-color: #fff;
    background-image:
        radial-gradient(circle at 10% 30%, rgba(0,124,255,0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(91,94,166,0.03) 0%, transparent 40%),
        radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: auto, auto, 24px 24px;
}

/* ---- Content Sections ---- */
.lf-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Section headings */
.lf-section .bb-block-header {
    margin-bottom: 24px;
}

.lf-section .bb-block-header__title h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--bb-headings-color, #122B46);
    position: relative;
    padding-bottom: 10px;
}

.lf-section .bb-block-header__title h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--lf-brand);
}

/* Hide inactive lists */
.bb-members-list:not(.active),
.bb-groups-list:not(.active) {
    display: none;
}

/* =========================================
   Members & Groups Grids
   ========================================= */

.lf-members-grid,
.lf-groups-grid {
    display: grid;
    gap: 20px;
    padding: 10px 0;
}

.lf-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lf-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lf-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.lf-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.lf-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

.lf-member-card,
.lf-group-card {
    text-align: center;
}

.lf-member-link,
.lf-group-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 8px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
}

.lf-member-link:hover,
.lf-group-link:hover {
    background: #f7f8fa;
    transform: translateY(-3px);
}

/* Avatar */
.lf-member-avatar,
.lf-group-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.lf-member-avatar img,
.lf-group-avatar img {
    width: 120px;
    max-width: 120px;
    height: 120px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    border: 3px solid #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}

.lf-member-link:hover .lf-member-avatar img,
.lf-group-link:hover .lf-group-avatar img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.03);
}

.lf-member-avatar .member-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
}

/* Name */
.lf-member-name,
.lf-group-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
    color: var(--bb-headings-color, #122B46);
}

.lf-group-name a {
    color: inherit;
    text-decoration: none;
}

/* Meta */
.lf-member-meta,
.lf-group-meta {
    margin-top: 4px;
}

.lf-meta-text {
    font-size: 11px;
    color: #9aa5b1;
    line-height: 1.3;
    display: block;
}

/* Remove border from LF widgets */
.bb-members.lf-no-border,
.bb-groups.lf-no-border {
    border: none !important;
    padding: 0;
}

/* =========================================
   Pill-button Tab Styles
   ========================================= */

.lf-no-border .bb-block-header__extra {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-no-border .bb-block-header__extra .bb-members__tab,
.lf-no-border .bb-block-header__extra .bb-groups__tab {
    text-transform: capitalize;
    font-size: 0.85rem;
    color: var(--bb-body-text-color);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid #e2e2e2;
    background: transparent;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.lf-no-border .bb-block-header__extra .bb-members__tab:hover,
.lf-no-border .bb-block-header__extra .bb-groups__tab:hover {
    color: var(--lf-brand);
    border-color: var(--lf-brand);
}

.lf-no-border .bb-block-header__extra .bb-members__tab.selected,
.lf-no-border .bb-block-header__extra .bb-groups__tab.selected {
    color: #fff;
    background: var(--lf-gradient);
    border-color: transparent;
    font-weight: 500;
}

.lf-no-border .bb-block-header__extra .count-more {
    margin-left: 6px;
    font-size: 0.85rem;
    color: var(--lf-brand);
    text-decoration: none;
}

.lf-no-border .bb-block-header__extra .count-more:hover {
    text-decoration: underline;
}

/* =========================================
   Quick Search
   ========================================= */

.lf-quick-search {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    border-radius: 12px;
    background: var(--bb-content-background-color, #fff);
}

.lf-qs-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lf-qs-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bb-headings-color, #122B46);
    white-space: nowrap;
}

.lf-qs-select {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: var(--bb-body-text-color, #4D5C6D);
    cursor: pointer;
    min-width: 130px;
    appearance: auto;
    transition: border-color 0.2s;
}

.lf-qs-select:focus {
    border-color: var(--lf-brand);
    outline: none;
}

.lf-qs-input--age {
    width: 70px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 14px;
    color: var(--bb-body-text-color, #4D5C6D);
    text-align: center;
    -moz-appearance: textfield;
    transition: border-color 0.2s;
}

.lf-qs-input--age::-webkit-inner-spin-button,
.lf-qs-input--age::-webkit-outer-spin-button {
    opacity: 1;
}

.lf-qs-input--age:focus {
    border-color: var(--lf-brand);
    outline: none;
}

.lf-qs-age-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lf-qs-to {
    font-size: 13px;
    font-weight: 400;
    color: #9aa5b1;
}

.lf-qs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 28px;
    border: none;
    border-radius: 100px;
    background: var(--lf-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 12px var(--lf-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px var(--lf-shadow);
}

.lf-qs-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--lf-shadow-hover);
}

.lf-qs-btn i {
    font-size: 16px;
}

.lf-qs-group--btn {
    margin-left: auto;
}

/* Members directory version */
.lf-quick-search--directory {
    margin-bottom: 15px;
    background: var(--bb-content-background-color, #fff);
    border: 1px solid var(--bb-content-border-color, #e2e2e2);
}

/* =========================================
   Auth Tabs
   ========================================= */

.lf-auth-widget {
    width: 100%;
}

.lf-auth-tabs {
    display: flex;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    margin-bottom: 18px;
}

.lf-auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: #8a8a8a;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    text-align: center;
}

.lf-auth-tab:hover {
    color: var(--lf-brand);
}

.lf-auth-tab.active {
    color: var(--lf-brand);
    border-bottom-color: var(--lf-brand);
}

.lf-auth-panel {
    display: none;
}

.lf-auth-panel.active {
    display: block;
}

.lf-auth-field {
    margin-bottom: 14px;
}

.lf-auth-field:last-of-type {
    margin-bottom: 0;
}

.lf-auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    font-size: 14px;
    color: var(--bb-body-text-color, #4D5C6D);
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.lf-auth-input:focus {
    border-color: var(--lf-brand);
    outline: none;
}

.lf-auth-btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 100px;
    background-color: var(--lf-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,124,255,0.2);
}

.lf-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,124,255,0.3);
}

.lf-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lf-auth-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lf-auth-remember {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--bb-body-text-color, #4D5C6D);
    cursor: pointer;
}

.lf-auth-remember input[type="checkbox"] {
    margin: 0;
}

.lf-auth-forgot {
    font-size: 13px;
    color: var(--lf-brand);
    text-decoration: none;
}

.lf-auth-forgot:hover {
    text-decoration: underline;
}

.lf-auth-message {
    display: none;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.lf-auth-message.error {
    display: block;
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.lf-auth-message.success {
    display: block;
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .lf-hero__title {
        font-size: 50px;
    }

    .lf-hero__auth {
        flex: 0 0 340px;
        padding: 24px;
    }

    .lf-grid-cols-5,
    .lf-grid-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hero */
    .lf-hero {
        min-height: auto;
        padding: 100px 20px 0;
    }

    .lf-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 55, 0.82) 0%,
            rgba(15, 23, 55, 0.55) 100%
        );
    }

    .lf-hero__inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .lf-hero__auth {
        display: none;
    }

    .lf-hero__title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .lf-hero__subtitle {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .lf-hero__cta {
        padding: 12px 28px;
        font-size: 14px;
    }

    /* Search */
    .lf-hero__search-wrap {
        max-width: 100%;
        transform: translateY(20px);
    }

    .lf-hero__search-wrap .lf-quick-search {
        border-radius: 14px;
        padding: 16px;
        gap: 6px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    }

    .lf-quick-search {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: end;
    }

    .lf-qs-group {
        gap: 3px;
    }

    .lf-qs-group--btn {
        margin-left: 0;
    }

    .lf-qs-select {
        width: 100%;
        height: 38px;
        font-size: 13px;
    }

    .lf-qs-input--age {
        height: 38px;
        width: 55px;
        font-size: 13px;
    }

    .lf-qs-label {
        font-size: 12px;
    }

    .lf-qs-btn {
        width: 100%;
        justify-content: center;
        height: 38px;
        font-size: 13px;
        padding: 0 16px;
    }

    /* Features */
    .lf-features {
        padding: 46px 16px 24px;
    }

    .lf-features__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lf-feature {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .lf-feature__icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 22px;
        margin: 0;
    }

    .lf-feature__title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .lf-feature__desc {
        font-size: 13px;
    }

    /* Intro */
    .lf-intro-text {
        padding: 36px 16px;
    }

    .lf-intro-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Sections */
    .lf-section {
        padding: 30px 16px;
        margin: 0 auto;
    }

    .lf-section .bb-block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 18px;
    }

    .lf-section .bb-block-header__title h3 {
        font-size: 22px;
    }

    .lf-section .bb-block-header__extra {
        width: 100%;
    }

    .lf-no-border .bb-block-header__extra {
        flex-wrap: wrap;
        gap: 6px;
    }

    .lf-no-border .bb-block-header__extra .bb-members__tab,
    .lf-no-border .bb-block-header__extra .bb-groups__tab {
        font-size: 0.78rem;
        padding: 5px 12px;
    }

    .lf-no-border .bb-block-header__extra .count-more {
        font-size: 0.78rem;
    }

    /* Grids */
    .lf-grid-cols-3,
    .lf-grid-cols-4,
    .lf-grid-cols-5,
    .lf-grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .lf-member-avatar img,
    .lf-group-avatar img {
        max-width: 90px;
        border-width: 2px;
    }

    .lf-member-link,
    .lf-group-link {
        padding: 8px 4px;
        border-radius: 10px;
    }

    .lf-member-name,
    .lf-group-name {
        font-size: 12px;
    }

    .lf-meta-text {
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .lf-hero__title {
        font-size: 28px;
    }

    .lf-hero__subtitle {
        font-size: 14px;
    }

    /* 2 columns on very small screens */
    .lf-grid-cols-2,
    .lf-grid-cols-3,
    .lf-grid-cols-4,
    .lf-grid-cols-5,
    .lf-grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .lf-member-avatar img,
    .lf-group-avatar img {
        max-width: 80px;
    }

    .lf-member-link,
    .lf-group-link {
        padding: 6px 2px;
    }
}
