/* Community Page Styles - Consolidated */

:root {
    --swiper-navigation-size: 16px !important;
}


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

.community-container {
    display: flex;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 50px;
}

/* Ads Section */ sdfsdfsdf
.ads-section {
    width: 200px;
}

.ads-box {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: sticky;
    overflow: hidden;
    top: 100px;
}

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

.ads-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.ads-overlay h3 {
    font-size: 18px;
    font-family: "Roboto", serif;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.ads-overlay p {
    color: #666;
    font-size: 14px;
    font-family: "Roboto", serif;
    margin: 0;
}

/* Posts Section */
.posts-section {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.post-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    padding: 15px;
}

.profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username {
    font-size: 20px;
    font-family: "Roboto", serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.post-date {
    font-size: 15px;
    font-family: "Roboto", serif;
    color: #666;
    padding-top: 3px;
}

.under-review-tag {
    background: #ff9800;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-family: "Roboto", serif;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 10px;
}

/* ================================================ */
/* FIXED POST MENU STYLES - Consolidated Here */
/* ================================================ */

.post-menu {
    position: relative;
    margin-left: auto;
    z-index: 100;
}

.post-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background 0.2s;
}

.post-menu-btn:hover {
    background: #f5f5f5;
}

.post-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Dropdown Menu - FIXED VERSION */
.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.post-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: "Roboto", serif;
    color: #333;
    transition: background 0.2s;
    text-align: left;
}

.menu-item:first-child {
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item svg {
    flex-shrink: 0;
}

.menu-item.delete-post-btn {
    color: #dc3545;
}

.menu-item.delete-post-btn:hover {
    background: #fff5f5;
}

/* Hide menu for system posts */
.post-menu[style*="display: none"] {
    display: none !important;
}

/* Post Content */
.post-text {
    font-size: 18px;
    font-family: "Roboto", serif;
    line-height: 1.5;
    color: #333;
    padding: 0px 15px 15px 15px;
}

/* Carousel */
.post-images {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #f0f0f0;
}

.carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Post Actions */
.post-actions {
    display: flex;
    gap: 15px;
    border-top: 1px solid #ddd;
    height: 70px;
}

.action-btn {
    flex: 1;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    font-family: "Roboto", serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    transition: background 0.2s;
}

.btndevider {
    width: 0px;
    margin: 0 5px;
    border-right: 1px solid #ddd;
}

.action-btn:hover {
    background: #f5f5f5;
}

.action-btn span {
    font-size: 22px;
}

/* Like button */
.action-btn.like-btn.liked {
    color: #f91880;
}

.action-btn.like-btn.liked .like-icon {
    animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}




.like-count {
    font-weight: 600;
    color: #666;
}

.action-btn.like-btn.liked .like-count {
    color: #e74c3c;
}

/* Action icons for buttons */
.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.action-icon svg {
    width: 100%;
    height: 100%;
}

.action-count {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-left: 4px;
}

.action-btn.liked .action-count {
    color: #f91880;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: #f5f5f5;
}

.modal-body {
    display: flex;
    height: 85vh;
}

.modal-left {
    flex: 0 0 70%;
    padding: 20px;
    overflow-y: auto;
}

.modal-right {
    flex: 0 0 30%;
    border-left: 1px solid #ddd;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Modal Post Header */
.modal-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.modal-profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.modal-user-info {
    display: flex;
    flex-direction: column;
}

.modal-username {
    font-size: 16px;
    font-family: "Roboto", serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.modal-post-date {
    font-size: 13px;
    font-family: "Roboto", serif;
    color: #666;
}

.modal-post-text {
    font-size: 16px;
    font-family: "Roboto", serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

/* Modal Carousel */
.modal-images {
    position: relative;
    width: 100%;
}
#fullpageModalMedia-in{
    display: none;
}


.modal-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.modal-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-carousel img.active {
    opacity: 1;
}

/* Comments */
.modal-right h3 {
    font-size: 18px;
    font-family: "Roboto", serif;
    margin-bottom: 20px;
    color: #333;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-content h5 {
    font-size: 14px;
    font-family: "Roboto", serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.comment-date {
    font-size: 12px;
    font-family: "Roboto", serif;
    color: #999;
    margin-bottom: 5px;
}

.comment-content p {
    font-size: 14px;
    font-family: "Roboto", serif;
    line-height: 1.4;
    color: #555;
    word-wrap: break-word;
}

.comment-input {
    display: flex;
    gap: 10px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.comment-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    font-family: "Roboto", serif;
    outline: none;
}

.comment-input input:focus {
    border-color: #9fcd22;
}

.submit-comment-btn {
    padding: 10px 20px;
    background: #9fcd22;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-family: "Roboto", serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-comment-btn:hover:not(:disabled) {
    background: #8db91e;
}

.submit-comment-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
    font-family: "Roboto", serif;
}

.comments-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Write Post Section */
.write-post {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.write-post-form {
    display: flex;
    flex-direction: column;
}

/* Post Creator Header */
.post-creator-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    flex-shrink: 0;
}

.user-avatar .profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.post-input {
        flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 15px;
    font-family: "Roboto", serif;
    outline: none;
    transition: border-color 0.3s;
    background: #f5f5f500;
}

.post-input:focus {
    border-color: #45bd62;
    background: white;
}

.post-input::placeholder {
    color: #999;
}

/* File Previews */
.file-previews {
    display: none;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
    padding: 0 10px;
}

#postFileInfo {
    display: none;
}

.file-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

textarea#postText {
    border: none;
}

.video-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.video-preview svg {
    margin-bottom: 5px;
}

.video-preview span {
    font-size: 12px;
    text-align: center;
    padding: 0 5px;
    word-break: break-all;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.remove-file:hover {
    background: rgba(0, 0, 0, 0.9);
}

.post-file-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Post Actions for Write Post */
.post-actions-write {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #0000003b;
}

.post-actions-write .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 21px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    color: #666;
    font-family: "Roboto", serif;
    border-right: 1px solid #0000003b;
}

.post-actions-write .action-btn:hover {
    background: #f5f5f5;
}

.post-actions-write .action-btn svg {
    width: 35px;
    height: 35px;
}

.post-actions-write .action-btn span {
    font-weight: 500;
}

/* Post Submit Button */
.postSubmitBtn-creatre {
    letter-spacing: 0.7px;
    padding: 10px 24px;
    background: #9fcd22;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-family: "Roboto", serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-right: 12px;
}

.postSubmitBtn-creatre:hover:not(:disabled) {
    background: #8db91e;
}

.postSubmitBtn-creatre:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Upload Loader */
.postUploadLoader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    color: #65676b;
    font-size: 14px;
}

