@charset "UTF-8";
.profile-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.top-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    cursor: pointer;
}

.back-icon {
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.back-icon:hover {
    opacity: 0.7;
}

.username {
    font-size: 18px;
    font-weight: 600;
	border:1px solid #888;
	border-top:0;
	border-left:0;
	border-radius:0.5rem;
	padding:0.25rem .5rem !important;
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.qr_code_own {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid #ccc;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    text-align: center;
    border-radius: 0.5rem;
}
.qr_code_box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 2px dashed #ccc;
    flex-shrink: 0;
    text-align: center;
    border-radius: 0.5rem;
}

.profile-picture {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dbdbdb;
    cursor: pointer;
    transition: opacity 0.2s;
}
@media screen and (min-width: 768px) {
    .profile-picture {
        width: 200px;
        height: 200px;
    }
}
.profile-picture-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    text-align: center;
}

.profile-picture:hover {
    opacity: 0.9;
}

.profile-stats {
    display: flex;
    text-align: center;
    width: 100%;
    justify-content: space-between;
    max-width: 400px;
}

.stat .number {
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 2px;
}

.stat .label {
    font-size: 12px;
    color: #8e8e8e;
}

.profile-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 0.5rem;
}
.profile-info-user {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.informations {
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: row;
    flex-wrap: wrap;
}
.informations .information {
    position:relative;
	display: flex;
    align-items: start;
    justify-content: start;
    font-size: 16px;
    color: #605f5f;
    > strong {
        font-weight: 600;
        color: #333;
    }
}
.informations .information::after{
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  content: "";
	border:2px solid;
}

.informations .information.death-place-date::after{
background-color:rgb(255,255,255);
	border-color:#000;
}

.informations .information.birth-place-date::after{
background-color:rgb(255,255,255);
	border-color:#999;
}

.seprating-line{
    height:2px;
	background-color:var(--primary-color);
	width:100%;
	border-radius:1rem;
}
@media screen and (min-width: 576px) {
    .informations .information {
        min-width: none;
    }
}

.profile-info .profile-name {
    font-weight: 600;
    font-size: 14px;
}
@media screen and (min-width: 768px) {
    .profile-info .profile-name {
        font-size: 16px;
    }
}

.profile-info .profile-bio {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #605f5f;
    word-wrap: anywhere;
    overflow-wrap: anywhere;
    max-width: 400px;
    font-weight: 500;
}
.qr_code_box p {
    font-size: 10px;
    color: #605f5f;
}

.profile-info .link a {
    color: #00376b;
    text-decoration: none;
    font-size: 14px;
}

.profile-info .link a:hover {
    text-decoration: underline;
}

/* Button Section */
.button-section {
    display: flex;
    gap: 8px;
    width: 100%;
	margin-bottom:1rem;
}
@media screen and (max-width: 479px) {
    .button-section {
        gap: 0.75rem;
    }
}

.profile-btn {
    flex: 1;
    height: 2rem;
    border: 1px solid #dbdbdb;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
}
@media (max-width: 479px) {
    .profile-btn {
        height: 2rem;
        gap: 0.5rem;
    }
}

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

.profile-btn.follow {
    background: #0095f6;
    color: white;
    border-color: #0095f6;
}

.profile-btn.follow:hover {
    background: #1877f2;
}

.profile-btn.unfollow {
    background: #fff;
    color: #262626;
    border-color: #dbdbdb;
}

/* Demo Section */
.demo-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #efefef;
    text-align: center;
}

.demo-toggle {
    width: 100%;
    height: 32px;
    background: #f0f0f0;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.demo-toggle:hover {
    background: #e0e0e0;
}

