

* {
    box-sizing: border-box;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

body {
    margin: 0;
    direction: rtl;
    font-family: var(--site-body-font);
    color: var(--site-text);
    background-color: var(--site-bg);
    background-image: var(--site-background-image);
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
}



body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: color-mix(in srgb, var(--site-primary), transparent 35%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

main {
    max-width: 70%;
    margin: 0 auto;
}


.header-inner {
    display: grid;
    grid-template-columns: 220px 1fr 180px;
    align-items: center;
    gap: 26px;
}

.site-logo {
    justify-self: start;
    display: grid;
    place-items: center;
}

.site-logo img {
    width: 100%;
    max-width: 150px;
    object-fit: contain;
}

.site-logo span {
    font-weight: 900;
    color: var(--site-secondary);
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.site-nav a,
.header-cta {
    min-width: 94px;
    text-align: center;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.22s ease;
}

.site-nav a:hover,
.header-cta:hover,
.main-cta:hover {
    transform: translateY(-2px);
}

.header-cta {
    justify-self: end;
    background: var(--button-bg);
    color: var(--button-text);
    border-color: transparent;
}

.hero-media-section {
    padding: 28px 0 44px;
}

.hero-media-frame {
    min-height: 430px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.18);
    background:
            linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.28)),
            var(--site-secondary);
    box-shadow:
            0 30px 90px rgba(15,23,42,0.18),
            inset 0 0 0 1px rgba(255,255,255,0.35);
    display: grid;
    place-items: center;
}

.hero-media-frame img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: fit-content;
    object-fit: cover;
    display: block;
}

.hero-placeholder {
    color: rgba(255,255,255,0.88);
    font-weight: 900;
    font-size: 24px;
}

.intro-section {
    padding: 42px 0 80px;
}

.intro-inner {
    text-align: center;
    padding: 42px 34px;
}

.intro-eyebrow {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-primary), transparent 86%);
    color: var(--site-primary);
    font-weight: 900;
    margin-bottom: 16px;
}

.intro-inner h1 {
    margin: 0 0 14px;
    font-family: var(--site-heading-font);
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    color: var(--site-secondary);
}

.intro-inner p {
    margin: 0 auto;
    max-width: 620px;
    font-size: 20px;
    line-height: 1.8;
    opacity: 0.82;
}

.main-cta {
    display: inline-flex;
    padding: 15px 30px;
    border-radius: 999px;
    background: var(--button-bg);
    color: var(--button-text);
    font-weight: 900;
;    transition: 0.22s ease;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.footer-inner img {
    max-height: 54px;
    max-width: 150px;
    object-fit: contain;
}

.footer-inner p {
    margin: 0;
    opacity: 0.78;
}

@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .site-logo,
    .header-cta {
        justify-self: center;
    }

    .hero-media-frame,
    .hero-media-frame img {
        min-height: 300px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    padding: 12px 18px;
    background: var(--headerfooter-bg);
    border: 1px solid rgba(15,23,42,0.1);
    box-shadow: 0 18px 55px rgba(15,23,42,0.08);
    backdrop-filter: blur(18px);
}

.bc-hero {
    padding: 52px 0 48px;
}

.bc-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 58px;
}

.bc-hero-copy {
    padding: 44px 0;
}

.bc-hero-copy h1 {
    margin: 0 0 20px;
    font-family: var(--site-heading-font);
    font-size: clamp(32px, 4.6vw, 48px);
    line-height: 1.02;
    color: var(--site-text);
    letter-spacing: -0.04em;
}

.bc-hero-copy p {
    margin: 0;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.85;
    color: var(--site-text);
    opacity: 0.82;
}

.bc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.secondary-cta {
    display: inline-flex;
    padding: 14px 26px;
    border-radius: 999px;
    background: var(--button-bg);
    color: var(--button-text);
    border: 1px solid rgba(15,23,42,0.12);
    font-weight: 900;
    box-shadow: 0 12px 34px rgba(15,23,42,0.07);
    transition: 0.22s ease;
}

.secondary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(15,23,42,0.13);
}

.bc-hero-visual {
    position: relative;
}

.bc-hero-glow {
    position: absolute;
    inset: 10%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-primary), transparent 55%);
    filter: blur(70px);
    opacity: 0.75;
    z-index: 0;
}

.bc-hero .hero-media-frame {
    position: relative;
    z-index: 1;
    min-height: 520px;
    border-radius: 38px;
    transform: rotate(-1.5deg);
}

.bc-hero .hero-media-frame img {
    min-height: 520px;
}

.bc-feature-strip {
    padding: 18px 0 84px;
}

.bc-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.bc-feature-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(15,23,42,0.1);
    box-shadow: 0 22px 60px rgba(15,23,42,0.08);
    backdrop-filter: blur(14px);
}