.postUploadLoader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid #9fcd22;
    border-right: 4px solid #9fcd22;
    border-radius: 50%;
    animation: spin 0.8s ease-in-out infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.postUploadLoader span {
    font-size: 14px;
    color: #666;
}

/* Edit Modal Styles */
.edit-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-modal-body {
    padding: 30px;
}

.edit-modal-body h3 {
    margin-bottom: 20px;
    font-size: 24px;
    font-family: "Roboto", serif;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.edit-post-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: "Roboto", serif;
    resize: vertical;
    outline: none;
}

.edit-post-textarea:focus {
    border-color: #9fcd22;
}

.existing-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.existing-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
}

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

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cancelBtn {
    padding: 10px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-family: "Roboto", serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.cancelBtn:hover {
    background: #5a6268;
}

.editUploadLoader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    color: #65676b;
    font-size: 14px;
}

.editUploadLoader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.05);
    border-top: 4px solid #9fcd22;
    border-right: 4px solid #9fcd22;
    border-radius: 50%;
    animation: spin 0.8s ease-in-out infinite;
}

/* Cards Carousel Styles */
.post-cards-section {
    border: none;
}

.cards-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
    padding: 0 10px;
}

.cards-title-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cards-count {
    font-size: 12px;
    color: #666;
    background: #f0f2f5;
    padding: 4px 10px;
    border-radius: 12px;
}

.cards-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 10px;
}

.cards-carousel-container {
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 15px 0;
}

.cards-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease-in-out;
    padding: 0 10px;
}

.product-card {
    flex: 0 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 180px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.whatsapp-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 12px;
    font-family: "Roboto", serif;
}