.follow-status {
    font-size: 12px;
    color: #8e8e8e;
    margin-top: 8px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
}
@media screen and (min-width: 480px) {
    .modal-content {
        width: 90%;
        max-width: none;
        max-height: none;
        height: 85%;
        gap: 1rem;
    }
}
@media screen and (min-width: 768px) {
    .modal-content {
        width: 85%;
        max-width: 900px;
        height: 85%;
        max-height: none;
        gap: 1rem;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
    border-bottom: 1px solid #efefef;
    width: 100%;
}

.edit-modal-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
}
@media screen and (max-width: 479px) {
    .EditProfileModal {
        height: 83% !important;
    }
}
@media screen and (min-width: 480px) {
    .EditProfileModal {
        height: 86% !important;
    }
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1515;
}
.modal-header h2 i {
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8e8e8e;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.close-btn:hover {
    color: #262626;
}

.modal-body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

#postForm {
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0095f6;
}

/* Enhanced Profile Picture Upload */
.picture-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.current-picture {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
}

.current-picture:hover {
    transform: scale(1.05);
}

.current-picture img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
@media screen and (min-width: 768px) {
    .current-picture img {
        width: 90px;
        height: 90px;
    }
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.current-picture:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay span {
    font-size: 20px;
    margin-bottom: 4px;
}

.upload-overlay p {
    color: white;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.help-text {
    font-size: 12px;
    color: #8e8e8e;
    text-align: center;
    margin-top: 5px;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    width: 100%;
}

.btn-cancel,
.btn-save {
    flex: 1;
    height: 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #fff;
    border: 1px solid #dbdbdb;
    color: #262626;
}

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

.btn-save {
    background: #0095f6;
    border: 1px solid #0095f6;
    color: white;
}

.btn-save:hover {
    background: #1877f2;
}

/* Success message animation */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    animation: slideInSuccess 0.4s ease;
}

@keyframes slideInSuccess {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}
/* Loading state for save button */
.btn-save.loading {
    background: #ccc;
    cursor: not-allowed;
    position: relative;
}

.btn-save.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Responsive Design */
@media screen and (max-width: 479px) {
    .profile-stats {
        gap: 0.75rem;
    }
    .stat .label {
        font-size: 11px;
    }
    .modal-content {
        max-width: 400px;
        max-height: none;
        width: 90%;
        height: 85%;
        gap: 0.5rem;
    }
    .profile-header {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
        justify-content: center;
    }
}
/* Create Post Modal Styles */
.create-post-modal {
    max-width: 700px;
    max-height: none;
}

.create-post-modal .modal-body {
    overflow-y: auto;
}
@media screen and (min-width: 480px) {
    .create-post-modal .modal-body {
        width: 100%;
    }
}
@media screen and (min-width: 768px) {
    .create-post-modal .modal-body {
        width: 100%;
    }
}

.createPostModal-body {
    overflow-y: auto;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: initial;
    flex-direction: column;
    padding-bottom: 1rem;
}

.createPostModal-postform {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem;
    width: 100%;
}
@media screen and (max-width: 479px) {
    .createPostModal-postform {
        padding: 1rem;
    }
}

.createPostModal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    width: 100%;
    border-bottom: 1px solid #efefef;
}

.create-post-modal .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

.create-post-modal .form-control {
    min-height: 150px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    overflow-y: auto;
    scrollbar-width: none;
    color: #444;
    word-wrap: anywhere;
    overflow-wrap: anywhere;
    resize: none;
}

.create-post-modal .form-control:focus {
    outline: none;
    border-color: #0095f6;
}

/* Rich Text Editor */
.rich-text-toolbar {
    border: 1px solid #dbdbdb;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 8px;
    background-color: #f8f9fa;
    display: flex;
    gap: 4px;
}

.rich-text-toolbar button {
    border: none;
    background: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #262626;
    transition: all 0.2s;
}

.rich-text-toolbar button:hover {
    background-color: #e9ecef;
}

.rich-text-toolbar button.active {
    background-color: #0095f6;
    color: white;
}

.rich-text-editor {
    min-height: 120px;
    border-radius: 0 0 6px 6px;
    border-top: none;
    padding: 12px;
    line-height: 1.4;
}

.rich-text-editor:empty:before {
    content: attr(data-placeholder);
    color: #8e8e8e;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #dbdbdb;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
    width: 100%;
}

.upload-area:hover {
    border-color: #0095f6;
    background-color: #f0f8ff;
}

.upload-area.dragover {
    border-color: #0095f6;
    background-color: #e6f3ff;
    transform: scale(1.02);
}

