* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: black;
    line-height: 1.6;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: 20%;
    background: white;
    min-height: 100vh;
    position: fixed;
    left: 3%;
    top: 0;
    border-right: 1px solid #F4F4F5;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 67px;
    height: 67px;
    border-radius: 20px;
    overflow: hidden;
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    color: black;
    line-height: 1.2;
}

.sidebar-nav {
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 0 8px;
    text-decoration: none;
    color: black;
    transition: background-color 0.2s;
    border-radius: 12px;
}

.nav-item:hover {
    background-color: #f0f0f0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    font-size: 20px;
    font-weight: 600;
}

/* QR Code Block */
.qr-code-container {
    width: fit-content;
}

.qr-block {
    padding: 20px;
    background: white;
    border-top: 1px solid #F4F4F5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-title {
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    color: black;
    margin-bottom: 12px;
    line-height: 1.3;
}

.qr-description {
    font-size: 15px;
    font-weight: 400;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
}

.qr-code {
    margin: 24px 0;
}

.qr-code img {
    width: 240px;
    height: 240px;
    display: block;
}

.qr-instruction {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-align: left;
    line-height: 1.4;
}

/* Active navigation item */
.nav-item-active {
    background-color: #f0f0f0 !important;
}

/* Footer Links */
.sidebar-footer {
    padding: 0 20px 30px;
    background: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: black;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: 24%;
    min-height: 100vh;
}

/* Header */
.header {
    background: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid #F4F4F5;
}

.header-content {
    max-width: 1300px;
    margin: 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-container {
    position: relative;
    width: 100%;
}

.header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    text-decoration: none;
    color: black;
    height: 40px;
}

.header-tag:hover {
    background: #e0e0e0;
}

.header-tag-arrow {
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    background: #f8f8f8;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #ddd;
    background: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-item:hover {
    background-color: #f8f8f8;
}

.autocomplete-item:last-child {
    border-bottom: none;
}


.header-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 6px 16px;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    height: 28px;
    font-size: 16px;
    line-height: 16px;
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    background: #555;
}

.btn-secondary {
    background: #f0f0f0;
    color: black;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Filter Tags */
.filter-tags {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 0 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    color: black;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 27px;
}

.tag:hover {
    background: #e0e0e0;
}

/* Main Content */
.main-content {
    max-width: 1300px;
    padding: 20px 24px;
    padding-bottom: 65px; /* Add space for bottom navigation */
}

.publications-section {
    max-width: 1300px;
    margin: 0 auto;
}

.title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    color: black;
}

.section-subtitle {
    color: #666;
}

.section-description {
    font-size: 16px;
    font-weight: 400;
    color: black;
    margin-top: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-button {
    background: #333;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 32px;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background: #555;
}

/* Publications Grid */
.publications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 16px;
    margin-bottom: 40px;
}

.publication-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    height: 400px;
    max-width: 242px;
    text-decoration: none;
    width: -webkit-fill-available;
}

.publication-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.publication-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.publication-bookmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 25px;
    height: 24px;
}