.bc-feature-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--site-primary), transparent 84%);
    color: var(--site-primary);
    font-weight: 950;
    margin-bottom: 18px;
}

.bc-feature-card h3 {
    margin: 0 0 10px;
    color: var(--site-secondary);
    font-size: 22px;
}

.bc-feature-card p {
    margin: 0;
    line-height: 1.75;
    opacity: 0.76;
}

@media (max-width: 980px) {
    .header-inner {
    }

    .bc-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bc-hero-copy {
        text-align: center;
        padding: 20px 0 0;
    }

    .bc-hero-copy p {
        margin: 0 auto;
    }

    .bc-hero-actions {
        justify-content: center;
    }

    .bc-hero .hero-media-frame {
        min-height: 330px;
        transform: none;
    }

    .bc-hero .hero-media-frame img {
        min-height: 330px;
    }

    .bc-feature-grid {
        grid-template-columns: 1fr;
    }
}

.bc-hero-inner {
    gap: 40px; /* במקום 58 */
}

.bc-hero-copy h1 {
    text-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.secondary-cta {
    border: 1px solid rgba(15,23,42,0.2);
    font-weight: 800;
}


.bc-hero .hero-media-frame {
    transition: 0.4s ease;
}

.bc-hero .hero-media-frame:hover {
    transform: scale(1.02) rotate(-1deg);
}

.bc-hero .hero-media-frame {
    transform: rotate(-1deg); /* במקום -1.5deg */
}

.bc-hero-visual {
    margin-right: -20px; /* כי RTL */
}

.bc-hero-actions {
    margin-top: 20px; /* במקום 34 */
}

.bc-hero-copy {
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bc-about-section,
.bc-services-section,
.bc-bottom-cta {
    padding: 72px 0;
}

.bc-about-inner {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 26px;
    align-items: stretch;
}

.bc-about-card,
.bc-about-highlight,
.bc-service-card,
.bc-bottom-cta-card {
    border-radius: 34px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(15,23,42,0.1);
    box-shadow: 0 24px 70px rgba(15,23,42,0.09);
    backdrop-filter: blur(16px);
}

.bc-about-card {
    padding: 44px;
}

.bc-about-card h2,
.bc-section-head h2,
.bc-bottom-cta-card h2 {
    margin: 0 0 16px;
    font-family: var(--site-heading-font);
    color: var(--site-text);
    font-size: clamp(20px, 3vw, 32px);
    line-height: 1.08;
}

.bc-about-card p,
.bc-bottom-cta-card p {
    margin: 0;
    font-size: 19px;
    line-height: 1.85;
    opacity: 0.78;
    color: var(--site-card-text);
}

.bc-section-head p {
    color: var(--site-text);
}

.bc-check-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.bc-check-list li {
    position: relative;
    padding-right: 34px;
    font-weight: 800;
}

.bc-check-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--site-primary), transparent 82%);
    color: var(--site-primary);
    font-size: 14px;
}

.bc-about-highlight {
    padding: 42px;
    display: grid;
    align-content: center;
    text-align: center;
    background:
            radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--site-primary), transparent 72%), transparent 36%),
            rgba(255,255,255,0.78);
}

.bc-about-highlight strong {
    font-size: clamp(64px, 8vw, 110px);
    line-height: 0.9;
    color: var(--site-card-title);
    font-family: var(--site-heading-font);
}

.bc-about-highlight span {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 900;
    color: var(--site-secondary);
}

.bc-section-head {
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: center;
}

.bc-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.bc-service-card {
    padding: 28px;
    transition: 0.25s ease;
}

.bc-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(15,23,42,0.13);
}

.bc-service-card span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: var(--site-primary);
    color: #fff;
    font-weight: 900;
}

.bc-service-card h3 {
    margin: 0 0 10px;
    color: var(--site-secondary);
    font-size: 22px;
}

.bc-service-card p {
    margin: 0;
    line-height: 1.75;
    opacity: 0.76;
}

.bc-bottom-cta {
    padding-bottom: 96px;
}

.bc-bottom-cta-card {
    text-align: center;
    padding: 54px 28px;
    background:
            radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--site-primary), transparent 76%), transparent 34%),
            linear-gradient(135deg, rgba(255,255,255,0.84), rgba(255,255,255,0.62));
}

@media (max-width: 980px) {
    .bc-about-inner,
    .bc-services-grid {
        grid-template-columns: 1fr;
    }

    .bc-about-card {
        padding: 32px;
    }
}

.bc-hero .hero-media-frame {
    transform: none;
}

.bc-hero .hero-media-frame:hover {
    transform: scale(1.02); /* בלי rotate */
}

.bc-hero .hero-media-frame {
    box-shadow:
            0 40px 120px rgba(15,23,42,0.18),
            inset 0 0 0 1px rgba(255,255,255,0.4);
}