.upload-content h5 {
    margin-bottom: 8px;
    font-size: 16px;
}

.upload-content p {
    margin-bottom: 16px;
    font-size: 14px;
}

.btn-outline-primary {
    border: 1px solid #0095f6;
    color: #0095f6;
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: #0095f6;
    color: white;
}

/* Media Preview */
.media-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    background: #fafafa;
}

.media-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dbdbdb;
    background: white;
}

.media-preview img,
.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 10px;
}

.media-preview:hover .remove-media {
    opacity: 1;
}

.media-type-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-preview:hover .video-overlay {
    opacity: 1;
}

.video-overlay.playing {
    opacity: 0;
}

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: bold;
}

.media-count {
    color: #8e8e8e;
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

.btn-primary.btn-lg {
    background: #0095f6;
    border: 1px solid #0095f6;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary.btn-lg:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.w-100 {
    width: 100%;
}

.text-muted {
    color: #8e8e8e;
}

.mb-3 {
    margin-bottom: 16px;
}

.mt-2 {
    margin-top: 8px;
}

.me-2 {
    margin-right: 8px;
}

.fa-3x {
    font-size: 3em;
    color: #605f5f;
}

.small {
    font-size: 12px;
}

.ri-add-line {
    font-size: 24px;
    color: #8e8e8e;
}

.order-toggle-wrapper {
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-content: start;
    gap: 2.5rem;
    padding: 0.5rem 0;
}
@media screen and (max-width: 768px) {
    .order-toggle-wrapper {
        width: 100%;
    }
}

.order-toggle-label {
    font-size: var(--font-base);
    color: #6b7280;
    width: 10%;
}

.order-custom-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-custom-toggle .order-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}
.order-custom-toggle .order-toggle-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: #e6f3ff;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}
.order-custom-toggle .order-toggle-slider:before {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.order-custom-toggle .order-toggle-input:checked + .order-toggle-slider {
    background: #1877f2;
}
.order-custom-toggle .order-toggle-input:checked + .order-toggle-slider:before {
    transform: translateX(-20px);
}

.order-form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    row-gap: 1rem;
}

.order-form-label {
    display: block;
    font-size: var(--font-base);
    font-weight: 500;
    color: rgb(var(--black-color));
    text-align: right;
}

.fr-lable {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #262626;
}

:root {
   
    --heart-color: #ed4956;
    --border-color: #dbdbdb;
    --text-color: #262626;
    --secondary-text: #8e8e8e;
    --background: #fafafa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.gallery-container {
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-posts-grid {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.gallery-post-item {
    flex: 1;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.gallery-post-item:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-post-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-post-item:hover::before {
    opacity: 1;
}

.gallery-post-item img,
.gallery-post-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-post-item:hover img,
.gallery-post-item:hover video {
    transform: scale(1.05);
}

.gallery-post-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    pointer-events: none;
}

.gallery-post-item:hover .gallery-post-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-overlay-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    min-width: 30px;
    justify-content: center;
}
@media screen and (min-width: 768px) {
    .gallery-overlay-stat {
        min-width: 80px;
    }
}

.gallery-overlay-stat svg {
    width: 18px;
    height: 18px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery-slide-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* gallery-modal Styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(20px);
}

.gallery-modal.active {
    display: flex;
    animation: gallery-modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes gallery-modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.gallery-modal-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1400px;
    min-height: 90vh;
    height: 90%;
    width: 100%;
    display: flex;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    position: relative;
    outline: 1px solid rgb(255, 255, 255);
    background-color: #ffffff;
}

@media screen and (min-width: 992px) {
    .gallery-modal-content {
        flex-direction: row;
    }
}
.gallery-modal-media {
    flex: 2.5;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-height: 500px; */
    /* border-radius: 20px 0 0 20px; */
    width: 100%;
}

@media screen and (min-width: 992px) {
    .gallery-modal-media {
        width: 66%;
    }
    .gallery-modal-content {
        min-height: 95%;
        height: 95%;
    }
}
@media screen and (max-width: 992px) {
    .gallery-modal-sidebar {
        height: 40% !important;
    }
}
/* Swiper Container */
.gallery-modal-swiper {
    width: 100%;
    height: 100%;
    /* border-radius: 20px 0 0 20px; */
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.gallery-modal-swiper .swiper-wrapper {
    align-items: center;
}

.gallery-modal-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.gallery-modal-swiper .swiper-slide img,
.gallery-modal-swiper .swiper-slide video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* border-radius: 12px; */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-modal-swiper .swiper-slide video {
    outline: none;
}

/* Custom Swiper Navigation */
.gallery-modal-swiper .swiper-button-next,
.gallery-modal-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.9);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-top: -24px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-modal-swiper .swiper-button-next:hover,
.gallery-modal-swiper .swiper-button-prev:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gallery-modal-swiper .swiper-button-next:after,
.gallery-modal-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 900;
    color: #333;
}