.publication-badge {
    position: absolute;
    top: 8px;
    right: 37px;
    height: 24px;
    background: rgba(24, 24, 24, 0.5);
    border-radius: 12px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.publication-badge-icon {
    width: 14px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-badge-number {
    color: white;
    font-size: 12px;
    font-weight: 600;
}


.publication-content {
    padding: 7px;
}

.publication-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: black;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.publication-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* Advertisement Cards */
.ad-card {
    border-radius: 20px;
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    max-width: 242px;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Advertisement Labels - Unified Component */
.ad-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 8px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 57px;
    height: 18px;
    justify-content: center;
}

.ad-label-icon {
    font-size: 12px;
    color: white;
    display: inline-block;
    margin-left: 1px;
    line-height: 1;
    font-weight: bold;
}

/* Advertisement Banner */
.ad-banner {
    width: 100%;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    margin-bottom: 24px;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
    box-sizing: border-box;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: white;
    border-bottom: 1px solid #F4F4F5;
    z-index: 1001;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

.mobile-header-logo {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-download-btn {
    background: black;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 35px;
}

.mobile-download-btn:hover {
    background: #333;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: white;
    border-top: 1px solid #F4F4F5;
    display: none; /* Hidden by default, shown only on mobile */
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 32px;
}

.bottom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: background-color 0.2s;
    border-radius: 8px;
}

.bottom-nav-item:hover {
    background-color: #f8f8f8;
}

.bottom-nav-item-active {
    background-color: #f0f0f0;
}

.bottom-nav-item img {
    width: 21px;
    height: 21px;
    opacity: 1;
    filter: brightness(0);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .sidebar {
        display: none;
    }
    
    .bottom-nav {
        display: flex;
    }

    .main-wrapper {
        margin-left: 0;
    }
    
    .bottom-download-block {
        display: none; /* Hide mobile block on desktop */
    }
    .header-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none; /* Hide scrollbar in Firefox */
        -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    }
    
    .header-tags::-webkit-scrollbar {
        display: none; /* Hide scrollbar in WebKit browsers */
    }

    .header-tag {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
}

@media (max-width: 1200px) and (min-width: 769px) {
    .publications-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        row-gap: 16px;
    }

    .publication-card {
        max-width: none;
        width: 100%;
    }

    .ad-card {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .header {
        display: none;
    }

    .main-content {
        padding: 20px 12px;
        padding-bottom: 65px; /* Add space for bottom navigation */
    }

    .main-wrapper {
        margin-left: 0;
        padding-top: 46px; /* Add space for mobile header */
    }

    .mobile-header {
        display: block;
    }

    .publications-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        row-gap: 12px;
    }

    .publication-card {
        max-width: none;
        width: 100%;
        max-height: calc((100vw - 32px) / 2 * 1.7);
    }

    .publication-image {
        height: calc((100vw - 32px) / 2 * 1.2);
    }

    .ad-card {
        max-width: none;
        width: 100%;
        height: calc((100vw - 32px) / 2 * 1.65);
    }

    .ad-banner {
        aspect-ratio: 2.25;
        height: auto;
    }

    .ad-banner img {
        content: url('mobile_main_ad.png');
        object-fit: cover;
    }

    .section-title {
        font-size: 24px;
    }

    .bottom-title {
        font-size: 24px;
    }

    .bottom-download-block {
        display: block !important;
    }

    .bottom-qr-block {
        display: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 24px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 340px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close img {
    width: 16px;
    height: 16px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: black;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-description {
    font-size: 15px;
    font-weight: 400;
    color: black;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 16px;
}

.modal-ad-info {
    font-size: 14px;
    font-weight: 400;
    color: #62625B;
    text-align: center;
    line-height: 1.4;
}

.modal-qr-code {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.modal-qr-code img {
    width: 200px;
    height: 200px;
}

/* Downloaded Modal Styles */
.downloaded-modal-content {
    text-align: center;
    border-radius: 35px;
    margin-top: 25vh;
    max-width: 350px;
}

.downloaded-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-bottom: 16px;
    line-height: 1.3;
}

.downloaded-modal-description {
    font-size: 16px;
    font-weight: 400;
    color: black;
    margin-bottom: 24px;
    line-height: 1.4;
}

.downloaded-modal-qr-code {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.downloaded-modal-qr-code img {
    width: 240px;
    height: 240px;
    border-radius: 12px;
}

/* Download Modal Styles */
.download-modal-content {
    text-align: center;
    border-radius: 35px;
    margin-top: 25vh;
}

.download-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-bottom: 16px;
    line-height: 1.3;
}

.download-modal-description {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.4;
}

.download-modal-btn {
    background: black;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-bottom: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.download-modal-btn:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

.download-modal-link {
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.download-modal-link:hover {
    color: #666;
}

/* User Actions Modal Styles */
.user-actions-modal-content {
    text-align: center;
    border-radius: 35px;
    margin-top: 15vh;
    max-width: 400px;
    padding: 24px 16px;
}

.user-actions-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-bottom: 16px;
    line-height: 1.3;
}

.user-actions-modal-description {
    font-size: 16px;
    font-weight: 400;
    color: black;
    margin-bottom: 24px;
    line-height: 1.4;
}

.user-actions-modal-qr-code {
    display: flex;
    justify-content: center;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    padding: 20px;
    width: fit-content;
}

.user-actions-modal-qr-code img {
    width: 240px;
    height: 240px;
    border-radius: 12px;
}

.user-actions-modal-instruction {
    font-size: 16px;
    font-weight: 400;
    color: black;
    margin-bottom: 24px;
    line-height: 1.4;
}

.user-actions-modal-link {
    background: transparent;
    color: black;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    display: inline-block;
}

.user-actions-modal-link:hover {
    color: #666;
}

/* Bottom Download Block */
.bottom-download-block {
    max-width: 700px;
    margin: 64px auto 0;
    text-align: center;
    padding: 0 20px;
    display: none; /* Hide on desktop, show on mobile */
}

.bottom-download-title {
    font-size: 26px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 18px;
}

.bottom-download-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #62625B;
    line-height: 1.4;
    margin-bottom: 32px;
}

.bottom-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 300px;
    margin: 0 auto;
}

.bottom-download-btn {
    background: black;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.bottom-download-btn:hover {
    background: #333;
    color: white;
    text-decoration: none;
}

.bottom-open-btn {
    background: transparent;
    color: black;
    border: none;
    border-radius: 25px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.bottom-open-btn:hover {
    background: #f0f0f0;
    color: black;
    text-decoration: none;
}

/* Bottom QR Block */
.bottom-qr-block {
    max-width: 700px;
    margin: 64px auto 0;
    text-align: center;
    padding: 0 20px;
}

.bottom-qr-title {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 18px;
}

.bottom-qr-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #62625B;
    line-height: 1.4;
    margin-bottom: 47px;
}

.bottom-qr-code {
    display: inline-block;
}

.bottom-qr-code img {
    width: 240px;
    height: 240px;
    display: block;
}

.downloaded-button {
    background: transparent;
    color: black;
    border: none;
    border-radius: 25px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 20px auto 0;
}

.downloaded-button:hover {
    background: #f0f0f0;
    color: black;
    text-decoration: none;
}

/* Social Post Block */
.social-post-block {
    max-width: 1100px;
    margin: 25px 5% 0;
}

.social-post-card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    min-height: 400px;
    padding: 24px;
    max-height: 700px;
}

.social-post-image {
    position: relative;
    width: 50%;
    overflow: hidden;
    flex-shrink: 0;
    object-fit: cover;
}

.post-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

/* Social post badges */
.social-post-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.social-post-badge {
    height: 24px;
    background: rgba(24, 24, 24, 0.5);
    border-radius: 12px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-post-badge-icon {
    width: 14px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-post-badge-number {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.social-post-bookmark {
    width: 25px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0px 24px;
    overflow: hidden;
    min-height: 0;
}

/* Hide mobile user block on desktop */
.social-post-mobile-user {
    display: none;
}

.social-post-profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username {
    font-size: 16px;
    font-weight: 600;
    color: black;
}

.subscribe-btn {
    background: black;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.subscribe-btn:hover {
    background: #333;
}

.social-post-description {
    margin-bottom: 20px;
    flex-shrink: 1;
}

.social-post-description p {
    font-size: 16px;
    line-height: 1.5;
    color: black;
    margin: 0;
}

.social-post-products {
    margin-bottom: 32px;
    margin-top: auto;
}

.products-title {
    font-size: 16px;
    font-weight: 600;
    color: black;
    margin-bottom: 12px;
}

.products-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

/* .products-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 8px;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2));
    pointer-events: none;
    z-index: 1;
} */

.product-item {
    flex-shrink: 0;
    width: 90px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.social-post-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-item:last-child {
    margin-left: auto;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action-item:hover {
    opacity: 0.7;
}

.action-icon {
    width: 20px;
    height: 20px;
}

.likes-count {
    font-size: 16px;
    font-weight: 500;
    color: black;
}

/* Mobile responsive styles for social post */
@media (max-width: 768px) {
    .social-post-block {
        padding: 0 0px 30px;
        margin: 25px 2% 0;
    }
    
    .social-post-card {
        flex-direction: column;
        min-height: auto;
        padding: 16px;
        max-height: 100%;
    }
    
    /* Mobile user block above image */
    .social-post-card::before {
        content: '';
        display: block;
        order: -1;
    }
    
    .social-post-mobile-user {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0 16px;
        margin-bottom: 0;
    }
    
    .social-post-mobile-user .profile-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .social-post-mobile-user .profile-avatar {
        width: 32px;
        height: 32px;
    }
    
    .social-post-mobile-user .profile-username {
        font-size: 16px;
        font-weight: 600;
    }
    
    .social-post-mobile-user .subscribe-btn {
        background: black;
        color: white;
        border: none;
        border-radius: 20px;
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 600;
    }
    
    .social-post-image {
        width: 100%;
        order: 0;
    }
    
    .post-main-image {
        border-radius: 16px;
    }
    
    .social-post-content {
        padding: 16px 0 0;
        order: 1;
    }
    
    .social-post-profile {
        display: none; /* Hide desktop profile on mobile */
    }
    
    .social-post-description {
        margin-bottom: 16px;
    }
    
    .social-post-description p {
        display: -webkit-box;
        -webkit-line-clamp: 25;
        line-clamp: 25;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
    }
    
    .social-post-products {
        margin-bottom: 16px;
    }
    
    .social-post-actions {
        margin-top: auto;
    }
    
    .product-item {
        width: 60px;
        height: 60px;
    }
}