.site-footer {
    padding: 72px 0 28px;
    background: var(--headerfooter-bg);
    color: var(--headerfooter-text);
    width: min(var(--site-container-width), calc(100% - 40px));
    margin: 40px auto;
    border-radius: var(--site-card-radius);
}

.bc-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr;
    gap: 34px;
    align-items: start;
}

.bc-footer-brand img {
    max-height: 64px;
    max-width: 170px;
    object-fit: contain;
    margin-bottom: 18px;
}

.bc-footer-brand strong {
    display: block;
    font-size: 26px;
    margin-bottom: 14px;
}

.bc-footer-brand p,
.bc-footer-cta p {
    margin: 0;
    max-width: 340px;
    line-height: 1.8;
    opacity: 0.76;
}

.bc-footer-links,
.bc-footer-cta {
    display: grid;
    gap: 10px;
}

.bc-footer-links h3,
.bc-footer-cta h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.bc-footer-links a {
    opacity: 0.72;
    transition: 0.2s ease;
}

.bc-footer-links a:hover {
    opacity: 1;
    transform: translateX(-4px);
}

.bc-footer-button {
    display: inline-flex;
    justify-self: start;
    margin-top: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    background: #fff;
    background: var(--button-bg);
    color: var(--button-text);
    font-weight: 900;
    box-shadow: 0 16px 44px rgba(0,0,0,0.18);
    transition: 0.22s ease;
}

.bc-footer-button:hover {
    transform: translateY(-2px);
}

.bc-footer-bottom {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    opacity: 0.72;
    font-size: 14px;
}

@media (max-width: 980px) {
    .bc-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bc-footer-brand p,
    .bc-footer-cta p {
        margin: 0 auto;
    }

    .bc-footer-button {
        justify-self: center;
    }

    .bc-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.site-container {
    width: min(var(--site-container-width), calc(100% - 40px));
}

.main-cta,
.header-cta,
.secondary-cta,
.bc-footer-button {
    border-radius: var(--site-button-radius);
}

.header-inner {
    background: var(--headerfooter-bg);
    color: var(--headerfooter-text);
    box-shadow: var(--site-card-shadow);
}

.bc-feature-card,
.bc-about-card,
.bc-about-highlight,
.bc-service-card,
.bc-bottom-cta-card
{
    border-radius: var(--site-card-radius);
    background: var(--site-card-bg);
    color: var(--site-card-text);
    box-shadow: var(--site-card-shadow);
}

.bc-feature-card h3,
.bc-about-card h2,
.bc-about-highlight span,
.bc-service-card h3,
.bc-bottom-cta-card h2 {
    color: var(--site-card-title);
}

.bc-latest-posts-section {
    padding: 72px 0;
}

.bc-latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.bc-post-card {
    padding: 30px;
    border-radius: var(--site-card-radius);
    background: color-mix(in srgb, var(--site-card-bg), transparent 24%);
    color: var(--site-card-text);
    border: 1px solid rgba(15,23,42,0.1);
    box-shadow: var(--site-card-shadow);
    backdrop-filter: blur(16px);
    transition: 0.25s ease;
}

.bc-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(15,23,42,0.13);
}

.bc-post-date {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: color-mix(in srgb, var(--site-primary), transparent 84%);
    color: var(--site-primary);
    font-weight: 900;
    font-size: 13px;
}

.bc-post-card h3 {
    margin: 0 0 12px;
    color: var(--site-card-title);
    font-size: 24px;
}

.bc-post-card p {
    margin: 0 0 20px;
    line-height: 1.75;
    opacity: 0.76;
}

.bc-post-card a {
    color: var(--site-card-text);
    font-weight: 900;
}

@media (max-width: 980px) {
    .bc-latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

.bc-articles-page {
    padding: 80px 0;
}

.bc-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bc-article-page {
    padding: 20px 0;
}

.bc-article-content {
    margin: 0 auto;
}

.bc-article-body {
    margin-top: 30px;
    line-height: 1.9;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    flex: 0 0 auto;
}

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.header-cta {
    flex: 0 0 auto;
}

.site-nav a {
    min-width: auto;
    white-space: nowrap;
}

.bc-post-card img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: var(--site-card-radius);
}

.bc-article-featured-image {
    margin: 0 0 34px;
    border-radius: var(--site-card-radius);
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.1);
    box-shadow: var(--site-card-shadow);
    background: color-mix(in srgb, var(--site-card-bg), transparent 18%);
}

.bc-article-featured-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

.bc-article-content {
}

.bc-article-content h1 {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.08;
    color: var(--site-text);
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--site-button-radius);
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 12px 34px rgba(15,23,42,0.12);
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: 0.22s ease;
}