.product-name {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    font-family: "Roboto", serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    height: 40px;
    font-family: "Roboto", serif;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 12px;
    font-family: "Roboto", serif;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.product-link:hover {
    background: #2980b9;
}

.whatsapp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #25D366;
    color: white;
    border: none;
    font-family: "Roboto", serif;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.call-btn {
    flex: 1;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #797412;
    color: white;
    border: none;
    font-family: "Roboto", serif;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.buy-now-btn {
    flex: 1;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background:#9fcd22;
    color: white;
    border: none;
    font-family: "Roboto", serif;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}
.whatsapp-btn:hover {
    background: #1DA851;
}

.whatsapp-btn svg {
    flex-shrink: 0;
    font-family: "Roboto", serif;
}

/* Carousel Navigation Buttons */
.cards-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.cards-nav-btn:hover {
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cards-nav-btn svg {
    stroke-width: 3;
}

.cards-prev-btn {
    left: 0;
}

.cards-next-btn {
    right: 0;
}

/* System post specific card styles */
.post-cards-section {
    border: none;
    margin-top: 29px;
    width: 100%;
}

.cards-title-text {
    color: #7d7d7d;
    font-family: "Roboto", serif;
    font-weight: 700;
    font-size: 18px;
}

.cards-count {
    font-family: "Roboto", serif;
    background: #575656;
    color: white;
}

/* Fullpage Post Modal - Cleaned up */
.fullpage-post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullpage-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    background: white;
}

.fullpage-modal-media {
    flex: 1.5;
    min-width: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fullpage-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fullpage-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullpage-image-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.fullpage-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fullpage-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.fullpage-nav-btn.prev {
    left: 20px;
}

.fullpage-nav-btn.next {
    right: 20px;
}

.fullpage-no-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.fullpage-no-media .no-media-icon {
    margin-bottom: 20px;
    opacity: 0.6;
}

.fullpage-no-media p {
    font-size: 18px;
    color: #666;
}

.fullpage-modal-details {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
}

.fullpage-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

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

.fullpage-profile-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.fullpage-username {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #262626;
}

.fullpage-post-time {
    font-size: 13px;
    color: #8e8e8e;
}

.fullpage-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #262626;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.fullpage-modal-close:hover {
    background: #f0f0f0;
}

/* Fullpage Post Menu */
.fullpage-post-menu {
    position: relative;
    margin-left: auto;
    z-index: 1001;
}

.fullpage-post-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: #666;
}

.fullpage-post-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.fullpage-post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1001;
    display: none;
}

.fullpage-post-menu-dropdown.active {
    display: block;
}

.fullpage-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
    transition: background-color 0.2s;
}

.fullpage-menu-item:hover {
    background-color: #f5f5f5;
}

.fullpage-menu-item svg {
    flex-shrink: 0;
}

.fullpage-menu-item.fullpage-edit-post-btn {
    color: #3498db;
}

.fullpage-menu-item.fullpage-delete-post-btn {
    color: #e74c3c;
}

.fullpage-comments-section {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.fullpage-post-text {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.fullpage-post-text-content {
    display: flex;
    gap: 12px;
}

.fullpage-post-text-body {
    flex: 1;
}

.fullpage-post-text-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fullpage-post-text-header strong {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.fullpage-post-text-header span {
    font-size: 12px;
    color: #8e8e8e;
}

.fullpage-post-text p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #262626;
}

.fullpage-comments-list {
    min-height: 200px;
}

.fullpage-comments-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #8e8e8e;
    gap: 10px;
}

.fullpage-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0095f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.fullpage-comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    align-items: start;
    border-bottom: 1px solid #fafafa;
    margin-bottom: 23px;
}

.fullpage-comment-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fullpage-comment-content {
    background: #0000000f;
    padding: 10px 15px;
    border-radius: 20px;
    position: relative;
    WIDTH: max-content;
    min-width: 150px;
}
header.is-sticky, .nav-container.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    z-index: 1000000;
    background: #fff;
}

.fullpage-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.fullpage-comment-author {
    font-size: 15px;
    font-weight: 800;
    font-family: "Roboto", serif;
    color: #323232;
    letter-spacing: 0.5px;
}

.fullpage-comment-time {
   font-size: 12px;
    color: #4c4a4a;
    font-family: "Roboto", serif;
    position: absolute;
    bottom: -17px;
}

.fullpage-comment-text {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-family: "Roboto", serif;
    line-height: 1.4;
    color: #262626;
}

.fullpage-comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 119px;
    bottom: -26px;
}