.gallery-modal-swiper .swiper-button-next {
    left: 20px;
    position: absolute;
    right: unset;
}

.gallery-modal-swiper .swiper-button-prev {
    right: 20px;
    left: unset;
    position: absolute;
}

/* Custom Swiper Pagination */
.gallery-modal-swiper .swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 10px;
    left: 10%;
    bottom: unset;
    transform: translateX(-50%);
    width: auto;
    gap: 8px;
    background-color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.75);
    font-weight: 600;
}

.gallery-modal-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-modal-swiper .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.gallery-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-close-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-modal-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* max-width: 420px;
      min-width: 350px; */
    position: relative;
    background: white;
    border-radius: 0 20px 20px 0;
}

.gallery-modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.gallery-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-username {
    font-weight: 700;
    color: var(--text-color);
    font-size: 15px;
}

.gallery-follow-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 149, 246, 0.3);
}

.gallery-follow-btn:hover {
    background: #1877f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 149, 246, 0.4);
}

.gallery-modal-description {
    padding: 20px;
    line-height: 1.6;
    color: #444;
    flex: 1;
    overflow-y: auto;
    font-size: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    word-wrap: anywhere;
    overflow-wrap: anywhere;
}

.gallery-modal-actions {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.gallery-actions-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.gallery-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.gallery-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.gallery-action-btn svg {
    width: 26px;
    height: 26px;
    stroke: var(--text-color);
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.gallery-action-btn.liked svg {
    fill: var(--heart-color);
    stroke: var(--heart-color);
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}
.gallery-likes-count {
    font-weight: 700;
    color: var(--text-color);
    font-size: 15px;
    cursor: pointer;
}

/* Sliding Overlay */
.gallery-sliding-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: white;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.gallery-sliding-overlay.active {
    transform: translateY(0);
}

.gallery-overlay-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
}

.gallery-overlay-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 16px;
}

.gallery-overlay-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    color: #666;
}
.gallery-overlay-close i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-overlay-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.gallery-overlay-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-color);
}

.gallery-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
#featureModal{
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
}
.featureModal {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
}
.featureModal-inner {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
	transform:none !important;
}

.gallery-overlay-content::-webkit-scrollbar {
    width: 6px;
}

.gallery-overlay-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-overlay-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

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

/* Likes Content */
.gallery-likes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-like-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.gallery-like-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.gallery-like-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ddd, #f0f0f0);
}

.gallery-like-username {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

/* Comments Content */
.gallery-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-comment {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 14px;
    padding: 8px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.gallery-comment:hover {
    background: rgba(0, 0, 0, 0.02);
}

.gallery-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ddd, #f0f0f0);
    flex-shrink: 0;
}

.gallery-comment-content {
    flex: 1;
}

.gallery-comment-text {
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 6px;
    font-size: 15px;
}

.gallery-comment-username {
    font-weight: 700;
    margin-left: 8px;
    padding-bottom: 0.5rem;
}

.gallery-comment-time {
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 500;
}

.gallery-comment-form {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
    background: white;
}

.gallery-comment-form .gallery-comment-avatar {
    width: 32px;
    height: 32px;
}

.gallery-comment-input {
    flex: 1;
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 15px;
    color: var(--text-color);
    background: #fafafa;
    padding: 12px 16px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.gallery-comment-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.1);
}