@media (max-width: 760px) {
    main {
        max-width: 100%;
    }

    .site-container {
        width: min(var(--site-container-width), calc(100% - 24px));
    }


    .header-inner {
        position: relative;
        display: flex;
        justify-content: space-between;
        padding: 10px 12px;
        gap: 10px;
    }

    .site-logo img {
        max-width: 118px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        order: 3;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        left: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px;
        border-radius: var(--site-card-radius);
        background: var(--headerfooter-bg);
        color: var(--headerfooter-text);
        box-shadow: var(--site-card-shadow);
        border: 1px solid rgba(15,23,42,0.1);
        backdrop-filter: blur(18px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: 0.22s ease;
        z-index: 80;
    }

    body.mobile-menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .site-nav a {
        width: 100%;
        padding: 14px 16px;
        border-radius: var(--site-button-radius);
        background: color-mix(in srgb, var(--button-bg), transparent 86%);
        text-align: center;
    }

    body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.bc-contact-page {
    padding: 54px 0 90px;
}

.bc-contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: start;
}

.bc-contact-info,
.bc-contact-form {
    border-radius: var(--site-card-radius);
    background: var(--site-card-bg);
    color: var(--site-card-text);
    box-shadow: var(--site-card-shadow);
    border: 1px solid rgba(15,23,42,0.1);
    backdrop-filter: blur(16px);
}

.bc-contact-info {
    padding: 38px;
}

.bc-contact-info h2 {
    margin: 0 0 14px;
    color: var(--site-card-title);
    font-family: var(--site-heading-font);
    font-size: clamp(28px, 3vw, 42px);
}

.bc-contact-info p {
    margin: 0;
    line-height: 1.85;
    opacity: 0.78;
}

.bc-contact-note {
    margin-top: 28px;
    padding: 20px;
    border-radius: calc(var(--site-card-radius) - 10px);
    background: color-mix(in srgb, var(--site-primary), transparent 88%);
    display: grid;
    gap: 6px;
}

.bc-contact-note strong {
    color: var(--site-card-title);
}

.bc-contact-note span {
    line-height: 1.7;
    opacity: 0.78;
}

.bc-contact-form {
    padding: 34px;
    display: grid;
    gap: 18px;
}

.bc-contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 900;
}

.bc-contact-form input,
.bc-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(15,23,42,0.14);
    border-radius: calc(var(--site-button-radius) / 2 + 10px);
    padding: 14px 16px;
    font: inherit;
    background: rgba(255,255,255,0.78);
    color: #111827;
    outline: none;
}

.bc-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.bc-contact-form input:focus,
.bc-contact-form textarea:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--site-primary), transparent 84%);
}

.bc-form-success,
.bc-form-error {
    padding: 14px 18px;
    border-radius: var(--site-button-radius);
    font-weight: 900;
}

.bc-form-success {
    background: rgba(34,197,94,0.14);
    color: #15803d;
}

.bc-form-error {
    background: rgba(239,68,68,0.14);
    color: #b91c1c;
}

.bc-hp-field {
    position: absolute !important;
    right: -9999px !important;
    opacity: 0 !important;
}

@media (max-width: 860px) {
    .bc-contact-layout {
        grid-template-columns: 1fr;
    }

    .bc-contact-info,
    .bc-contact-form {
        padding: 26px;
    }
}

.fm-hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-top: -110px;
    padding: 170px 0 90px;
    isolation: isolate;
}

.fm-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    z-index: -3;
}

.fm-hero-overlay {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--site-primary), transparent 58%), transparent 30%),
            linear-gradient(to bottom, rgba(0,0,0,0.46), rgba(0,0,0,0.72));
    z-index: -2;
}

.fm-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    z-index: -1;
}

.fm-hero-content {
    max-width: 900px;
    text-align: center;
    color: #fff;
    animation: fadeUp 0.7s ease both;
}

.fm-hero-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    font-weight: 900;
}

.fm-hero-content h1 {
    margin: 0;
    font-family: var(--site-heading-font);
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-shadow: 0 18px 70px rgba(0,0,0,0.45);
}

.fm-hero-content p {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: clamp(20px, 2.0vw, 20px);
    line-height: 1.8;
    opacity: 0.88;
}

.fm-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.fm-hero .secondary-cta {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(14px);
}

@media (max-width: 760px) {
    .fm-hero {
        min-height: 86vh;
        margin-top: -90px;
        padding: 150px 0 70px;
    }

    .fm-hero-content h1 {
        letter-spacing: -0.035em;
    }
}

/* Modern theme full-width reset */
body {
    background-attachment: fixed;
    overflow-x: hidden;
}

main {
    max-width: none;
    width: 100%;
    margin: 0;
}

.site-container {
    width: min(1280px, calc(100% - 48px));
}

/* Header full modern */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
}

.header-inner {
    width: 100%;
    max-width: none;
    padding: 14px 22px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px);
}

/* Hero true full width */
.fm-hero {
    min-height: 100vh;
    margin-top: 0;
    padding: 180px 0 120px;
}

.fm-hero-bg {
    inset: 0;
}