.fullpage-comment-like,
.fullpage-comment-reply {
    background: none;
    border: none;
    font-size: 12px;
    color: #8e8e8e;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.fullpage-comment-like:hover,
.fullpage-comment-reply:hover {
    text-decoration: underline;
}

.fullpage-comment-dot {
    color: #8e8e8e;
    font-size: 12px;
}

.fullpage-no-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #8e8e8e;
    text-align: center;
}

.fullpage-no-comments .no-comments-icon {
    margin-bottom: 15px;
    opacity: 0.6;
}

.fullpage-comments-error {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
    font-size: 14px;
}

.fullpage-post-actions {
    border-top: 1px solid #ddd;
}

.fullpage-action-buttons {
    display: flex;
    margin-bottom: 10px;
    margin-top: 10px;
    justify-content: space-between;
}

.fullpage-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 24px;
    transition: transform 0.2s;
    width: 30%;
    border-right: 1px solid #00000024;
}

.fullpage-action-btn:hover {
    transform: scale(1.1);
}

.fullpage-action-btn.liked {
    color: #f91880;
}

.fullpage-action-icon {
   display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.fullpage-post-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fullpage-likes-count {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
}

.fullpage-time-ago {
    font-size: 12px;
    color: #8e8e8e;
}

.fullpage-add-comment {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #efefef;
}

.fullpage-comment-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid #dbdbdb;
    border-radius: 25px;
    padding: 4px 16px;
    background: #fafafa;
    width: 85%;
}

.fullpage-comment-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    background: transparent;
    color: #262626;
}

.fullpage-comment-input:read-only {
    opacity: 0.6;
    cursor: not-allowed;
}

.fullpage-comment-input::placeholder {
    color: #8e8e8e;
}

.fullpage-comment-submit {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
    margin-left: 8px;
}

.fullpage-comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fullpage-comment-submit:hover:not(:disabled) {
    color: #007acc;
}

.fullpage-comment-delete {
        background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
    margin-left: 4px;
    transition: color 0.2s;
    background: #e74c3c;
    padding: 2px 10px;
    border-radius: 4px;
}





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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

div#deleteConfirmModal {
    z-index: 2000000000;
}

#editPostModal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;

}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-family: "Roboto", serif;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

.modal-header .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-header .modal-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: "Roboto", serif;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Roboto", serif;
    transition: all 0.3s;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #9fcd22;
    background: white;
    box-shadow: 0 0 0 3px rgba(159, 205, 34, 0.1);
}

#editPostText {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

/* Existing Images Container */
.existing-images-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 2px dashed #ddd;
}

.existing-images-container h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #fff9f9;
    font-weight: 600;
}

.existing-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.existing-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.existing-image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* File Upload Section */
#editPostFiles {
    width: 100%;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

#editPostFiles:hover {
    border-color: #9fcd22;
    background: #f8fff0;
}

#editPostFiles::file-selector-button {
    background: #9fcd22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

#editPostFiles::file-selector-button:hover {
    background: #8db91e;
}

#editPostFilePreviews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.text-muted {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: "Roboto", serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #9fcd22, #8db91e);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #8db91e, #7ca917);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 205, 34, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9fcd22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Delete Confirmation Modal */
#deleteConfirmModal .modal-content {
    max-width: 500px;
    text-align: center;
}

#deleteConfirmModal .modal-body p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    padding: 20px 0;
}

#deleteConfirmModal .form-actions {
    justify-content: center;
    border-top: none;
    padding-top: 0;
}

/* Responsive Design */
/* @media (max-width: 768px) {
    #editPostModal .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .existing-image {
        width: 80px;
        height: 80px;
    }
} */

/* @media (max-width: 480px) {
    .modal-header h3 {
        font-size: 18px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-control {
        padding: 12px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .existing-images {
        gap: 10px;
    }

    .existing-image {
        width: 70px;
        height: 70px;
    }
} */

/* Animation for modal appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    animation: fadeIn 0.3s ease-out;
}

/* Custom scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.modal-close:focus {
    outline: 2px solid #9fcd22;
    outline-offset: 2px;
}

/* Dark mode support
@media (prefers-color-scheme: dark) {
    #editPostModal .modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .modal-header {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    }

    .modal-header h3 {
        color: #ecf0f1;
    }

    .form-control {
        background: #34495e;
        border-color: #4a6572;
        color: #ecf0f1;
    }

    .form-control:focus {
        border-color: #9fcd22;
        background: #3b4f63;
    }

    .existing-images-container {
        background: #34495e;
        border-color: #4a6572;
    }

    #editPostFiles {
        background: #34495e;
        border-color: #4a6572;
        color: #ecf0f1;
    }

    .text-muted {
        color: #bdc3c7;
    }

    .btn-secondary {
        background: #7f8c8d;
    }

    .modal-content::-webkit-scrollbar-track {
        background: #34495e;
    }

    .modal-content::-webkit-scrollbar-thumb {
        background: #7f8c8d;
    }
} */

