/* ==========================================================================
   Original Styles (Project Specific)
   ========================================================================== */

#top-navbar {
    padding: 0px 108.26px 1.067px 108.27px;
    height: 80px;
    border-bottom: 1.067px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
    #top-navbar {
        padding: 0 16px 1.067px 16px;
    }
}

#top-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#top-navbar .navbar-toggler {
    border: none;
    background: transparent;
    padding: 8px;
}

#top-navbar .navbar-toggler:focus {
    box-shadow: none;
}

#top-navbar .navbar-brand {
    height: 80px;
    display: flex;
    align-items: center;
}

#top-navbar .navbar-brand img {
    max-height: 32px;
}

#top-navbar .navbar-search {
    position: relative;
}

#top-navbar .navbar-search svg {
    position: absolute;
    left: 16px;
    bottom: 14.99px;
    width: 16px;
    height: 16px;
}

#top-navbar .navbar-search .form-control {
    border: none;
    background: transparent;
    padding: 14.14px 17.067px 14.92px 49.067px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.40);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

#top-navbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

#top-navbar .navbar-nav>.nav-link {
    padding: 0;
    display: flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

#top-navbar .navbar-nav .notification-count {
    display: flex;
    width: 20px;
    height: 20px;
    padding: 1.465px 0px 2px 0px;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: -4px;
    top: -4px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.10), 0px 4px 6px -4px rgba(0, 0, 0, 0.10);
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
}

.profile-overview {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-share-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.profile-share-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.profile-share-button:active {
    transform: scale(0.95);
}

.profile-share-button svg {
    width: 20px;
    height: 20px;
}

/* Answer Page Styles */
.single-answer-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.answer-header {
    margin-bottom: 2rem;
}

.answer-header .qa-profile {
    position: relative;
}

.answer-share-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(0, 0, 0, 0.6);
}

.answer-share-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.answer-share-button svg {
    width: 18px;
    height: 18px;
}

.answer-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qa-products {
    margin-top: 2rem;
}

.qa-product-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.qa-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qa-product-image-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.qa-product-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.qa-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-product-content {
    flex: 1;
}

.qa-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.qa-product-description {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.qa-product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.qa-product-link:hover {
    text-decoration: underline;
}

.profile-overview-badge {
    display: inline-flex;
    padding: 5.067px;
    padding-right: 22px;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    text-align: center;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.35px;
    margin: 0 auto;
    margin-bottom: 32px;
}

.profile-overview-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
    margin-right: 24px;
}

.profile-overview-badge-icon svg {
    width: 16px;
    height: 16px;
}

.profile-overview-name {
    color: #000;
    text-align: center;
    font-family: "Playfair Display";
    font-size: 128px;
    font-style: normal;
    font-weight: 700;
    line-height: 128px;
    color: rgba(0, 0, 0, 0.70);
    font-family: "Playfair Display";
    font-size: 128px;
    font-style: normal;
    font-weight: 700;
    line-height: 128px;
    margin-bottom: 32px;
}

.profile-overview-about {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
}

.profile-overview-about-spacer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4px;
    height: 24px;
    position: relative;
}

.profile-overview-about-spacer::before {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.40);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-overview-about-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.60);
    text-align: center;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
}

.profile-overview-about-item-badge {
    border-radius: 9999px;
    border: 1px solid rgba(233, 213, 255, 0.50);
    background: linear-gradient(90deg, #FAF5FF 0%, #FDF2F8 100%);
    color: #7E22CE;
    text-align: center;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    padding: 9.067px 17.067px;
}

.profile-overview-about-item-badge svg {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.profile-overview-stats {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}

.profile-overview-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-overview-stats-item-value {
    color: #000;
    text-align: center;
    font-family: Inter;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: .5rem;
}

.profile-overview-stats-item-label {
    color: rgba(0, 0, 0, 0.50);
    text-align: center;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.profile-overview-spacer {
    width: 128px;
    height: 1px;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(192, 132, 252, 0.00) 0%, rgba(192, 132, 252, 0.50) 50%, rgba(192, 132, 252, 0.00) 100%);
}

@media (max-width: 768px) {
    .profile-overview-badge {
        font-size: 13px;
    }

    .profile-overview-name {
        font-size: 48px;
        line-height: 48px;
    }

    .profile-overview-about {
        flex-direction: column;
        gap: 16px;
    }

    .profile-overview-about-spacer {
        display: none;
    }

    .profile-overview-stats {
        gap: 32px;
    }

    .profile-share-button {
        top: -30px;
    }
}

.qa-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 40px;
}

.qa-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
}