.fm-hero-content {
    width: min(980px, calc(100% - 40px));
}

/* Make following sections breathe */
.bc-feature-strip,
.bc-services-section,
.bc-bottom-cta,
.bc-latest-posts-section {
    width: 100%;
}

/* Mobile */
@media (max-width: 760px) {
    .site-header {
    }

    .header-inner {
    }

    .fm-hero {
        min-height: 100svh;
        padding: 140px 0 80px;
    }

    .site-container {
        width: min(100%, calc(100% - 24px));
    }
}

/* ===== FULL WIDTH MODERN HEADER ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-inner {
    width: 100%;
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--headerfooter-bg);
    background: color-mix(in srgb, var(--headerfooter-bg), transparent 28%);
}



/* nav */
.site-nav {
    display: flex;
    gap: 28px;
}

.site-nav a {
    font-weight: 800;
    font-size: 15px;
    color: var(--headerfooter-text);
    text-decoration: none;
    opacity: 0.85;
    transition: 0.2s;
}

.site-nav a:hover {
    opacity: 1;
}

/* CTA */
.header-cta .main-cta {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 999px;
}

/* ===== TRANSPARENT HERO MODE ===== */

.site-header {
    background: transparent;
}

/* ===== SCROLL STATE ===== */

body.scrolled .site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

body.scrolled .site-nav a {
    color: #1f2937;
}

.fm-feature-strip {
    position: relative;
    padding: 0 0 96px;
    margin-top: -56px;
    z-index: 5;
}

.fm-feature-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--site-card-bg);
    background: color-mix(in srgb, var(--site-card-bg), transparent 28%);

    color: var(--site-card-text);
    backdrop-filter: blur(22px);
    border-top: 1px solid rgba(255,255,255,0.22);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 28px 90px rgba(0,0,0,0.22);
}

.fm-feature-item {
    position: relative;
    padding: 42px 36px;
    color: #fff;
    min-height: 220px;
    background:
            linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    transition: 0.25s ease;
}

.fm-feature-item:not(:last-child) {
    border-left: 1px solid rgba(255,255,255,0.14);
}

.fm-feature-item:hover {
    background:
            linear-gradient(135deg, color-mix(in srgb, var(--site-primary), transparent 65%), rgba(255,255,255,0.06));
    transform: translateY(-4px);
}

.fm-feature-number {
    display: inline-flex;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    opacity: 0.62;
}

.fm-feature-item h3 {
    margin: 0 0 12px;
    font-size: 24px;
    color: var(--site-card-title);
}

.fm-feature-item p {
    margin: 0;
    line-height: 1.8;
    opacity: 0.78;
    color: var(--site-card-text);
}

@media (max-width: 860px) {
    .fm-feature-strip {
        margin-top: 0;
        padding: 24px 0 64px;
    }

    .fm-feature-inner {
        grid-template-columns: 1fr;
    }

    .fm-feature-item:not(:last-child) {
        border-left: 0;
        border-bottom: 1px solid rgba(255,255,255,0.14);
    }
}

.fm-story-section {
    padding: 110px 0;
    position: relative;
    isolation: isolate;
}

.fm-story-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
            radial-gradient(circle at 15% 20%,
            color-mix(in srgb, var(--site-primary), transparent 78%),
            transparent 34%),
            linear-gradient(
                    180deg,
                    var(--site-primary),
                    rgba(0, 0, 0, 0.35)
            );
}

.fm-story-inner {
    display: grid;
    grid-template-columns: 0.35fr 1fr;
    gap: 64px;
    align-items: start;
}

.fm-story-label {
    position: sticky;
    top: 110px;
}

.fm-story-label span {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-primary), transparent 86%);
    color: var(--site-primary);
    font-weight: 950;
}

.fm-story-content {
    max-width: 880px;
}

.fm-story-content h2 {
    margin: 0 0 28px;
    font-family: var(--site-heading-font);
    font-size: clamp(38px, 5.4vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: var(--site-text);
}

.fm-story-text {
    font-size: clamp(18px, 1.6vw, 23px);
    line-height: 1.95;
    color: var(--site-text);
    opacity: 0.78;
}

.fm-story-text p {
    margin: 0 0 22px;
}

@media (max-width: 860px) {
    .fm-story-section {
        padding: 74px 0;
    }

    .fm-story-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fm-story-label {
        position: static;
    }
}

.fm-story-visual {
    position: sticky;
    top: 110px;
}

.fm-story-visual img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.18);
}

.fm-story-visual span {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--site-primary), transparent 86%);
    color: var(--site-primary);
    font-weight: 950;
}

@media (max-width: 860px) {
    .fm-story-visual {
        position: static;
    }

    .fm-story-visual img {
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }
}


.fm-latest-section {
    padding: 110px 0;
    position: relative;
    isolation: isolate;
}