.gallery-comment-input::placeholder {
    color: var(--secondary-text);
}

.gallery-comment-submit {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
}

.gallery-comment-submit.active {
    opacity: 1;
}

.gallery-comment-submit.active:hover {
    background: rgba(0, 149, 246, 0.1);
    transform: scale(1.05);
}

/* فرزند اول ستون اول */
.gallery-posts-grid > :nth-child(1)::before {
    border-top-right-radius: 16px;
}

/* فرزند اول ستون سوم */
.gallery-posts-grid > :nth-child(3)::before {
    border-top-left-radius: 16px;
}

/* فرزند آخر ستون اول */
.gallery-posts-grid > :nth-child(3n + 1):nth-last-child(-n + 3)::before {
    border-bottom-right-radius: 16px;
}

/* فرزند آخر ستون سوم (فقط وقتی آخرین آیتم در ستون سوم است) */
.gallery-posts-grid > :nth-child(3n):last-child::before {
    border-bottom-left-radius: 16px;
}

/* اگر فقط یک آیتم وجود دارد */
.gallery-posts-grid > :only-child::before {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-modal-content {
        flex-direction: column;
        max-height: 98vh;
        border-radius: 16px;
    }
    .gallery-modal-media {
        flex: none;
        height: 60%;
        border-radius: 16px 16px 0 0;
    }
    .gallery-modal-swiper {
        border-radius: 16px 16px 0 0;
    }
    .gallery-modal-sidebar {
        max-width: none;
        min-width: auto;
        flex: 1;
        border-radius: 0 0 16px 16px;
    }
    .gallery-modal {
        padding: 10px;
    }
    .gallery-sliding-overlay {
        height: 85%;
    }
}
@media screen and (max-width: 760px) {
    .gallery-post-overlay {
        font-size: 12px;
        gap: 8px;
    }
    .gallery-overlay-stat {
        gap: 2px;
    }
    .gallery-overlay-stat svg {
        height: 13px;
        width: 13px;
        line-height: 2.1;
    }
    .gallery-overlay-stat span {
        line-height: 2.1;
    }
}
@media screen and (max-width: 480px) {
    .gallery-post-overlay {
        font-size: 10px;
        gap: 4px;
    }
    .gallery-overlay-stat {
        gap: 2px;
        padding: 6px 6px;
    }
    .gallery-overlay-stat svg {
        height: 10px;
        width: 10px;
        line-height: 0.5;
    }
    .gallery-overlay-stat span {
        line-height: 0.5;
    }
}
.gallery-modal-body.gallery-create-post-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-create-post-modal-postform {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1; /* Allow form to take available height */
    overflow-y: auto; /* Enable scrolling for the form content */
}

.gallery-create-post-modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-form-label {
    font-weight: bold;
    color: var(--text-color);
    font-size: 15px;
}
.gallery-text-area {
    min-height: 150px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    overflow-y: auto;
    scrollbar-width: none;
    color: #444;
    word-wrap: anywhere;
    overflow-wrap: anywhere;
    resize: none;
}
.gallery-rich-text-editor {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    min-height: 120px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    outline: none;
    transition: all 0.2s ease-in-out;
    background-color: #fcfcfc;
}

.gallery-rich-text-editor:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.1);
    background-color: white;
}

/* Placeholder for contenteditable */
.gallery-rich-text-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--secondary-text);
    opacity: 0.7;
}

.gallery-rich-text-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px;
}

.gallery-rich-text-toolbar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    font-size: 18px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-rich-text-toolbar button:hover {
    background-color: #e9e9e9;
}

.gallery-rich-text-toolbar button.active {
    background-color: var(--primary-color);
    color: white;
}

/* Media Upload Area */
.gallery-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background-color: #fdfdfd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #eaf6ff;
    box-shadow: 0 0 0 4px rgba(0, 149, 246, 0.1);
}

.gallery-upload-content h5 {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 8px;
}

.gallery-upload-content p {
    color: var(--secondary-text);
    font-size: 12px;
    margin-bottom: 15px;
}