.qa-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.qa-profile-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-profile-name {
    display: flex;
    flex-direction: column;
}

.qa-profile-name-text-name {
    color: #000;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.qa-profile-name-text-name a {
    color: inherit !important;
    text-decoration: none !important;
}

.qa-profile-name-text-name a:hover {
    color: inherit;
    text-decoration: none;
}

.qa-profile-name-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(0, 0, 0, 0.50);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.qa-profile-name-text-spacer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4px;
    height: 24px;
    position: relative;
}

.qa-profile-name-text-spacer::before {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.40);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.qa-profile-badge {
    margin-left: auto;
}

.qa-profile-badge-text {
    display: flex;
    padding: 9.067px 17.067px;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.05);
    color: #000;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.3px;
}

.qa-profile-badge-text svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* QA Answer Share Button */
.qa-profile .answer-share-button {
    margin-left: auto;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-profile .answer-share-button:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.qa-profile .answer-share-button svg {
    width: 20px;
    height: 20px;
    color: rgba(0, 0, 0, 0.6);
}

.qa-profile .answer-share-button:hover svg {
    color: rgba(0, 0, 0, 0.8);
}

.qa-question {
    color: #000;
    font-family: "Playfair Display";
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
    margin-bottom: 40px;
}

.qa-answer {
    display: flex;
    padding: 33.567px 41.067px 41.067px 41.067px;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.10), 0px 8px 10px -6px rgba(0, 0, 0, 0.10);
    margin-bottom: 56px;
}

.qa-answer-title {
    display: flex;
    gap: 8px;
    color: rgba(0, 0, 0, 0.60);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.35px;
    margin-bottom: 24px;
    align-items: center;
}

.qa-answer-title-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.qa-answer-title-text {
    display: inline-block;
}

.qa-answer-title-content .badge {
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 768px) {
    .qa-answer-title {
        align-items: flex-start;
    }

    .qa-answer-title-icon {
        flex-shrink: 0;
    }

    .qa-answer-title-content {
        align-items: flex-start;
        gap: 4px;
    }

    .qa-answer-title .badge {
        margin-left: 0;
    }
    
    .qa-answer {
        margin-bottom: 0px;
    }
}

.qa-answer-title-icon {
    display: flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
    color: #FFF;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
}

.qa-answer-text,
.qa-answer-text.markdown-content {
    color: rgba(0, 0, 0, 0.70);
    font-family: Inter;
    font-size: 20.104px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.146px;
}

@media (max-width: 767.98px) {
    .qa-answer-text,
    .qa-answer-text.markdown-content {
        font-size: 18.23px;
        line-height: 29.624px;
    }
}

.qa-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    height: 600px;
    touch-action: pan-y;
}

.qa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-image-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.qa-image-description {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(216, 180, 254, 0.50);
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.90) 0%, rgba(236, 72, 153, 0.90) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    color: #FFF;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 2px;
}

.qa-image-source {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
    color: rgba(0, 0, 0, 0.7);
    font-size: 10px;
    font-style: italic;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 2px;
}

.qa-image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.05);
}

/* Desktop CTA - only visible on desktop */
.qa-cta.desktop-only {
    display: flex;
}

/* Mobile CTA - hidden by default, shown on mobile */
.qa-cta.mobile-only {
    display: none;
}

.btn.btn-cta {
    display: flex;
    padding: 19.205px 40px 20px 56px;
    align-items: center;
    border-radius: 16px;
    background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

#qa-container {
    display: flex;
    flex-direction: column;
    gap: 128px;
}

.container {
    max-width: 1220px;
}

.qa-item {
    display: flex;
    gap: 80px;
    align-items: center;
    position: relative;
}

.qa-item-content {
    flex: 0 1 60%;
    max-width: 60%;
}

.qa-image-container {
    flex: 0 1 40%;
    max-width: 40%;
}