.fm-latest-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
            radial-gradient(circle at 15% 20%,
            color-mix(in srgb, var(--site-primary), transparent 78%),
            transparent 34%),
            linear-gradient(
                    180deg,
                    var(--site-primary),
                    rgba(0, 0, 0, 0.35)
            );
}



.fm-section-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.fm-section-head span {
    display: inline-flex;
    margin-bottom: 14px;
    font-weight: 950;
    color: var(--site-primary);
}

.fm-section-head h2 {
    margin: 0;
    font-family: var(--site-heading-font);
    font-size: clamp(38px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    color: var(--site-text);
}

.fm-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.fm-post-card {
    overflow: hidden;
    background: var(--site-card-bg);
    box-shadow: 0 24px 80px rgba(15,23,42,0.08);
    transition: 0.28s ease;
    color: var(--site-card-text);
}

.fm-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 36px 120px rgba(15,23,42,0.14);
}

.fm-post-card a {
    display: block;
    height: 100%;
}

.fm-post-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.fm-post-content {
    padding: 28px;
}

.fm-post-date {
    display: inline-flex;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 950;
    color: var(--site-card-text);
}

.fm-post-content h3 {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.2;
    color: var(--site-card-text);
}

.fm-post-content p {
    margin: 0 0 22px;
    line-height: 1.75;
    color: color-mix(in srgb, var(--site-card-text), transparent 28%);
}

.fm-post-content strong {
    color: var(--site-card-text);
}

@media (max-width: 900px) {
    .fm-post-grid {
        grid-template-columns: 1fr;
    }

    .fm-latest-section {
        padding: 74px 0;
    }
}

.fm-cta-section {
    padding: 120px 0;
    text-align: center;

}

.fm-cta-inner {
    max-width: 760px;
    margin: 0 auto;
}

.fm-cta-inner h2 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
}

.fm-cta-inner p {
    margin: 0 0 28px;
    opacity: 0.75;
}

/* ===== MODERN FOOTER ===== */

.site-footer {
    width: 100%;
    margin: 0;
    padding: 88px 0 34px;
    border-radius: 0;
    background: var(--headerfooter-bg);
    background: color-mix(in srgb, var(--headerfooter-bg), transparent 28%);
    color: #fff;
}

.bc-footer-inner {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.bc-footer-brand img {
    max-width: 190px;
    max-height: 76px;
    object-fit: contain;
    margin-bottom: 22px;
}

.bc-footer-brand p,
.bc-footer-cta p {
    max-width: 520px;
    margin: 0;
    line-height: 1.9;
    color: var(--headerfooter-text);
}

.bc-footer-cta {
    text-align: center;
    justify-items: center;
    padding: 34px;
    border-radius: 34px;
    color: var(--headerfooter-text);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(18px);
}

.bc-footer-cta h3 {
    margin: 0 0 12px;
    color: var(--headerfooter-text);
    font-size: 28px;
}

.bc-footer-button {
    margin: 22px auto auto auto;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.bc-footer-bottom {
    width: min(1280px, calc(100% - 48px));
    margin: 54px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: var(--headerfooter-text);
}

@media (max-width: 860px) {
    .site-footer {
        padding: 64px 0 28px;
    }

    .bc-footer-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    .bc-footer-brand p,
    .bc-footer-cta p {
        margin: 0 auto;
    }

    .bc-footer-bottom {
        text-align: center;
    }
}

.fm-latest-section {
    padding-bottom: 140px;
}

.site-footer {
    margin-top: -40px;
}

.bc-footer-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 30px 90px rgba(0,0,0,0.3);
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher a {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.language-switcher a:hover {
    background: rgba(255,255,255,0.2);
}

.bc-profile-page {
    min-height: 70vh;
}

.bc-profile-cover {
    min-height: 320px;
    padding: 120px 0 40px;
    background:
            linear-gradient(180deg, rgba(10, 15, 30, 0.35), rgba(10, 15, 30, 0.8)),
            radial-gradient(circle at top, var(--site-primary), transparent 45%);
    background-size: cover;
    background-position: center;
}

.bc-profile-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bc-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 800;
    flex-shrink: 0;
}

.bc-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-profile-info h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 5vw, 56px);
}

.bc-profile-info p {
    margin: 0;
    max-width: 720px;
    line-height: 1.8;
}

.bc-profile-body {
    padding: 60px 0;
}

.bc-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.bc-profile-main,
.bc-profile-side {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.bc-profile-field {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bc-profile-field span {
    display: block;
    font-size: 13px;
    opacity: 0.65;
    margin-bottom: 5px;
}

.bc-profile-field strong,
.bc-profile-field a {
    color: inherit;
    font-weight: 700;
}

@media (max-width: 800px) {
    .bc-profile-card {
        flex-direction: column;
        text-align: center;
    }

    .bc-profile-layout {
        grid-template-columns: 1fr;
    }
}

.modern-account-profile {
    min-height: 80vh;
}

.account-profile-hero {
    padding: 110px 0 45px;
    background:
            radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--site-primary), transparent 68%), transparent 35%),
            linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
}