.gallery-upload-content .gallery-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    border-radius: 1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.select_file_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
}

.gallery-upload-content .gallery-btn:hover {
    background: #0056b3;
}

.gallery-media-preview-container {
    display: grid;
    margin-top: 15px;
    grid-template-columns: repeat(3, 120px);
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: start;
    width: 100%;
    gap: 10px;
    margin-top: 15px;
}
@media screen and (min-width: 576px) {
    .gallery-media-preview-container {
        grid-template-columns: repeat(auto-fit, 120px);
    }
}

.gallery-media-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.gallery-media-preview img,
.gallery-media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-media-count {
    margin-top: 10px;
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 500;
}

.gallery-create-post-modal-form-group-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    margin-top: auto;
}
@media screen and (min-width: 380px) {
    .gallery-create-post-modal-form-group-2 {
        flex-direction: row;
    }
}

.gallery-create-post-modal-form-group-2 .gallery-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 125px;
}

.gallery-create-post-modal-form-group-2 .gallery-btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.gallery-create-post-modal-form-group-2 .gallery-btn-primary:hover {
    background-color: #007bb5;
    box-shadow: 0 4px 15px rgba(0, 149, 246, 0.3);
}

.gallery-create-post-modal-form-group-2 #gallery-delete-post-btn {
    background: #dc3545;
    border-color: #dc3545;
}

.gallery-create-post-modal-form-group-2 #gallery-delete-post-btn:hover {
    background: #c82333;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Rich Text Editor Icons */
.gallery-media-preview {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-media-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.gallery-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-media-preview:hover .gallery-media-overlay {
    opacity: 1;
}

.gallery-media-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-media-delete-btn:hover {
    background: rgb(220, 53, 69);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.gallery-media-preview:hover .gallery-media-delete-btn {
    opacity: 1;
    transform: scale(1);
}

.gallery-media-delete-btn svg {
    width: 18px;
    height: 18px;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.gallery-media-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-media-preview img,
.gallery-media-preview video {
    transition: transform 0.3s ease;
}

.gallery-media-preview:hover img,
.gallery-media-preview:hover video {
    transform: scale(1.05);
}

/* Animation for delete confirmation */
.gallery-media-preview.deleting {
    animation: galleryDeleteAnimation 0.5s ease-out forwards;
}

@keyframes galleryDeleteAnimation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        height: 0;
        margin: 0;
        padding: 0;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-media-delete-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }
    .gallery-media-delete-btn svg {
        width: 16px;
        height: 16px;
    }
    .gallery-media-type-badge {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 9px;
    }
}
/* Upload Error Styles */
.gallery-upload-errors {
    margin-top: 12px;
    padding: 12px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    color: #c53030;
    font-size: 14px;
}

.gallery-upload-error-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border-left: 4px solid #e53e3e;
}

.gallery-upload-error-item:last-child {
    margin-bottom: 0;
}

.gallery-upload-error-icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    color: #e53e3e;
    flex-shrink: 0;
}

.gallery-upload-error-text {
    flex: 1;
}

.gallery-upload-error-filename {
    font-weight: 600;
    color: #2d3748;
}

.gallery-upload-success {
    margin-top: 12px;
    padding: 12px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    color: #2f855a;
    font-size: 14px;
}

.FeatureContainer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.FeatureWrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.FeatureGrid {
    display: flex;
	align-items:start;
	justify-content:start;
    gap: 2rem;

	> .swiper{
	height:100%
	}
}

.FeatureGrid.loading {
    grid-template-columns: 1fr;
    place-items: center;
}

.FeatureItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.FeatureItem:hover {
    transform: translateY(-2x);
}

.FeatureCircle {
    width: 120px;
    height: 70px;
    border-radius: 1rem;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
	flex-direction:column;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0,0,0,0.8);
    font-weight: bold;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
	border:1px solid var(--primary-color)
}

.FeatureCircle:hover:before {
    left: 100%;
}

.FeatureCircle:active {
    transform: scale(0.95);
}