/* Success message animation */
@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.btn-primary:active {
    animation: successPulse 0.3s ease;
}

/* File preview styles */
.edit-file-previews {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.file-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-file:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Add to your community.css */
.confirm-modal {
    max-width: 400px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.confirm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.confirm-modal-header h3 {
    margin: 0;
    color: #343a40;
    font-size: 18px;
}

.confirm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
}

.confirm-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.confirm-icon {
    margin-bottom: 20px;
}

.confirm-message {
    margin: 0;
    color: #495057;
    font-size: 16px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.confirm-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

/* ==========================================================================
   Responsive Design - Consolidated & Professional
   ========================================================================== */

/* Header & Navigation Responsive Overrides
   ========================================================================== */
header {
    width: 100%;
    /* Ensure header aligns with page flow */
}

/* Tablet & Smaller Desktop (Max Width: 1200px) */
@media screen and (max-width: 1200px) {
    /* header .nav-container {
        padding: 10px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    } */

    /* Hide Desktop Menu Links */
    /* header .main-menu ul {
        display: none;
    } */

    /* Show Mobile Menu Toggle */
    /* .main-menu-btn {
        display: flex !important;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 10px;
        color: #333;
    } */

    /* .main-menu-btn .menu-txt {
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 15px;
        display: block;
    } */

    /* Adjust Logo */
    /* header .logo img {
        max-height: 45px;
        width: auto;
    } */

    /* Adjust Icons Section */
    /* header .nav-icons {
        display: flex;
        gap: 15px;
        align-items: center;
    } */
}

/* Tablet Portrait & Large Mobile (Max Width: 991px) */
@media screen and (max-width: 991px) {

    #fullpageModalMedia-left{
        display: none;
    }


    #fullpageModalMedia-in{
        display: block;
    }

    .community-container {
        flex-direction: column;
        padding: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .fullpage-action-btn {
        font-size: 18px;
    }

    /* .fullpage-post-actions {
        padding: 10px 20px;
    } */

    .ads-section,
    .posts-section {
        flex: none;
        width: 95%;
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
        /* Crucial for internal flex/grid shrinking */
    }

    /* Reorder: Posts first (content), Ads second */
    .posts-section {
        order: 1;
    }

    .ads-section {
        order: 2;
        margin-top: 30px;
    }

    .ads-box {
        height: auto;
        min-height: 300px;
    }

    /* Carousel Cards Section - Fix Fixed Width */
    .post-cards-section {
        width: 100% !important;
        /* Override inline/fixed styles */
        max-width: 100%;
        margin-top: 15px;
        box-sizing: border-box;
    }

    .cards-carousel-container {
        padding: 20px 0;
    }

    .cards-title {
        padding: 0 5px;
    }

    /* Modal Scale */
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        flex-direction: column;
        height: auto;
        /* Allow body to dictate height up to max */
        max-height: calc(90vh - 60px);
    }

    .modal-left,
    .modal-right {
        flex: none;
        width: 100%;
        padding: 20px;
        overflow-y: visible;
        border-right: none;
    }

    .modal-right {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        max-height: 40vh;
        /* Limit comment section height on tablet */
        overflow-y: auto;
    }

    .carousel,
    .modal-carousel {
        height: 400px;
    }

    /* Fullpage Modal Responsive */
    .fullpage-modal-content {
        flex-direction: column;
    }

    .fullpage-modal-media {
        flex: none;
        width: 100%;
        height: 55vh;
    }

    .fullpage-modal-details {
        flex: 1;
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
        overflow: scroll;
    }
}