.profile-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--site-primary);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-profile-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 58px);
}

.account-profile-hero p {
    margin: 0;
    max-width: 680px;
    opacity: .75;
    line-height: 1.8;
}

.account-profile-section {
    padding: 45px 0 80px;
}

.profile-editor-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.profile-live-preview {
    position: sticky;
    top: 100px;
}

.preview-cover {
    min-height: 520px;
    border-radius: 34px;
    padding: 26px;
    background:
            linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.68)),
            radial-gradient(circle at top, var(--site-primary), transparent 55%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 70px rgba(0,0,0,.14);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.preview-card {
    width: 100%;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(18px);
    color: #fff;
}

.preview-avatar {
    width: 112px;
    height: 112px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.22);
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 18px;
}

.preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-card h2 {
    margin: 0 0 5px;
    font-size: 30px;
}

.preview-card small {
    opacity: .78;
}

.preview-card p {
    margin: 18px 0 0;
    line-height: 1.8;
    white-space: pre-wrap;
}

.profile-view-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
    font-weight: 800;
}

.profile-form-card {
    padding: 30px;
    border-radius: 34px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.profile-form-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.profile-form-card h2:not(:first-child) {
    margin-top: 34px;
}

.profile-field {
    display: block;
    margin-bottom: 18px;
}

.profile-field span,
.profile-upload-box span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    opacity: .72;
}

.profile-field em {
    color: #d33;
    font-style: normal;
}

.profile-field input,
.profile-field textarea,
.profile-field select {
    width: 100%;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
    outline: none;
}

.profile-field textarea {
    resize: vertical;
    min-height: 120px;
}

.profile-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-upload-box {
    display: block;
    padding: 18px;
    border-radius: 22px;
    background: rgba(0,0,0,.035);
    border: 1px dashed rgba(0,0,0,.18);
}

.profile-upload-box input {
    width: 100%;
}

.profile-save-btn {
    margin-top: 16px;
    border: 0;
    border-radius: 20px;
    padding: 15px 26px;
    background: var(--site-primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 36px color-mix(in srgb, var(--site-primary), transparent 68%);
}

.profile-alert {
    padding: 14px 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-weight: 800;
}

.profile-alert.success {
    background: #e8fff1;
    color: #137a3a;
}

.profile-alert.danger {
    background: #ffecec;
    color: #a22626;
}

@media (max-width: 980px) {
    .profile-editor-layout {
        grid-template-columns: 1fr;
    }

    .profile-live-preview {
        position: static;
    }
}

@media (max-width: 620px) {
    .profile-upload-grid {
        grid-template-columns: 1fr;
    }

    .preview-cover {
        min-height: 430px;
    }

    .profile-form-card {
        padding: 22px;
    }
}

.auth-page {
    min-height: 80vh;
    padding: 130px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(100%, 480px);
    padding: 34px;
    border-radius: 32px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 24px 70px rgba(0,0,0,.1);
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: 36px;
}

.auth-card p {
    margin: 0 0 24px;
    opacity: .72;
}

.auth-card label {
    display: block;
    margin-bottom: 16px;
}

.auth-card label span {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    opacity: .72;
}

.auth-card input {
    width: 100%;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
}

.auth-card button,
.auth-btn-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 18px;
    padding: 14px 24px;
    background: var(--site-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.auth-card form + a {
    display: inline-block;
    margin-top: 18px;
}

.auth-alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 800;
}

.auth-alert.success {
    background: #e8fff1;
    color: #137a3a;
}

.auth-alert.danger {
    background: #ffecec;
    color: #a22626;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth a,
.header-auth-hello {
    font-size: 14px;
    font-weight: 800;
    color: var(--headerfooter-text);
    text-decoration: none;
    opacity: .88;
}

.header-auth a:hover {
    opacity: 1;
}

.header-auth-register {
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--site-primary);
    color: #fff !important;
    opacity: 1 !important;
}

.header-auth-hello {
    opacity: .7;
}

@media (max-width: 980px) {
    .header-auth {
        order: 2;
        margin-inline-start: auto;
        gap: 8px;
    }

    .header-auth-hello,
    .header-auth a[href^="/profile/"] {
        display: none;
    }

    .header-auth a {
        font-size: 13px;
    }

    .header-auth-register {
        padding: 7px 12px;
    }
}

.social-feed-page {
    min-height: 80vh;
}

.feed-hero {
    padding: 110px 0 45px;
    background:
            radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--site-primary), transparent 68%), transparent 35%),
            linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.72));
}

.feed-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 900;
    color: var(--site-primary);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feed-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 58px);
}

.feed-hero p {
    margin: 0;
    max-width: 680px;
    opacity: .72;
    line-height: 1.8;
}