.qa-image-placeholder {
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

@media (max-width: 768px) {

    /* Prevent horizontal scrolling on mobile */
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    #qa-container {
        gap: 80px;
        /* Reduce gap between items on mobile */
    }

    .qa-question {
        font-size: 30.384px;
        line-height: 37.98px;
    }

    .qa-answer {
        padding: 32px;
    }

    .qa-item {
        flex-direction: column;
        gap: 48px;
        position: relative;
    }

    .qa-item-content {
        max-width: 100%;
        position: relative;
    }

    /* Hide desktop CTA on mobile */
    .qa-cta.desktop-only {
        display: none !important;
    }

    /* Show and make mobile CTA sticky */
    .qa-cta.mobile-only {
        display: flex !important;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        width: calc(100% + 32px);
        margin-left: -16px;
        margin-right: -16px;
        z-index: 100;
        background: linear-gradient(to top,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 1) 85%,
                rgba(255, 255, 255, 0.95) 95%,
                rgba(255, 255, 255, 0) 100%);
        padding: 16px;
        margin-top: -60px;
        /* Pull it up to overlap with image */
        box-sizing: border-box;
    }

    /* Dark mode gradient for sticky mobile CTA */
    body.dark .qa-cta.mobile-only {
        background: linear-gradient(to top,
                rgba(18, 18, 18, 1) 0%,
                rgba(18, 18, 18, 1) 85%,
                rgba(18, 18, 18, 0.95) 95%,
                rgba(18, 18, 18, 0) 100%);
    }

    .qa-cta.mobile-only .btn-cta {
        width: 100%;
        margin: 0;
        justify-content: center;
        border-radius: 12px;
        padding: 16px 24px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .qa-image-container {
        max-width: 100%;
        flex: 1 1 100%;
        width: 100%;
    }

    /* Ensure images are properly displayed on mobile */
    .qa-image {
        height: 400px;
        min-height: 300px;
    }

    .qa-carousel-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .qa-image-placeholder {
        padding: 16px;
    }
}

#posts-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
}

.posts-section {
    padding: 30px 0;
}

/* Reduce spacing between consecutive sections */
.posts-section+.posts-section {
    padding-top: 30px;
}

/* Remove background from posts-section on brand page */
.page-brand .posts-section {
    background-color: transparent;
}

.posts-container {
    padding: 0 15px;
    max-width: none;
}

.posts-feed {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.posts-title {
    color: #111827;
    text-align: center;
    font-family: Inter;
    font-size: 36.188px;
    font-style: normal;
    font-weight: 700;
    line-height: 40.209px;
    padding: 16px 0;
}

.posts-title-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    color: #A855F7;
}

.posts-title-icon i {
    color: #A855F7;
}

.posts-title-text {
    color: #4B5563;
    text-align: center;
    font-family: Inter;
    font-size: 18.094px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.146px;
    margin-bottom: 30px;
}

.post-card {
    max-width: 836px;
    width: 100%;
    border-radius: 24.125px;
    border: 1.005px solid #F3F4F6;
    background: #FFF;
    box-shadow: 0px 10.052px 15.078px -3.016px rgba(0, 0, 0, 0.10), 0px 4.021px 6.031px -4.021px rgba(0, 0, 0, 0.10);
    margin-bottom: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 15px 25px -5px rgba(0, 0, 0, 0.15), 0px 6px 10px -4px rgba(0, 0, 0, 0.15);
}

.posts-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 24px;
}

.posts-tags-item {
    display: flex;
    padding: 9.114px 17.156px;
    align-items: center;
    border-radius: 10051.14px;
    border: 1.005px solid #E5E7EB;
    background: #FFF;
}

.posts-tags-item-text {
    color: #374151;
    text-align: center;
    font-family: Inter;
    font-size: 14.073px;
    font-style: normal;
    font-weight: 500;
    line-height: 20.104px;
    margin-right: 8px;
}

.posts-tags-item-count {
    display: flex;
    padding: 4.021px 8.042px;
    flex-direction: column;
    align-items: center;
    border-radius: 10051.14px;
    background: #F3F4F6;
    color: #4B5563;
    text-align: center;
    font-family: Inter;
    font-size: 12.063px;
    font-style: normal;
    font-weight: 500;
    line-height: 16.083px;
    /* 133.333% */
}

.posts-tags-item.active {
    border-radius: 10051.14px;
    background: #A855F7;
    box-shadow: 0px 10.052px 15.078px -3.016px rgba(0, 0, 0, 0.10), 0px 4.021px 6.031px -4.021px rgba(0, 0, 0, 0.10);
}

.posts-tags-item.active .posts-tags-item-text {
    color: #fff;
}

