html,
body {
    background: var(--lm-body-bg, #f7f8fb);
    max-width: 100%;
    overflow-x: hidden !important;
    scroll-padding-top: 112px;
}

body,
#page-container,
#et-main-area {
    background: var(--lm-body-bg, #f7f8fb) !important;
}

body {
    --lm-accent: #18c6a7;
    --lm-body-bg: #f7f8fb;
    --lm-card-border: #dfe5ee;
    --lm-page-bg: #ffffff;
    --lm-page-soft: #edfafa;
    --lm-page-wash: rgba(24, 198, 167, 0.13);
    --lm-text: #111827;
    --lm-muted: #647083;
}

body[data-lm-theme="mindfulness"] {
    --lm-accent: #5fbf7a;
    --lm-body-bg: #f6fbf7;
    --lm-page-soft: #eef9f1;
    --lm-page-wash: rgba(95, 191, 122, 0.15);
}

body[data-lm-theme="love"] {
    --lm-accent: #e85d75;
    --lm-body-bg: #fff8fa;
    --lm-page-soft: #fff0f3;
    --lm-page-wash: rgba(232, 93, 117, 0.14);
}

body[data-lm-theme="life"] {
    --lm-accent: #e5a066;
    --lm-body-bg: #fffaf4;
    --lm-page-soft: #fff3e4;
    --lm-page-wash: rgba(229, 160, 102, 0.15);
}

body[data-lm-theme="relationship"] {
    --lm-accent: #9c69e0;
    --lm-body-bg: #faf7ff;
    --lm-page-soft: #f3edff;
    --lm-page-wash: rgba(156, 105, 224, 0.13);
}

body[data-lm-theme="work"] {
    --lm-accent: #4977d4;
    --lm-body-bg: #f6f9ff;
    --lm-page-soft: #eef4ff;
    --lm-page-wash: rgba(73, 119, 212, 0.13);
}

body[data-lm-theme="world"] {
    --lm-accent: #d4a949;
    --lm-body-bg: #fffdf5;
    --lm-page-soft: #fff8df;
    --lm-page-wash: rgba(212, 169, 73, 0.15);
}

body[data-lm-theme="tips"] {
    --lm-accent: #19a889;
    --lm-body-bg: #f5fcfa;
    --lm-page-soft: #eaf8f4;
    --lm-page-wash: rgba(25, 168, 137, 0.15);
}

body[data-lm-theme="insights"] {
    --lm-accent: #6b7df2;
    --lm-body-bg: #f7f8ff;
    --lm-page-soft: #eef1ff;
    --lm-page-wash: rgba(107, 125, 242, 0.14);
}

#page-container,
#et-main-area,
.lm-page-shell {
    overflow-x: hidden !important;
}

#main-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e4e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
}

#main-header .container,
#main-header .et_menu_container {
    align-items: center;
    display: flex;
    justify-content: center;
    max-width: 1220px;
    width: calc(100% - 48px);
}

#main-header .logo_container,
#et_top_search {
    display: none !important;
}

#et-top-navigation {
    display: flex !important;
    float: none !important;
    justify-content: center;
    padding-left: 0 !important;
    width: 100%;
}

#top-menu-nav {
    float: none !important;
    max-width: 100%;
    overflow: hidden !important;
}

#top-menu {
    align-items: center;
    display: flex !important;
    flex-wrap: nowrap;
    gap: 28px;
    justify-content: center;
    max-width: 100%;
    overflow: hidden !important;
    white-space: nowrap;
}

#top-menu li {
    margin: 0 !important;
    padding-right: 0 !important;
}

#top-menu li a {
    color: #1f2937 !important;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 0 !important;
}

#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a,
#top-menu li.current-menu-ancestor > a,
body[data-lm-theme] #top-menu li:not(.lm-active-anchor-item) > a {
    color: #1f2937 !important;
    opacity: 1 !important;
}

#top-menu li a.lm-active-anchor,
#top-menu li a:hover {
    color: var(--lm-accent, #18c6a7) !important;
    opacity: 1 !important;
}

#main-header *,
#top-menu-nav *,
#top-menu * {
    scrollbar-width: none;
}