.feed-section {
    padding: 45px 0 80px;
}

.feed-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.feed-composer,
.feed-login-box,
.feed-post,
.feed-side-card,
.feed-empty,
.feed-loading {
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.feed-composer {
    padding: 22px;
    margin-bottom: 22px;
}

.feed-composer textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 22px;
    padding: 16px;
    resize: vertical;
    font: inherit;
    background: #fff;
    outline: none;
}

.feed-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
}

.feed-composer-actions span {
    font-size: 14px;
    font-weight: 800;
    opacity: .72;
}

.feed-composer-actions button,
.feed-login-box a {
    border: 0;
    border-radius: 18px;
    padding: 12px 22px;
    background: var(--site-primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.feed-composer-actions button:disabled {
    opacity: .6;
    cursor: wait;
}

.feed-posts {
    display: grid;
    gap: 18px;
}

.feed-post {
    padding: 22px;
}

.feed-post-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.feed-post-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--site-primary), white 72%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    font-weight: 900;
    font-size: 22px;
}

.feed-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-post-name {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: 900;
}

.feed-post-head small {
    opacity: .62;
}

.feed-post-content {
    line-height: 1.85;
    white-space: normal;
    font-size: 16px;
}

.feed-post-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.feed-post-actions button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(0,0,0,.055);
    cursor: pointer;
    font-weight: 800;
}

.feed-sidebar {
    position: sticky;
    top: 100px;
}

.feed-side-card,
.feed-login-box,
.feed-empty,
.feed-loading {
    padding: 24px;
}

.feed-login-box {
    margin-bottom: 22px;
}

.feed-login-box h2,
.feed-side-card h2 {
    margin: 0 0 10px;
}

.feed-login-box p,
.feed-side-card p {
    margin: 0 0 16px;
    line-height: 1.8;
    opacity: .72;
}

.feed-login-box a {
    display: inline-flex;
    margin-inline-end: 8px;
}

@media (max-width: 900px) {
    .feed-layout {
        grid-template-columns: 1fr;
    }

    .feed-sidebar {
        position: static;
    }
}

.feed-comments {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.feed-comments-list {
    display: grid;
    gap: 14px;
}

.feed-comment {
    display: flex;
    gap: 12px;
}

.feed-comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0,0,0,.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    font-weight: 900;
}

.feed-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-comment-body {
    flex: 1;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(0,0,0,.04);
}

.feed-comment-name {
    display: block;
    font-weight: 900;
    color: inherit;
    text-decoration: none;
    margin-bottom: 6px;
}

.feed-comment-content {
    line-height: 1.7;
}

.feed-comment-body small {
    display: block;
    margin-top: 8px;
    opacity: .55;
}

.feed-comment-form {
    margin-top: 16px;
}

.feed-comment-form textarea {
    width: 100%;
    min-height: 80px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.1);
    padding: 14px;
    resize: vertical;
    font: inherit;
}

.feed-comment-form button {
    margin-top: 10px;
    border: 0;
    border-radius: 16px;
    padding: 10px 18px;
    background: var(--site-primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.toggle-reaction-btn.is-active {
    background:
            color-mix(
                    in srgb,
                    var(--site-primary),
                    white 74%
            );

    color: var(--site-primary);
}

.reaction-count {
    margin-inline-start: 4px;
    font-weight: 900;
}

.reaction-picker-wrap {
    position: relative;
    display: inline-flex;
}

.reaction-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    inset-inline-start: 0;
    display: flex;
    gap: 6px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 14px 40px rgba(0,0,0,.14);
    opacity: 0;
    transform: translateY(8px) scale(.96);
    pointer-events: none;
    transition: .18s ease;
    z-index: 10;
}

.reaction-picker-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-top: 6px;
}

.reaction-picker {
    position: absolute;
    bottom: calc(100% - 2px);
    inset-inline-start: 0;

    display: flex;
    gap: 6px;

    padding: 8px 10px;
    border-radius: 999px;

    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 40px rgba(0,0,0,.14);

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px) scale(.96);
    transition:
            opacity .18s ease,
            transform .18s ease,
            visibility .18s ease;

    z-index: 30;
}

.reaction-picker-wrap.is-open .reaction-picker {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.reaction-option {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-size: 22px;

    transition: transform .16s ease;
}

.reaction-option:hover {
    transform: translateY(-5px) scale(1.18);
}

.open-reaction-picker-btn {
    border: 0;
    background: rgba(0,0,0,.055);
    border-radius: 999px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: 900;
}

.reaction-picker-wrap {
    position: relative;
    z-index: 20;
}

.reaction-picker-wrap.is-open {
    z-index: 999;
}

.reaction-picker {
    z-index: 1000;
    pointer-events: auto;
}

.reaction-option {
    position: relative;
    z-index: 1001;
    pointer-events: auto;
}