.posts-tags-item.active .posts-tags-item-count {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
}

.post-card-header {
    padding: 24px 24px 16px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 100%;
}

.post-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}

.post-card-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-name {
    display: flex;
    flex-direction: column;
}

.post-card-name-text-name {
    color: #111827;
    font-family: Inter;
    font-size: 16.083px;
    font-style: normal;
    font-weight: 600;
    line-height: 24.125px;
    /* 150% */
}

.post-card-name-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-name-text span {
    color: #6B7280;
    font-family: Inter;
    font-size: 14.073px;
    font-style: normal;
    font-weight: 400;
    line-height: 20.104px;
    /* 142.857% */
}

.post-card-tags {
    display: flex;
    gap: 8px;
    padding: 0 24px 16px 24px;
    align-items: center;
    flex-wrap: wrap;
}

.post-card-tag {
    display: inline-flex;
    padding: 4px 12px;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.05);
    color: #6B7280;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
}

.post-card-share {
    margin-left: auto;
}

.post-card-share span {
    padding: 8px;
}

.post-card-share svg {
    width: 21px;
    height: 21px;
}

.post-message {
    color: #111827;
    font-family: Inter;
    font-size: 18.094px;
    font-style: normal;
    font-weight: 400;
    line-height: 28.146px;
    padding: 0 24px 32px 24px;
}

.post-message span {
    font-weight: 600;
}

/* When post has tags, reduce bottom padding */
.post-card:has(.post-card-tags) .post-message {
    padding-bottom: 0;
}

/* Post CTA styles can be added here when needed */

/* Mobile Navigation Styles */
.mobile-nav-section .btn {
    min-height: 70px;
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
}

.mobile-nav-section .btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.mobile-nav-section .btn small {
    font-size: 11px;
    font-weight: 500;
}

.mobile-search-section .input-group-text {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

.mobile-search-section .form-control {
    border-color: rgba(0, 0, 0, 0.1);
}

.mobile-search-section .form-control:focus {
    border-color: #A855F7;
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    padding: 24px 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--gray-200);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent .container {
    max-width: 800px;
}

.cookie-consent h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.cookie-consent p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.cookie-consent .cookieText {
    margin-bottom: 20px;
}

.cookie-consent label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
    cursor: pointer;
}

.cookie-consent .cookieButtons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-consent .cookieButtons {
        flex-direction: column;
    }

    .cookie-consent .cookieButtons .btn {
        width: 100%;
    }
}

.cookie-consent .cookieButtons .btn:not(.btn-link) {
    flex: 1;
}

/* Enhanced Offcanvas Menu Styling */
.offcanvas {
    background: white;
    width: 320px !important;
    box-shadow: var(--shadow-xl);
}

.offcanvas-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.offcanvas-header {
    padding: 16px 20px;
    border-bottom: none;
    background: transparent;
    justify-content: flex-end;
}

.offcanvas-header .btn-close {
    background: var(--gray-100);
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    opacity: 1;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-image: none;
    color: var(--gray-700);
    font-size: 1.25rem;
}

.offcanvas-header .btn-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.offcanvas-body {
    padding: 0;
}

/* Mobile Navigation Section */
.mobile-nav-section {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-section .btn-outline-secondary {
    min-height: 70px;
}

.mobile-nav-section .btn-outline-secondary svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-section small {
    font-size: 11px;
    font-weight: 500;
}

/* Menu Separator */
.menu-separator {
    margin: 0;
    border-color: #E5E7EB;
}

/* User Section */
.user-section {
    padding: 0;
}

.user-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    padding: 24px;
    margin-bottom: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-wrapper .avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success-color);
    border: 2px solid white;
    border-radius: var(--radius-full);
}

.user-details h6 {
    font-size: 18px;
    margin: 0 0 4px 0;
}

.user-actions {
    padding: 0 20px;
}

/* Auth Section - Container is just a wrapper, card styling is on auth-form-card */

.auth-section {
    padding: 32px 24px;
}

.auth-welcome {
    text-align: center;
    margin-bottom: 32px;
}

.welcome-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-welcome h5 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-welcome p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 280px;
}

.btn-auth {
    width: 100%;
    margin-bottom: 16px;
}

.auth-divider {
    text-align: center;
    margin: 24px 0 16px 0;
    position: relative;
}