#main-header *::-webkit-scrollbar,
#top-menu-nav::-webkit-scrollbar,
#top-menu::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.lm-page-shell {
    background:
        radial-gradient(circle at 50% 0%, var(--lm-page-wash) 0, transparent 38%),
        linear-gradient(180deg, var(--lm-page-bg) 0, var(--lm-page-soft) 440px, var(--lm-body-bg) 100%);
    color: var(--lm-text);
    font-family: Poppins, Arial, sans-serif;
    min-height: 100vh;
    padding: 110px 20px 98px;
}

.lm-page-hero {
    margin: 0 auto 82px;
    max-width: 1120px;
}

.lm-hero-inner {
    align-items: end;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.lm-kicker {
    align-items: center;
    color: #6b7280;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.lm-kicker::before {
    background: linear-gradient(90deg, #18c6a7, #8267e8);
    border-radius: 999px;
    content: "";
    height: 4px;
    width: 44px;
}

.lm-page-hero h1 {
    color: var(--lm-text);
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.04;
    margin: 0 0 16px;
}

.lm-page-hero p {
    color: var(--lm-muted);
    font-size: 18px;
    line-height: 1.64;
    margin: 0;
    max-width: 660px;
}

.lm-searchbar {
    background: #ffffff;
    border: 1px solid var(--lm-card-border);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
    padding: 16px 18px;
}

.lm-searchbar label {
    color: #667085;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.lm-searchbar input {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--lm-text);
    font-size: 16px;
    min-height: 34px;
    outline: none;
    padding: 0;
    width: 100%;
}

.lm-searchbar input::placeholder {
    color: #8a94a6;
}

.lm-mantra-section {
    margin-top: -46px;
    padding-top: 46px;
    scroll-margin-top: 116px;
}

.lm-section-inner {
    margin: 0 auto 96px;
    max-width: 1120px;
}

.lm-section-header {
    align-items: center;
    border-bottom: 1px solid #e1e7f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    margin-bottom: 34px;
    min-height: 138px;
    padding-bottom: 26px;
    position: relative;
    text-align: center;
}

.lm-section-header::before {
    color: rgba(15, 23, 42, 0.055);
    content: attr(data-title);
    font-size: 92px;
    font-weight: 800;
    left: 50%;
    letter-spacing: 0;
    line-height: 1;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 0;
}

.lm-section-header > * {
    position: relative;
    z-index: 1;
}

.lm-section-header h2 {
    color: var(--lm-text);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.1;
    margin: 0;
}

.lm-section-count {
    background: #ffffff;
    border: 1px solid rgba(100, 112, 131, 0.18);
    color: var(--lm-muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
}

.lm-card-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lm-mantra-card {
    background: #ffffff;
    border: 1px solid var(--lm-card-border);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
    min-height: 178px;
    overflow: hidden;
    position: relative;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.lm-mantra-card:hover {
    background: #ffffff;
    border-color: color-mix(in srgb, var(--lm-accent) 34%, #ffffff);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.lm-mantra-card a {
    color: inherit;
    display: block;
    height: 100%;
    padding: 30px 26px;
    position: relative;
    text-decoration: none;
}

.lm-card-accent {
    background: var(--lm-accent, #18c6a7);
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.lm-mantra-card p,
.lm-mantra-card .lm-card-text {
    color: #243044;
    font-size: 18px;
    font-weight: 400 !important;
    letter-spacing: 0;
    line-height: 1.48;
    margin: 0;
}

.lm-category-self {
    --lm-accent: #18c6a7;
}

.lm-category-self .lm-mantra-card:nth-child(6n + 1) {
    --lm-accent: #f59b3f;
}

.lm-category-self .lm-mantra-card:nth-child(6n + 2) {
    --lm-accent: #18c6a7;
}

.lm-category-self .lm-mantra-card:nth-child(6n + 3) {
    --lm-accent: #5165f2;
}

.lm-category-self .lm-mantra-card:nth-child(6n + 4) {
    --lm-accent: #8d55ed;
}

.lm-category-self .lm-mantra-card:nth-child(6n + 5) {
    --lm-accent: #ee553e;
}

.lm-category-self .lm-mantra-card:nth-child(6n + 6) {
    --lm-accent: #e0ba35;
}

.lm-category-mindfulness {
    --lm-accent: #5fbf7a;
}

.lm-category-love {
    --lm-accent: #e85d75;
}

.lm-category-life {
    --lm-accent: #e5a066;
}

.lm-category-relationship {
    --lm-accent: #9c69e0;
}

.lm-category-work {
    --lm-accent: #4977d4;
}

.lm-category-world {
    --lm-accent: #d4a949;
}

.lm-category-tips {
    --lm-accent: #19a889;
}

.lm-insights-page {
    padding-top: 96px;
}

.lm-page-heading {
    margin: 0 auto 34px;
    max-width: 1120px;
}

.lm-page-heading .lm-section-header {
    margin-bottom: 0;
}

.lm-insight-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1120px;
}

.lm-insight-card {
    background: #ffffff;
    border: 1px solid var(--lm-card-border);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.lm-insight-card:hover {
    border-color: color-mix(in srgb, var(--lm-accent) 34%, #ffffff);
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.lm-insight-card a {
    color: inherit;
    display: block;
    height: 100%;
    padding: 26px;
    text-decoration: none;
}

.lm-insight-card h2 {
    color: var(--lm-text);
    font-size: 20px;
    line-height: 1.34;
}

.lm-insight-card p {
    color: #253142;
    font-size: 16px;
    line-height: 1.55;
}

.lm-insight-card span {
    color: var(--lm-accent);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 20px;
    text-transform: uppercase;
}

.lm-pagination {
    color: var(--lm-text);
    font-size: 18px;
    font-weight: 700;
    margin: 44px auto 0;
    max-width: 1120px;
    text-align: center;
}

.lm-pagination a,
.lm-pagination span {
    color: inherit;
    display: inline-block;
    margin: 0 6px;
}

.lm-single-page {
    padding-top: 118px;
}

.lm-single-wrap {
    margin: 0 auto;
    max-width: 880px;
}

.lm-back-link {
    color: var(--lm-accent);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 26px;
    text-decoration: none;
    text-transform: uppercase;
}

.lm-single-header {
    border-bottom: 1px solid #e1e7f0;
    margin-bottom: 28px;
    padding-bottom: 26px;
    position: relative;
    text-align: center;
}

.lm-single-header::before {
    color: rgba(15, 23, 42, 0.055);
    content: attr(data-title);
    font-size: 80px;
    font-weight: 800;
    left: 50%;
    letter-spacing: 0;
    line-height: 1;
    position: absolute;
    top: -18px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 0;
}

.lm-single-header > * {
    position: relative;
    z-index: 1;
}

.lm-single-header .lm-kicker {
    justify-content: center;
}

.lm-single-header h1 {
    color: var(--lm-text);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.16;
    margin: 0;
}

.lm-single-card {
    background: #ffffff;
    border: 1px solid var(--lm-card-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

.lm-single-content {
    color: #243044;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.72;
    padding: 42px 44px;
}

.lm-single-content p {
    margin: 0 0 1.2em;
}

.lm-single-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    #top-menu {
        gap: 18px;
    }

    #top-menu li a {
        font-size: 15px;
    }
}

@media (max-width: 980px) {
    .lm-hero-inner,
    .lm-card-grid,
    .lm-insight-grid {
        grid-template-columns: 1fr;
    }

    .lm-searchbar {
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    html,
    body {
        scroll-padding-top: 92px;
    }

    .lm-page-shell {
        padding: 74px 16px 72px;
    }

    .lm-page-hero {
        margin-bottom: 56px;
    }

    .lm-page-hero h1 {
        font-size: 38px;
    }

    .lm-page-hero p {
        font-size: 15px;
    }

    .lm-mantra-section {
        margin-top: -64px;
        padding-top: 64px;
        scroll-margin-top: 92px;
    }

    .lm-section-inner {
        margin-bottom: 64px;
    }

    .lm-section-header {
        min-height: 104px;
    }

    .lm-section-header::before {
        font-size: 58px;
        top: 20px;
    }

    .lm-section-header h2 {
        font-size: 28px;
        letter-spacing: 0.08em;
    }

    .lm-section-count {
        font-size: 12px;
        padding: 7px 10px;
    }

    .lm-mantra-card {
        min-height: 156px;
    }

    .lm-mantra-card a {
        padding: 28px 24px 34px;
    }

    .lm-mantra-card p,
    .lm-mantra-card .lm-card-text {
        font-size: 17px;
        line-height: 1.48;
    }

    .lm-single-page {
        padding-top: 84px;
    }

    .lm-single-header::before {
        font-size: 56px;
        top: -8px;
    }

    .lm-single-header h1 {
        font-size: 30px;
    }

    .lm-single-content {
        font-size: 17px;
        padding: 30px 24px;
    }
}