/* Mobile Devices (Max Width: 768px) */
@media screen and (max-width: 768px) {

    /* Header Adjustments */
    header .nav-container {
        padding: 8px 15px;
    }

    .logo img {
        max-height: 35px;
    }

    /* Hide text labels in nav to save space */
    .nav-icons .user-bag label,
    .language .title {
        display: none;
    }

    .nav-icons {
        gap: 10px;
    }

    .nav-icons .icon svg {
        width: 22px;
        height: 22px;
    }

    /* Community Page Adjustments */
    .community-container {
        padding: 10px;
    }

    /* Post Actions */
    .post-actions-write {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }

    .post-actions-write .action-btn {
        flex: 1;
        min-width: 100px;
        /* Allow shrinking */
    }

    .postSubmitBtn {
        width: 100%;
        margin-top: 10px;
        margin-right: 0;
    }

    .post-actions {
        height: auto;
        /* Allow growth */
        padding: 10px;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 6px;
    }

    /* Carousel Height */
    .carousel,
    .modal-carousel {
        height: 300px;
    }

    /* Modals */
    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
        /* Stack buttons, cancel last */
        gap: 10px;
    }

    .btn {
        width: 100%;
    }

    /* Product Cards - Mobile Optimization */
    .post-cards-section {
        margin-top: 20px;
    }

    /* Use grid-like logic for carousel track items if needed,
       but here we just ensure they aren't huge */
    .product-card {
        min-width: 150px;
        max-width: 170px;
    }

    .product-image {
        height: 120px;
        /* Smaller images */
    }

    .product-name {
        font-size: 13px;
    }

    .product-actions {
        flex-direction: column;
        gap: 5px;
    }

    .cards-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Fullpage Modal Adjustments */
    .fullpage-modal-media {
        height: 45vh;
    }

    .fullpage-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media screen and (max-width: 650px) {
    .action-btn span {
        font-size: 14px;
    }

    .action-icon svg {
        width: 60%;
        height: 100%;
    }
}

@media screen and (max-width: 535px) {

       .postSubmitBtn-creatre {
    width: 100%;
    margin: 0;
    border-radius: 0 0 4px 4px;
    margin-top: -11px;
}

}


@media screen and (max-width: 500px) {

    .ads-section,
    .posts-section {
        width: 100%;
    }
}

/* Small Mobile & Wide Mobile Landscape (Max Width: 480px) */
@media screen and (max-width: 480px) {




    /* Header Minimalist */
    header .nav-container {
        padding: 10px;
    }

    .main-menu-btn .menu-txt {
        display: none;
        /* Icon only */
    }

    .nav-icons {
        gap: 8px;
    }

    .language {
        display: none;
        /* Hide language selector on super small screens */
    }

    .user-avatar {
        width: 28px !important;
        height: 28px !important;
    }

    /* Posts & Content */
    .profile-img,
    .modal-profile-img {
        width: 45px;
        height: 45px;
    }

    .username,
    .modal-username {
        font-size: 15px;
    }

    .post-date {
        font-size: 12px;
    }

    .post-text,
    .modal-post-text {
        font-size: 15px;
        /* Readable body text */
        line-height: 1.5;
        padding: 0 10px 15px;
    }

    /* Card Carousel Small Mobile */
    .product-card {
        min-width: 135px;
        max-width: 155px;
        /* Start seeing next card */
    }

    .product-image {
        height: 100px;
    }

    .product-name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 13px;
    }

    .product-info {
        padding: 8px;
    }

    /* Action Buttons Compact */
    .action-btn {
        gap: 2px;
        font-size: 11px;
        border-right: 1px solid #00000026;
    }


    .action-btn:last-child {
        border-right: none;
    }


    .action-btn span {
        font-size: 12px;
    }

    .post-actions-write .action-btn svg {
        width: 25px;
        height: 25px;
    }

    .action-text {
       display: none;
    }

    .btndevider {
        display: none;
    }

    /* Media */
    .carousel,
    .modal-carousel {
        height: 250px;
    }

    .file-preview {
        width: 70px;
        height: 70px;
    }

    .remove-file {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    /* Fullpage Modal Compact */
    .fullpage-modal-media {
        height: 40vh;
    }

    .fullpage-comments-section {
        padding: 15px;
    }

    /* .fullpage-post-actions {
        padding: 10px 15px;
    } */

    .fullpage-add-comment {
        padding: 10px 15px;
    }

    /* Modal Fullscreen */
    .modal-content {
        width: 80%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }
}

/* Share Popup Styles */
.share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-popup {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.share-popup-overlay.active .share-popup {
    transform: translateY(0);
}

.share-popup-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
     font-family: "Roboto", serif;
    text-align: center;
}