.auth-divider span {
    background: white;
    padding: 0 16px;
    color: var(--gray-400);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

/* Navigation Links */
.offcanvas .nav {
    padding: 20px;
}

.offcanvas .nav-link {
    color: #374151;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: Inter;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.offcanvas .nav-link:hover {
    background: #F9FAFB;
    color: #1F2937;
}

.offcanvas .nav-link.active {
    background: linear-gradient(90deg, #A855F7 0%, #EC4899 100%);
    color: white;
}

.offcanvas .nav-link i {
    width: 20px;
    text-align: center;
}

/* Language Section */
.language-section {
    padding: 20px;
    border-top: 1px solid #E5E7EB;
}

.language-section .dropdown-toggle {
    background: white;
    border: 1px solid #E5E7EB;
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: Inter;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-section .dropdown-toggle:hover {
    background: #F9FAFB;
}

.language-section .dropdown-menu {
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.language-section .dropdown-item {
    padding: 8px 16px;
    font-family: Inter;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-section .dropdown-item:hover {
    background: #F9FAFB;
}

footer .container {
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    margin-top: 5rem;
    padding: 60px 0 30px;
}

footer .footer-main {
    margin-bottom: 40px;
}

footer .footer-col {
    margin-bottom: 30px;
}

footer .footer-logo {
    margin-bottom: 1rem;
}

footer .footer-logo img {
    max-height: 2rem;
}

footer .footer-tagline {
    color: rgba(0, 0, 0, 0.60);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(0, 0, 0, 0.70);
    font-size: 14px;
}

footer .footer-contact-item i {
    font-size: 16px;
    color: var(--primary-color);
}

footer .footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-contact-item a:hover {
    color: var(--primary-color);
}

footer .footer-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 1.25rem;
}

footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

footer .footer-links a {
    color: rgba(0, 0, 0, 0.70);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

footer .footer-links a:hover {
    color: var(--primary-color);
}

footer .social-icons {
    display: flex;
    gap: 0.75rem;
}

footer .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.70);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.2s;
}

footer .social-icons a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

footer .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.50);
    font-size: 14px;
}

/* Dark theme footer styles */
body.dark footer .container {
    border-top-color: rgba(255, 255, 255, 0.10);
}

body.dark footer .footer-tagline {
    color: rgba(255, 255, 255, 0.60);
}

body.dark footer .footer-contact-item {
    color: rgba(255, 255, 255, 0.70);
}

body.dark footer .footer-title {
    color: rgba(255, 255, 255, 0.85);
}

body.dark footer .footer-links a {
    color: rgba(255, 255, 255, 0.70);
}

body.dark footer .social-icons a {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.70);
}

body.dark footer .social-icons a:hover {
    background: var(--primary-color);
    color: #fff;
}

body.dark footer .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.50);
}

/* Footer mobile responsiveness */
@media (max-width: 767.98px) {
    footer .footer-col {
        text-align: center;
    }

    footer .footer-logo {
        justify-content: center;
        display: flex;
    }

    footer .footer-contact {
        align-items: center;
    }

    footer .footer-links ul {
        align-items: center;
    }

    footer .social-icons {
        justify-content: center;
    }
}

/* Full Width Ad Styles
   ========================================================================== */
.ad-placeholder {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Parallax scrolling ad banner */
.ad-placeholder.parallax {
    height: 400px;
    /* Fixed height for the viewport window */
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Add overlay for better text visibility if needed */
.ad-placeholder.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 70%,
            rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Different heights for variety */
.ad-placeholder.parallax.tall {
    height: 500px;
}

.ad-placeholder.parallax.medium {
    height: 350px;
}

.ad-placeholder.parallax.short {
    height: 250px;
}

/* Mobile adjustments for parallax ads */
@media (max-width: 768px) {
    .posts-section {
       /* min-height: 100vh;*/
    }

    .ad-placeholder.parallax {
        height: 250px;
        /* On mobile, use background-attachment: scroll for better performance */
        background-attachment: scroll;
        background-position: center center;
    }

    .ad-placeholder.parallax.tall {
        height: 300px;
    }

    .ad-placeholder.parallax.medium {
        height: 250px;
    }

    .ad-placeholder.parallax.short {
        height: 200px;
    }
}

/* Fallback for non-parallax ad placeholders */
.ad-placeholder img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Adjust ad placeholder card styles */
.ad-placeholder.card {
    border: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
}

/* ==========================================================================