.FeatureCircle.clicked {
    animation: clickPulse 0.2s ease-in-out;
}

.FeatureName {
    font-weight: 600;
    color: rgba(0,0,0,.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.FeatureLoader {
    padding: 3rem;
    color: #6b7280;
    text-align: center;
}

.FeatureModal {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    gap: 0;
	height:95%;
}

.FeatureModalHeader {
    background: linear-gradient(135deg, #ffab00 0%, #f97516 100%);
    color: #fff;
    border-bottom: none;
    padding: 1.5rem;
}

.FeatureModalHeader .FeatureModalTitle {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}

.FeatureModalHeader .FeatureCloseButton {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.FeatureModalHeader .FeatureCloseButton:hover {
    opacity: 1;
}
#modalDescription{
  height: 100%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.FeatureModalBody {
    padding: 1rem 2rem;
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 1rem;
    overflow-y: auto;
}

.FeatureModalImage img {
    max-height: 200px;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}
.FeatureModalContent {
height:100%;
}
.FeatureModalDescription {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
	height:100%;
}

.FeatureDetailsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.FeatureDetailsGrid .detail-item {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.FeatureDetailsGrid .detail-item .detail-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.FeatureDetailsGrid .detail-item .detail-value {
    color: #4a5568;
    font-size: 0.9rem;
}

.FeatureModalTags .tag {
    display: inline-block;
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.25rem;
    font-weight: 500;
}

.FeatureModalMeta {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.FeatureModalMeta .meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.FeatureModalMeta .meta-item:last-child {
    margin-bottom: 0;
}

.FeatureModalMeta .meta-item .meta-label {
    font-weight: 600;
    color: #2d3748;
}

.FeatureModalMeta .meta-item .meta-value {
    color: #4a5568;
}
.comments-list {
    height: 300px;
    overflow-y: auto;
}
.comment-form-main-inner {
    > textarea {
        border-radius: 0.5rem 0.5rem 0 0;
    }
}
.comment-form-main-button {
    border-radius: 0 0 0.5rem 0.5rem;
}

.FeatureModalFooter {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.FeatureModalActions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.FeatureCirclePreview .badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.FeatureModalButtons {
    display: flex;
    gap: 0.5rem;
}

.FeatureActionButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.FeatureActionButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@keyframes clickPulse {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1.1);
    }
}
@media (max-width: 768px) {

    .FeatureCircle {
        width: 115px;
        height: 67px;
        font-size: 1.3rem;
    }
    .FeatureName {
        font-size: 0.8rem;
    }
    .FeatureModalBody {
        padding: 1.5rem;
    }
    .FeatureDetailsGrid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .FeatureContainer {
        padding: 1rem;
    }
    .FeatureGrid {
        gap: 1rem;
    }
    .FeatureCircle {
        width: 110px;
        height: 65px;
        font-size: 1.2rem;
    }
    .FeatureModalActions {
        flex-direction: column;
        gap: 1rem;
    }
}
.FeatureError {
    grid-column: 1/-1;
    text-align: center;
    padding: 2rem;
    background: #fed7d7;
    border: 1px solid #fc8181;
    border-radius: 10px;
    color: #742a2a;
}
.img-fluid {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 100%;
}

.form-control {
    resize: none;
}

.rounded-circle {
    width: 3.5rem;
    height: 3.5rem;
    -o-object-fit: cover;
    object-fit: cover;
    flex-shrink: 0;
}

.arvin {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding-right: 0.75rem;
    > p {
        word-wrap: anywhere;
        overflow-wrap: anywhere;
    }
}
/*# sourceMappingURL=Feature.css.map */
.img-fluid {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 100%;
}

.trade_union_law .item {
    border-radius: 6px;
    background: #e2f2cb;
}
.trade_union_law .item a {
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgb(4, 95, 24);
}
.trade_union_law .item a span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #8ab84d;
}
.trade_union_law .tabs {
    background-color: #eaeaea !important;
    margin: 0;
}

.trade_union_law .contents {
    padding: 0;
}
.trade_union_law .tabs li {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background-color: #eaeaea !important;
    border-bottom: 1px solid rgba(196, 190, 196, 0.2);
}
.trade_union_law .tabs li a {
    text-decoration: none;
    color: #605f5f;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.trade_union_law .tabs li.active a {
    /* background-color: #08f; */
    color: #08f;
    font-weight: 800;
}
.trade_union_law .tabs li a:hover {
    color: rgb(4, 118, 218);
    font-weight: 600;
}
.trade_union_law .tab-content {
    display: none;
}
.trade_union_law .tab-content.active {
    display: block;
}
.trade_union_law .tab-content-wrap p {
    color: #1b1b1b;
} 
.features-swiper-button-prev , .features-swiper-button-next {
    background-color:#fff;
	display:flex;
	align-items:center;
	justify-content:center;
	position:absolute;
    border: 1px solid #e0e0e2;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
	cursor:pointer;
	z-index:10;
	border-radius:50%;
}

.features-swiper-button-prev{
right:2px;
}
.features-swiper-button-next{
left:2px;
}
#featureGrid .swiper-button-disabled { 
  display: none !important; 
}



/*# sourceMappingURL=profile-main.css.map */
/* =========================
   Weather Widget Styles (Light, flex-based)
   Scope: .weather-widget-root
========================= */



/* container */
.weather-widget-root .widget-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  color: #0f172a; /* slate-900 */
  border-radius: 20px;
 


}

/* rows / header */
.weather-widget-root .row { display: flex; gap: 10px; align-items: center; }
.weather-widget-root .header-widget { justify-content: space-between; margin-bottom: 2px; }

.weather-widget-root .brand {
  display: flex; gap: 8px; align-items: center; font-weight: 800; color: #0f172a;
}
.weather-widget-root .brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #0ea5e9; box-shadow: 0 0 10px rgba(14,165,233,.7);
}

.weather-widget-root .controls { display: flex; gap: 8px; }

/* inputs / buttons */
.weather-widget-root select,
.weather-widget-root button {
  background: #f8fafc; /* slate-50 */
  color: #0f172a;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.weather-widget-root select:focus { border-color: #0ea5e9; }

.weather-widget-root button {
  cursor: pointer;
  border-color: transparent;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
}

/* card */
.weather-widget-root .card {
  display: flex;
  flex-direction: column;
  gap: 12px;

  background: #fdfdfd;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.06);
}

/* main row */
.weather-widget-root .main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.weather-widget-root .temp { font-size: 54px; font-weight: 900; line-height: 1; }
.weather-widget-root .desc { color: #475569; /* slate-600 */ margin-top: 4px; }

/* meta: FLEX instead of grid */
.weather-widget-root .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.weather-widget-root .kv {
  flex: 1 1 calc(50% - 10px);
  min-width: 140px;

  background: #f8fafc; /* light card */
  border: 1px dashed rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 10px;
}
.weather-widget-root .kv .k { font-size: 12px; color: #64748b; } /* slate-500 */
.weather-widget-root .kv .v { font-size: 16px; font-weight: 800; margin-top: 4px; color: #0f172a; }

/* status */
.weather-widget-root .status { margin-top: 4px; font-size: 13px; color: #334155; }
.weather-widget-root .status.ok { color: #059669; }    /* green-600 */
.weather-widget-root .status.warn { color: #b45309; }  /* amber-700 */
.weather-widget-root .status.err { color: #b91c1c; }   /* red-700 */

/* spinner (light) */
.weather-widget-root .spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(0,0,0,.10);
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.weather-widget-root .footer {
  margin-top: 4px;
  color: #64748b; /* slate-500 */
  font-size: 12px;
  display: flex; justify-content: space-between; align-items: center;
}

/* icon */
.weather-widget-root .icon {
  width: 88px; height: 88px;
  filter: drop-shadow(0 6px 10px rgba(2,6,23,.08));
  background-color: #95abff;
  padding: 0.5rem;
  border-radius: 50%;
}

/* responsive tweaks */
@media (max-width: 420px) {
  .weather-widget-root .temp { font-size: 44px; }
  .weather-widget-root .icon { width: 80px; height: 80px; }
}