.share-popup-header h3 {
    margin: 0;
    font-size: 18px;
     font-family: "Roboto", serif;
    color: #333;
}

.share-popup-body {
    padding: 20px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.share-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.share-option-text {
    font-size: 12px;
    color: #555;
}

.whatsapp-share .share-option-icon {
    background: #25D366;
    color: white;
}

.facebook-share .share-option-icon {
    background: #1877F2;
    color: white;
}

.twitter-share .share-option-icon {
    background: #1DA1F2;
    color: white;
}

.linkedin-share .share-option-icon {
    background: #0077B5;
    color: white;
}

.copy-link-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.copy-link-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-family: "Roboto", serif;
    color: #555;
}

.copy-link-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.copy-link-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.copy-link-btn {
    padding: 10px 20px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.copy-link-btn:hover {
    background: #3a5ce5;
}

.copy-link-btn.copied {
    background: #27ae60;
}

.share-popup-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.close-share-popup {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s ease;
}

.close-share-popup:hover {
    background: #e9ecef;
}


.swiper-button-next , .swiper-button-prev{
    color: white !important;
    background: #524646a1 !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 40px !important;
}


.status-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
        margin-top: -20px;
}

.status-tag.under-review {
    background-color: #fff3cd;
    color: #856404;
    font-family: "Roboto", serif;
    color: #333;
    border: 1px solid #ffeaa7;
}

.status-tag.category {
    background-color: #d1ecf1;
    color: #0c5460;
    font-family: "Roboto", serif;
    color: #333;
    border: 1px solid #bee5eb;
}

#loding{
    font-family: "Roboto", serif;
}

.fullpage-no-comments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
     font-family: "Roboto", serif;
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
}

.no-comments-icon {
    margin-bottom: 16px;
     font-family: "Roboto", serif;
}

.no-comments-icon svg {
    width: 64px;
    height: 64px;
    opacity: 0.7;
}

.no-comments-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
     font-family: "Roboto", serif;
    margin-bottom: 8px;
    line-height: 1.3;
}

.no-comments-text p {
    font-size: 14px;
    color: #666;
     font-family: "Roboto", serif;
    line-height: 1.4;
    margin: 0;
}

/* Alternative: If you want the text stacked directly without wrapper */
.fullpage-no-comments p {
    font-size: 14px;
     font-family: "Roboto", serif;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

.fullpage-no-comments .no-comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
     font-family: "Roboto", serif;
    margin-bottom: 4px;
}












/* ///////////////////////////// */


/* Edit modal should look exactly like the create form */
.edit-modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Existing media section */
.existing-media-container {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.existing-media-container h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.existing-media {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.existing-media-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.existing-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.existing-media-item .remove-existing {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
}

.existing-media-item .remove-existing:hover {
    background: #c0392b;
}

/* Ensure both forms have identical styling */
#createPostForm,
#editPostForm {
    width: 100%;
}

.post-creator-header {
    width: 100%;
    margin-bottom: 16px;
}

.post-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    transition: 0.5s all;
    box-sizing: border-box;
}

.post-actions-write {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-modeactions {
    margin-bottom: 32px;
}
.action-btn-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-right: 1px solid #e0e0e0;
    cursor: pointer;
    color: #495057;
    font-size: 14px;
    transition: all 0.2s;
}
.action-btn-edit:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.action-btn-edit svg {
    width: 20px;
    height: 20px;
    fill: #495057;
}

.postSubmitBtn {
    padding: 10px 24px;
    background: #9fcd22;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.postSubmitBtn:hover {
    background: #9fcd22;
}

.postSubmitBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.file-previews {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    min-height: 100px;
    padding: 12px;
    background: transparent;
    border-radius: 8px;
}

.file-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview .remove-file {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
}

.file-preview .remove-file:hover {
    background: #c0392b;
}

.video-preview {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f1f3f4;
    color: #5f6368;
}

.video-preview svg {
    margin-bottom: 8px;
}

.video-preview span {
    font-size: 12px;
    text-align: center;
    word-break: break-word;
    padding: 0 8px;
}

.post-file-info {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.postUploadLoader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    color: #6c757d;
}

.postUploadLoader .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.font-edit{
    font-family: "Roboto", serif;
}

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








.post-creator-header {
    position: relative;
}

.emoji-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.comment-input-with-emoji {
    width: 100%;
}

/* .fullpage-emoji-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
} */

emoji-picker#emojiPicker {
    top: 100px !important;
    left: 0 !important;
}

emoji-picker#editemojiPicker {
    top: 100px !important;
    left: 0 !important;
}


.comment-emoji-picker {
    position: absolute !important;
    bottom: 60px !important;
    right: 10px !important;
    z-index: 9999 !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border: 1px solid #e0e0e0 !important;
}

.fullpage-comment-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-input-with-emoji {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.fullpage-comment-input {
    flex: 1;
    padding: 12px 45px 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
}

.fullpage-emoji-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    border-radius: 4px;
    color: #666;
    transition: background-color 0.2s;
}

.fullpage-emoji-btn:hover {
    background-color: #f0f0f0;
}

.fullpage-comment-actions {
    position: relative;
    display: inline-block;
}

/* Option 1 Styles */
.fullpage-comment-dropdown {
    position: relative;
    display: inline-block;
}

.fullpage-comment-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    color: #666;
    transition: background-color 0.2s;
}

.fullpage-comment-menu-btn:hover {
    background-color: #f0f0f0;
}

.fullpage-comment-dropdown-content {
    display: none;
     position: absolute;
    left: -130px;
    top: 100%;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    z-index: 1000;
    overflow: hidden;
}

.fullpage-comment-dropdown:hover .fullpage-comment-dropdown-content {
    display: block;
}

.fullpage-comment-dropdown-content button {
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
    color: #a90d0d;
    display: flex;
    align-items: center;
        justify-content: space-between;
}



.fullpage-comment-delete {
    color: #dc3545;
    text-decoration: none;
}

/* Option 2 Styles */
.fullpage-comment-action-menu {
    position: relative;
}

.fullpage-comment-action-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 12px;
    color: #666;
    font-size: 18px;
    line-height: 1;
}

.fullpage-comment-action-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.fullpage-comment-action-menu:hover .fullpage-comment-action-dropdown {
    display: block;
}

.fullpage-comment-action-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.fullpage-comment-action-list li {
    margin: 0;
}

.fullpage-comment-action-list button {
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    transition: background-color 0.2s;
}

.fullpage-comment-action-list button:hover {
    background-color: #000000;
}

.fullpage-comment-action-list button.danger {
    color: #dc3545;
}

.fullpage-comment-action-list button span {
    font-size: 14px;
}


.action-btn-edit:last-child {
    border-right: none;
}

.fullpage-video-container
{
    width: 100%;
        height: 100%;
}

.login-to-comment-msg {
    border: 1px saddlebrown;
    background: red;
    color: white;
    padding: 15px;
    width: 100%;
    text-align: center;
    font-family: "Roboto", serif;
    font-weight: 600;
}

.fullpage-add-comment a{
        color: white;
    text-decoration: none;
    font-family: "Roboto", serif;
    width: 93%;
    display: block;
}


/* Add these CSS styles */
.action-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.action-btn.loading .action-icon svg {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.like-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(249, 24, 128, 0.3);
    border-radius: 50%;
    border-top-color: #f91880;
    animation: spin 1s linear infinite;
    display: none;
}

.like-btn.loading .like-spinner {
    display: block;
}

.like-btn.loading .action-icon svg {
    opacity: 0.3;
}

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

/* For fullpage modal like button */
.fullpage-action-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.fullpage-action-btn.loading .fullpage-action-icon svg {
    animation: pulse 1.5s ease-in-out infinite;
}

.fullpage-like-spinner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(249, 24, 128, 0.3);
    border-radius: 50%;
    border-top-color: #f91880;
    animation: spin 1s linear infinite;
    display: none;
}

.fullpage-action-btn.loading .fullpage-like-spinner {
    display: block;
}

.fullpage-action-btn.loading .fullpage-action-icon svg {
    opacity: 0.3;
}

.fullpage-like-spinner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(249, 24, 128, 0.3);
    border-radius: 50%;
    border-top-color: #f91880;
    animation: spin 1s linear infinite;
    display: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.fullpage-action-btn.loading .fullpage-like-spinner {
    display: block;
}

.fullpage-action-btn.loading .fullpage-action-icon svg {
    opacity: 0.3;
}

.fullpage-action-btn.loading {
    opacity: 0.7;
    cursor: wait;
    position: relative;
}

.fullpage-action-btn .fullpage-action-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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





