@media (max-width: 768px){ .main-content {padding: 0rem!important; }}
.pinned-page-container {
    overflow: hidden;
}
.my-small-grid{
    max-width:768px!important;
    margin: 0 auto!important;
}
.pinned-page-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.pinned-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    line-height: 1.2;
}
.pinned-page-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #718096;
}
.pinned-page-author {
    font-weight: 500;
}
.pinned-page-handle {
    color: #3182ce;
    font-family: monospace;
}

/* Ensure pinned page posts work with existing move count update system */
.pinned-page-layout .two-column-layout {
    /* Inherit all existing two-column-layout styles */
}

.pinned-page-layout .move-count {
    /* Ensure move counts are visible and updatable */
    transition: all 0.2s ease;
}

.pinned-page-layout .post-card {
    /* Ensure post cards work with existing drag & drop system */
    cursor: grab;
}

.pinned-page-layout .post-card:active {
    cursor: grabbing;
}

/* Page description read more functionality */
.page-hero-subtitle-container {
    position: relative;
}

.page-hero-subtitle.truncated {
    margin-bottom: 8px;
}

.page-hero-subtitle.full-description {
    margin-bottom: 8px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #3182ce;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.read-more-btn:hover {
    color: #1e40af;
    text-decoration: none;
}

.read-more-btn:focus {
    outline: none;
    text-decoration: none;
}

/* Home Page Drag & Drop Styles */
.home-pages-draggable .mks-page-item {
    cursor: grab;
    transition: all 0.2s ease;
}

.home-pages-draggable .mks-page-item:active {
    cursor: grabbing;
}

.home-pages-draggable .mks-page-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.home-pages-draggable .mks-page-item.drag-over {
    border: 2px dashed #3b82f6;
    background-color: #f0f9ff;
}

.home-pages-draggable .mks-page-item:hover {
    background-color: #f8fafc;
}



/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Header Styles */
.main-header {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.menu-toggle:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-image {
    width: 120px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    display: flex;
    justify-content: center;
}

.search-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    max-width: 600px !important;
    width: 100% !important;
    flex-direction: row !important;
}

.search-box {
    display: flex !important;
    flex: 1 !important;
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 40px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.search-input {
    flex: 1 !important;
    padding: 0.75rem 1rem !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: #1f2937 !important;
    width: auto !important;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 40px !important;
    border: none !important;
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-left: 1px solid #d1d5db !important;
    position: relative !important;
}

.search-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.search-button:active {
    background-color: #e5e7eb;
}


/* Override any conflicting styles from style.css
.header-center .search-container {
    display: flex !important;
    align-items: center !important;
    max-width: 600px !important;
    width: 100% !important;
    flex-direction: row !important;
} */

/* Ensure desktop search is hidden on mobile */
@media screen and (max-width: 568px) {
    .header-center .search-container .desktop-search {
        display: none !important;
    }
    
    .header-center .search-container .search-box {
        display: none !important;
    }
    
    .header-center .search-container .search-input {
        display: none !important;
    }
    
    .header-center .search-container .search-button {
        display: none !important;
    }
    
    /* Force hide all desktop search elements */
    .search-box {
        display: none !important;
    }
    
    .search-input {
        display: none !important;
    }
    
    .search-button {
        display: none !important;
    }
}

.header-center .search-container .search-box {
    display: flex !important;
    flex: 1 !important;
    background-color: white !important;
    border: 1px solid #d1d5db !important;
    border-radius: 40px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.header-center .search-container .search-input {
    flex: 1 !important;
    padding: 0.75rem 1rem !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: #1f2937 !important;
    width: auto !important;
}

.header-center .search-container .search-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 40px !important;
    border: none !important;
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-left: 1px solid #d1d5db !important;
    position: relative !important;
}


/* Mobile search icon (default state) */
.mobile-search-icon {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Force mobile search icon to show on all screens smaller than desktop */
@media screen and (max-width: 568px) {
    .mobile-search-icon {
    display: flex !important;
    }
    
    .desktop-search {
        display: none !important;
    }
    
    .search-box {
        display: none !important;
    }
    
    .search-input {
        display: none !important;
    }
    
    .search-button {
        display: none !important;
    }
    
    /* Ensure header center layout is correct */
    .header-center {
        justify-content: flex-end !important;
    }
    
    .search-container {
        justify-content: flex-end !important;
    }
    
    /* Force hide any voice search elements */
    .voice-search-button {
        display: none !important;
    }
    
    /* Override any existing search styles */
    .header-center .search-container .search-box {
        display: none !important;
    }
    
    .header-center .search-container .search-input {
        display: none !important;
    }
    
    .header-center .search-container .search-button {
        display: none !important;
    }
}

/* Force mobile search icon to be visible on mobile devices */
@media screen and (max-width: 568px) {
    .mobile-search-icon {
        display: flex !important;
    }
    
    .desktop-search {
        display: none !important;
    }
    
    .search-box {
        display: none !important;
    }
    
    .search-input {
        display: none !important;
    }
    
    .search-button {
        display: none !important;
    }
}

/* Additional mobile detection for smaller screens */
@media screen and (max-width: 568px) {
    .mobile-search-icon {
        display: flex !important;
    }
    
    .desktop-search {
        display: none !important;
    }
    
    .search-box {
        display: none !important;
    }
    
    .search-input {
        display: none !important;
    }
    
    .search-button {
        display: none !important;
    }
}

.mobile-search-icon:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Ensure mobile search icon is always visible on mobile */
@media screen and (max-width: 568px) {
    .mobile-search-icon {
        display: flex !important;
        background: #f9fafb !important;
        border: 1px solid #d1d5db !important;
        color: #6b7280 !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        border-radius: 50% !important;
        transition: all 0.2s ease !important;
    width: 40px !important;
    height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    /* Force hide all desktop search elements with maximum specificity */
    .main-header .header-center .search-container .desktop-search,
    .main-header .header-center .search-container .search-box,
    .main-header .header-center .search-container .search-input,
    .main-header .header-center .search-container .search-button,
    .main-header .header-center .search-container .voice-search-button {
        display: none !important;
    }
    
    /* Additional specificity for mobile */
    body .main-header .header-center .search-container .desktop-search,
    body .main-header .header-center .search-container .search-box,
    body .main-header .header-center .search-container .search-input,
    body .main-header .header-center .search-container .search-button,
    body .main-header .header-center .search-container .voice-search-button {
        display: none !important;
    }
    
    /* Force show mobile search icon with maximum specificity */
    body .main-header .header-center .search-container .mobile-search-icon {
        display: flex !important;
        background: #f9fafb !important;
        border: 1px solid #d1d5db !important;
    color: #6b7280 !important;
    cursor: pointer !important;
        padding: 0.5rem !important;
        border-radius: 50% !important;
    transition: all 0.2s ease !important;
        width: 40px !important;
        height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
}

/* Mobile expanded search (hidden by default) */
.mobile-search-expanded {
    display: none;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0;
}

/* Mobile search expanded state - full overlay */
@media screen and (max-width: 768px) {
    .mobile-search-expanded.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        z-index: 1000 !important;
        background: white !important;
        padding: 0.75rem 1rem !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        height: 60px !important;
        align-items: center !important;
        display: flex !important;
    }
}

.mobile-search-back {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-search-back:hover {
    background: #f3f4f6;
    color: #374151;
}

.mobile-search-box {
    display: flex;
    flex: 1;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    max-width: calc(100vw - 120px);
}

/* Mobile search box in expanded state */
@media screen and (max-width: 768px) {
    .mobile-search-expanded.active .mobile-search-box {
        flex: 1 !important;
        max-width: calc(100vw - 120px) !important;
        width: 100% !important;
    }
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px; /* Prevents zoom on iOS */
    color: #1f2937;
    width: 100%;
}

/* Mobile search input in expanded state */
@media screen and (max-width: 768px) {
    .mobile-search-expanded.active .mobile-search-input {
        flex: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

.mobile-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 40px;
    border: none;
    background-color: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 1px solid #d1d5db;
}

.mobile-search-submit:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Mobile responsiveness for search box */
@media screen and (max-width: 568px) {
    .header-center {
        margin: 0 1rem;
        max-width: none;
        position: relative;
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
    
    .search-container {
        max-width: none;
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    /* Hide desktop search on mobile */
    .desktop-search {
        display: none !important;
    }
    
    /* Show mobile search icon by default */
    .mobile-search-icon {
        display: flex !important;
        position: relative;
        z-index: 10;
    }
    
    /* Hide mobile expanded search by default */
    .mobile-search-expanded {
        display: none !important;
    }
    
    /* Show mobile expanded search when active */
    .mobile-search-expanded.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: white;
        padding: 0.75rem 1rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        height: 60px;
        align-items: center;
    }
    
    /* Hide mobile search icon when expanded */
    .mobile-search-expanded.active ~ .mobile-search-icon {
        display: none !important;
    }
    
    /* Mobile search box click enhancement */
    .mobile-search-box:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Additional mobile breakpoint for smaller screens */
@media screen and (max-width: 480px) {
    .header-center {
        margin: 0 0.5rem;
    }
    
    /* Ensure mobile search icon is visible on very small screens */
    .mobile-search-icon {
        display: flex !important;
    }
    
    /* Hide desktop search on very small screens */
    .desktop-search,
    .search-box,
    .search-input,
    .search-button {
        display: none !important;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.header-action:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

.user-menu {
    position: relative;
}

/* Ensure mobile profile icon is always visible when logged in */
.mobile-profile-icon {
    display: none !important;
}

@media screen and (max-width: 1024px) {
    .mobile-profile-icon {
        display: inline-block !important;
        font-size: 24px !important;
        color: #111 !important;
        margin-right: 8px !important;
        background: #f0f0f0 !important;
        padding: 4px !important;
        border-radius: 4px !important;
    }
}

/* When opened via mobile trigger */
.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.user-info:hover {
    background-color: var(--background-color);
}

.user-avatar {
    width: 37px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--background-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-actions .add-page-btn .btn-text{
    line-height: 0;
    font-size: 16px;
    margin-top: -3px;
    text-align: end;
}
.header-actions .add-page-btn i {
    margin-right: 0px !important;
    font-size: 14px;
}
.auth-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile header: show a compact Log In button on the right */
@media screen and (max-width: 768px) {
    .auth-actions {
        display: flex !important;
    }
    .auth-actions .mklogin_button {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        height: 36px !important;
        border: 1px solid #d1d5db !important;
        border-radius: 9999px !important;
        background: #fff !important;
        color: #111 !important;
        font-weight: 600 !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
    }
    .auth-actions .mklogin_button img.header-icon { display: none !important; }
}

.header-tagline {
    background: var(--background-color);
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.tagline-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Header Sub Bar */
.header-sub-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

/* Hide header sub-bar on mobile */
@media screen and (max-width: 768px) {
    .header-sub-bar {
        display: none !important;
    }
    
    /* Show compact profile trigger on mobile (uses outline icon + arrow) */
    .header-right .user-menu {
        display: block !important;
    }
    .header-right .user-menu .user-avatar { display: none !important; }
    .header-right .user-menu .user-name { display: none !important; }
    .header-right .user-menu .fa-chevron-down { display: inline-block !important; }
    .mobile-profile-icon { 
        font-size: 24px !important; 
        color: #111 !important; 
        margin-right: 8px !important;
        display: inline-block !important;
    }
}

/* Also apply mobile styles for smaller desktop screens */
@media screen and (max-width: 1024px) {
    .header-right .user-menu .user-avatar { display: none !important; }
    .header-right .user-menu .user-name { display: none !important; }
    .header-right .user-menu .fa-chevron-down { display: inline-block !important; }
    .mobile-profile-icon { 
        font-size: 24px !important; 
        color: #111 !important; 
        margin-right: 8px !important;
        display: inline-block !important;
    }
}

.tagline-section {
    flex: 1;
}

.header-sub-bar .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.refresh-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: -0.025em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--card-background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--background-color);
    border-color: var(--text-secondary);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-icon {
    width: 16px;
    height: 16px;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    top: 64px; /* Start below the header */
    left: -300px; /* Hidden by default */
    width: 240px;
    height: calc(100vh - 64px); /* Adjust height to account for header */
    background: var(--card-background);
    border-right: 1px solid var(--border-color);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* Add shadow for overlay effect */
}

.sidebar-nav.active {
    left: 0;
}

/* When sidebar is active, main content stays in place (no margin shift) */
body.sidebar-active .main-content {
    /* No margin shift - content stays in original position */
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-color);
}

/* Sidebar close button removed - sidebar now stays open */

.sidebar-menu {
    padding: 0.5rem 0;
}

/* Base Sidebar Item */
.sidebar-item {
    display: flex
;
    align-items: center;
    gap: 0.5rem;
    padding: 7px 12px;
    color: #0f0f0f;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    margin: 2px 8px;
}

/* Icons bhi properly align aur gray by default */
.sidebar-item i {
    font-size: 10px;
    color: #606060;
    transition: color 0.2s ease;
    background: #ebebeb;
    width: 23px;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
}
.user-info i{
    margin-top: -6px;
}
/* Hover state */
.sidebar-item:hover {
    background-color: #f2f2f2; /* Light gray hover like YouTube */
    color: #0f0f0f;
}

.sidebar-item:hover i {
    color: #0f0f0f;
}

/* Active/Selected state */
.sidebar-item.active {
    background-color: #e5e5e5; /* Thoda darker gray for active */
    color: #0f0f0f;
    font-weight: 600;
}

.sidebar-item.active i {
    color: #0f0f0f;
}

/* Divider (thin line like YouTube sidebar) */
.sidebar-divider {
    height: 1px;
    background-color: #e5e5e5;
    margin: 8px 0;
}



.sidebar-overlay {
    position: fixed;
    top: 64px; /* Start below the header */
    left: 0;
    width: 100vw;
    height: calc(100vh - 64px); /* Adjust height to account for header */
    background: rgba(0, 0, 0, 0.3);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: none; /* Hidden by default */
}

.sidebar-overlay.active {
 /*   display: block;*/
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 64px);
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Reduce main content padding on mobile */
/*@media screen and (max-width: 768px) {*/
/*    .main-content {*/
/*        padding: 1rem 0rem !important;*/
/*    }*/
/*}*/

/* Layout Components */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

.content-main {
    min-height: 200px;
}

/* Compact layout when no posts */
.content-main:has(.no-posts) {
    min-height: auto;
    padding-bottom: 1rem;
}

.content-sidebar {
    position: sticky;
    top: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.08);
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.content-sidebar:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.content-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    z-index: 1;
}

/* Add Post Form Container within Sidebar */
.content-sidebar .add-post-form-container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
/*    padding: 2rem;*/
    position: relative;
    overflow: visible;
}

.content-sidebar .add-post-form-container::before {
    display: none;
}

/* Sidebar Header */
.content-sidebar .add-post-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    margin: 0 2rem;
}

/* Enhanced Form Title for Sidebar */
.content-sidebar .form-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: left;
    position: relative;
    padding-left: 1.5rem;
}

.content-sidebar .form-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* Enhanced Form Subtitle for Sidebar */
.content-sidebar .form-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-weight: 400;
    line-height: 1.5;
    padding-left: 1.5rem;
}

/* Enhanced Form Groups for Sidebar */
.content-sidebar .form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.content-sidebar .form-group:last-child {
    margin-bottom: 0;
}

/* Enhanced Form Labels for Sidebar */
.content-sidebar .form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: -0.025em;
    padding-left: 0.25rem;
}

.content-sidebar .form-label i:first-child {
    color: #3b82f6;
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
}

/* Enhanced Form Inputs for Sidebar */
.content-sidebar .form-input,
.content-sidebar .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1e293b;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-sidebar .form-input:focus,
.content-sidebar .form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.content-sidebar .form-input:hover,
.content-sidebar .form-textarea:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Enhanced Form Help Text for Sidebar */
.content-sidebar .form-help {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
    line-height: 1.4;
}

/* Enhanced Preview Content for Sidebar */
.content-sidebar .preview-content {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
}

/* Enhanced Loading Spinner for Sidebar */
.content-sidebar .preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.content-sidebar .loading-spinner {
    position: relative;
    width: 32px;
    height: 32px;
    margin-bottom: 0.75rem;
}

.content-sidebar .loading-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.content-sidebar .loading-subtitle {
    color: #64748b;
    font-size: 0.75rem;
}

/* Enhanced Form Actions for Sidebar */
.content-sidebar .form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Enhanced Buttons for Sidebar */
.content-sidebar .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: -0.025em;
    flex: 1;
    justify-content: center;
}

.content-sidebar .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.content-sidebar .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.content-sidebar .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.content-sidebar .btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

/* Enhanced Image Options for Sidebar */
.content-sidebar .image-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.content-sidebar .option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.content-sidebar .option-group:hover {
    background-color: #f8fafc;
}

.content-sidebar .option-group input[type="radio"] {
    margin: 0;
}

.content-sidebar .option-group label {
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

/* Enhanced Custom Image Upload for Sidebar */
.content-sidebar .custom-image-upload {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.content-sidebar .form-file {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #475569;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-sidebar .form-file:hover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.content-sidebar .file-help {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: center;
}

            /* Enhanced Preview Item for Sidebar */
            .content-sidebar .preview-item {
                display: flex;
                flex-direction: row;
                gap: 0.75rem;
                border: 1px solid #e2e8f0;
                border-radius: 10px;
                padding: 0.75rem;
                background-color: #ffffff;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
                opacity: 0;
                transform: translateY(10px);
                transition: all 0.3s ease;
                align-items: flex-start;
            }

            .content-sidebar .preview-item.show {
                opacity: 1;
                transform: translateY(0);
            }

            .content-sidebar .preview-image {
                flex-shrink: 0;
                width: 100px;
                height: 70px;
            }

            .content-sidebar .preview-image img {
                width: 100%;
                height: 100%;
                border-radius: 6px;
                object-fit: cover;
            }

            .content-sidebar .preview-text {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
                min-width: 0;
            }

            /* Preview Text Content */
            .preview-text {
                display: flex;
                flex-direction: column;
                gap: 0.75rem;
            }

            .preview-title {
                font-weight: 600;
                color: #1e293b;
                font-size: 1rem;
                line-height: 1.4;
                margin: 0;
            }

            .preview-description {
                color: #64748b;
                font-size: 0.875rem;
                line-height: 1.5;
                margin: 0;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            .content-sidebar .preview-title {
                font-weight: 600;
                color: #1e293b;
                font-size: 0.85rem;
                line-height: 1.4;
                margin: 0;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .content-sidebar .preview-description {
                color: #64748b;
                font-size: 0.75rem;
                line-height: 1.4;
                margin: 0;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .content-sidebar .preview-info {
                display: flex;
                align-items: center;
                gap: 0.25rem;
                color: #94a3b8;
                font-size: 0.65rem;
                margin-top: 0.25rem;
            }

            .content-sidebar .info-icon {
                width: 10px;
                height: 10px;
                opacity: 0.7;
            }


/* Enhanced Video Container for Sidebar */
.content-sidebar .video-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-sidebar .video-container iframe {
    width: 100%;
    height: 120px;
    border: none;
}

/* Enhanced Preview Error for Sidebar */
.content-sidebar .preview-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc2626;
    padding: 0.75rem;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-size: 0.75rem;
}

/* Login Required Message for Sidebar */
.content-sidebar .login-required {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.content-sidebar .login-required p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.content-sidebar .login-required a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content-sidebar .login-required a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* User and Page Header Cards */
.user-header-card,
.page-header-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
}

.user-header-content,
.page-header-content {
    padding: 2rem;
}

.user-profile-section,
.page-profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: space-between;
}
.user-profile-image,
.page-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}
.user-name,
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-handle,
.page-handle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.user-bio,
.page-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.user-stats,
.page-stats {
    display: flex;
    gap: 2rem;
}

/* move stats to right for user header */
.user-stats.user-stats-right { margin-left: auto; }

/* Align page stats to the right within header */
.page-stats.page-stats-right { margin-left: auto; }

/* Hide handle and owner in page header as requested */
.page-header-card .page-handle { display: none; }
.page-header-card .page-owner { display: none; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.stat-item i {
    color: var(--primary-color);
}

.page-owner {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two independent columns */
    column-gap: 1.5rem;
}

/* Make the inner columns wrapper span both outer columns */
.posts-grid > .posts-columns { grid-column: 1 / -1; }

/* Columns wrapper created dynamically after the featured first post */
.posts-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
    align-items: start;
}

.posts-col {
    display: block;
}

.post-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: grab;
    user-select: none;
}

/* Action menu always visible */
.action-toggle { opacity: 1; }
.post-card:hover .action-toggle { opacity: 1; }
.post-card.dragging .action-toggle { opacity: 0 !important; }
.post-card .action-menu { position: relative; }
.post-card .action-dropdown { min-width: 140px; }

.post-card:active {
    cursor: grabbing;
}

.post-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.post-card.drag-over {
    border: 2px dashed var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.post-card.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card.first-post {
    grid-column: 1 / -1;
}

.post-move-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.move-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: var(--transition);
    cursor: grab;
}

.post-card:hover .move-icon {
    opacity: 1;
    transform: scale(1.1);
}

.post-card:active .move-icon {
    cursor: grabbing;
}

.move-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 0.25rem;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: var(--transition);
}

.post-title:hover {
    color: var(--primary-color);
}

.post-title.first-post-title {
    font-size: 1.5rem;
}

.post-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-media {
    margin-bottom: 1rem;
}

.post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-video {
    width: 100%;
    border-radius: var(--border-radius);
    max-height: 300px;
    object-fit: cover;
}

.post-video iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: var(--border-radius);
}

.post-video video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-actions {
       position: absolute;
    bottom: 35px;
    left: -8px;
    right: auto;
    z-index: 60;
}

.action-menu {
    position: relative;
    z-index: 50;
}

.action-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: var(--transition);

}

.action-toggle:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--text-primary);
}


.action-menu.inline-open .action-dropdown {
    max-width: 220px;
    opacity: 1;
    transform: translateX(0);
    padding: 17px 10px;
}

.action-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0.35rem 0.6rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: var(--card-background);
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 0.5rem;
}

.action-item:hover {
    background-color: var(--background-color);
}

/* Add Post Form */
.add-post-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.add-post-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 16px 16px 0 0;
}

.add-post-form {
    max-width: 100%;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-align: center;
}

.form-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: -0.025em;
}

.help-icon {
    color: var(--text-muted);
    cursor: help;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #1e293b;
    font-weight: 500;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
    transform: translateY(-1px);
}

.form-input:hover,
.form-textarea:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-file {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    cursor: pointer;
    transition: var(--transition);
}

.form-file:hover {
    border-color: var(--primary-color);
    background-color: rgb(37 99 235 / 0.05);
}

.file-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Preview Styles */
.preview-content {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    position: relative;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.loading-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.loading-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

.preview-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc2626;
    padding: 1rem;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    font-size: 0.875rem;
}

.preview-error {
    color: var(--error-color);
}

.preview-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.preview-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
}

.preview-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.preview-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.preview-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-description {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.info-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.form-help .info-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Form field background color */
.form-input,
.form-textarea {
    background-color: #f8fafc !important;
}

/* Ensure consistent font family for all form fields */
.form-input,
.form-textarea {
    font-family: inherit !important;
}

/* Upload Area Design - Compact Layout */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background-color: #f8fafc;
    transition: border-color 0.2s ease;
}

.upload-area:hover {
    border-color: #3b82f6;
}

.upload-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.upload-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.upload-info {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.browse-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
    height: 36px;
}

.browse-file-btn:hover {
    background-color: #2563eb;
}

.browse-file-btn i {
    font-size: 0.875rem;
}

.file-name {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
}

.preview-video video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.add-post-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.add-post-form .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-post-form .btn-primary {
    background: var(--primary-color);
    color: white;
}

.add-post-form .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.add-post-form .btn-secondary {
    background: #6b7280;
    color: white;
}

.add-post-form .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Duplicate Page Section Styles */
.duplicate-page-section {

    
}

.duplicate-page-section .form-divider {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 0 0 1.5rem 0;
}

.duplicate-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.duplicate-info i {
    color: var(--primary-color);
}

.duplicate-page-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.duplicate-page-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.duplicate-help {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}

/* Contributions Disabled Message */
.contributions-disabled-message {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.contributions-disabled-message .message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contributions-disabled-message i {
    font-size: 2rem;
    color: #9ca3af;
}

.contributions-disabled-message h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.contributions-disabled-message p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Crop Modal Styles */
#crop-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#crop-modal.active {
    display: block;
}

#crop-modal .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: visible;
}

#crop-modal .modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#crop-modal .modal-body {
    padding: 1rem;
    max-height: none;
    overflow: visible;
}

#crop-modal .modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

#crop-container {
    width: 100%;
    text-align: center;
}

#crop-container img {
    max-width: 100%;
    max-height: 350px;
    display: block;
    margin: 0 auto;
}

.create-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.create-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3b82f6;
}

.create-page-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding:10px 16px;
}

.form-section {
  
    border-bottom: 1px solid #f3f4f6;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}
.section-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 0.875rem;
}
/* Image Upload Styles */
.image-upload-container {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}



.image-preview:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.image-preview.has-image {
    border: none;
    background: white;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #9ca3af;
    text-align: center;
}

.image-placeholder i {
    font-size: 1.5rem;
}

.image-placeholder span {
    font-size: 0.75rem;
    font-weight: 500;
}

.image-description {
    color: #374151;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.image-requirements {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Handle Input Styles */
.handle-input {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.handle-prefix {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    color: #6b7280;
    font-weight: 500;
    border-right: 1px solid #d1d5db;
}

.handle-input .form-input {
    border: none;
    border-radius: 0;
    flex: 1;
}

.handle-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #6b7280;
    font-family: monospace;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.125rem;
    transition: all 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #3b82f6;
    background: #3b82f6;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-content {
    flex: 1;
}

.radio-content strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.radio-content span {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Form Actions */
.form-actions {
    padding: 1.5rem;
    background: #f9fafb;
    text-align: center;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Crop Modal Styles */
.crop-modal {
    max-width: 600px;
    width: 90%;
}

.crop-container {
    margin-bottom: 1rem;
    text-align: center;
}

#crop-area {
    max-height: 400px;
    overflow: hidden;
}

.crop-controls {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    position: relative;
    z-index: 1001;
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-page-container {
        padding: 1rem;
    }
    
    .create-page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .image-preview {
        width: 150px;
        height: 150px;
    }
} 

/* Image Options */
.image-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group input[type="radio"] {
    margin: 0;
}

.option-group label {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Pages List */
.pages-list {
    display: grid;
    gap: 0.75rem;
}

.page-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.page-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.page-card:active {
    transform: translateY(0);
}

.page-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.page-card.drag-over {
    border: 2px dashed var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.page-card.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
}

.page-drag-handle {
    color: #9ca3af;
    cursor: grab;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.page-drag-handle:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.page-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-image-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
     border-radius: 12px;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.page-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.page-pin-badge {
    background: #3b82f6;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.page-handle {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.page-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.page-moves,
.page-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
}

.page-moves .stat-icon,
.page-views .stat-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.page-visibility {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.page-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.page-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.page-action:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.page-action.toggle-pin i.pinned {
    color: #3b82f6; /* Blue color for pinned state */
}

.page-action.toggle-pin:hover i.pinned {
    color: #2563eb; /* Darker blue on hover */
}

.page-action-menu {
    position: relative;
}

.page-action-menu .action-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;

}

.page-action-menu .action-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.page-action-menu .action-dropdown {
        position: absolute;
    top: -5px;
    left: 30px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 50;
    margin-top: 0.25rem;
    pointer-events: none;
  
}

.page-action-menu .action-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: block !important;
}

.page-action-menu .action-item {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.page-action-menu .action-item:hover {
    background-color: var(--background-color);
}

.page-action-menu .action-item.delete-page {
    color: var(--error-color);
}

.page-action-menu .action-item.delete-page:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Notification System */
.notification-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

/* Login-required modal */
.login-required-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.45); z-index: 4000; }
.login-required-overlay.active { display: flex; }
.login-required-modal { background: #fff; width: 92%; max-width: 460px; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.login-required-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.login-required-title { font-weight: 700; }
.login-required-body { padding: 1rem 1.25rem; color: #475569; }
.login-required-actions { display: flex; gap: .5rem; justify-content: flex-end; padding: 0 1.25rem 1rem; }
.btn-link { background: none; border: none; color: var(--primary-color); font-weight: 700; cursor: pointer; }

.notification {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--primary-color);
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--error-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification-icon {
    font-size: 1.25rem;
}

.notification.success .notification-icon {
    color: var(--success-color);
}

.notification.error .notification-icon {
    color: var(--error-color);
}

.notification.warning .notification-icon {
    color: var(--warning-color);
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.notification-close:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

/* Footer */
.main-footer {
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }

.no-posts,
.no-pages {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Compact posts grid when no posts */
.posts-grid:has(.no-posts) {
    min-height: auto;
    padding: 0;
}

/* Reduce gap in two-column layout when no posts */
.two-column-layout:has(.no-posts) {
    gap: 1rem;
}

.login-required {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.login-required a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-required a:hover {
    text-decoration: underline;
}

/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.auth-header-gradient {
   padding: 2rem;
    text-align: center;
    color: #040404;
    border-bottom: #ccc;
}

.auth-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.auth-welcome {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-background);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab:hover {
    color: var(--text-primary);
    background-color: var(--background-color);
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.auth-form {
    padding: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-form .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--card-background);
}

.auth-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-form .form-input:hover {
    border-color: var(--text-muted);
}

.auth-form .form-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.auth-form .forgot-password-link {
    text-align: right;
    margin-bottom: 1rem;
}

.auth-form .forgot-password-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-form .forgot-password-link a:hover {
    text-decoration: underline;
}

.auth-form .btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
}

.auth-footer-link {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer-link a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.auth-footer-link a:hover {
    opacity: 0.8;
}

/* Modal Styles for Forgot Password */
.modal-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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--background-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for Auth Pages */
@media (max-width: 768px) {
    .auth-page {
        padding: 0.5rem;
    }
    
    .auth-container {
        max-width: 100%;
    }
    
    .auth-header-gradient {
        padding: 1.5rem;
    }
    
    .auth-logo {
        font-size: 1.75rem;
    }
    
    .auth-welcome {
        font-size: 0.875rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        padding: 0.75rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Responsive Design for Posts Grid */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
.posts-columns {
    display: grid;
    grid-template-columns: 1fr!important;
    column-gap: 1.5rem;
    align-items: start;
} 

    .post-card.first-post {
        grid-column: 1;
    }
    
    .post-content {
        padding: 1rem;
    }
    
.post-title.first-post-title {
    font-size: 1.25rem;
}
}

/* News-style overrides for posts grid on page view (keeps JS and layout intact) */
.two-column-layout .content-main .posts-grid > .post-card,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
  
    border-bottom: 1px solid var(--border-color);
}

/* New: Page hero header (title/author on left, actions on right) */
.page-hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.page-hero-left { flex: 1; }
.page-hero-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.35rem 0; }
.page-hero-subtitle { color: var(--text-secondary); max-width: 780px; margin-bottom: 0.75rem; }

.page-hero-meta { display: flex; align-items: center; gap: 0.75rem; }
.page-hero-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); }
.page-hero-author { color: var(--text-secondary); font-size: 0.95rem; }
.page-hero-author .by { color: var(--text-secondary); margin-right: 0.25rem; }
.page-hero-author .author-link { color: var(--primary-color); text-decoration: none; font-weight: 600; }
.page-hero-author .author-link:hover { text-decoration: underline; }

.page-hero-stats { display: flex; align-items: center; gap: 1rem; margin-left: 0.75rem; color: var(--text-secondary); font-weight: 500; }
.page-hero-stats .meta-item i { color: var(--text-secondary); }

.page-hero-right { display: flex; align-items: center; gap: 1rem; }
.page-hero-like { display: inline-flex; align-items: center; gap: 0.5rem; background: #f3f4f6; padding: 0.5rem 0.75rem; border-radius: 999px; }
.page-hero-like .btn-like, .page-hero-like .btn-dislike { background: transparent; border: none; color: #4b5563; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; transition: transform .15s ease, color .15s ease; }
.page-hero-like .btn-like i, .page-hero-like .btn-dislike i { color: inherit; }
.page-hero-like .btn-like.active, .page-hero-like .btn-dislike.active { color: #0b0b0b; transform: scale(1.02); }
.page-hero-like .btn-like i, .page-hero-like .btn-dislike i { color: #111827; }
.page-hero-like .divider {
    color: #9ca3af;
    line-height: 21px;
    height: 26px;
    overflow: hidden;
}

.btn-ghost { background: #f3f4f6; color: #111827; border: none; padding: 0.55rem 0.9rem; border-radius: 999px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-ghost:hover { background: #e5e7eb; }
.btn-ghost.active { background: #e5e7eb; color: #0b0b0b; }

/* bookmark pulse animation */
.btn-ghost.pulse { animation: pulseOnce .4s ease-out; }
@keyframes pulseOnce { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* simple confetti (CSS only particles) */
.confetti-burst { position: fixed; pointer-events: none; width: 6px; height: 6px; left: 0; top: 0; z-index: 3000; }
.confetti-burst::before, .confetti-burst::after { content: ""; position: absolute; width: 6px; height: 6px; background: linear-gradient(45deg, #22c55e, #3b82f6, #f59e0b, #ef4444); box-shadow: 10px -10px 0 #22c55e, -10px -10px 0 #3b82f6, 12px 8px 0 #f59e0b, -8px 12px 0 #ef4444, 18px 2px 0 #8b5cf6, -16px 0 0 #06b6d4; animation: confettiPop 1.2s ease-out forwards; }
@keyframes confettiPop { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(0,-60px) scale(0.8); } }

/* Share modal */
.share-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; z-index: 3000; }
.share-modal-overlay.active { display: flex; }
.share-modal { background: #fff; width: 92%; max-width: 640px; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.share-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); }
.share-modal-title { font-weight: 700; }
.share-modal-body { padding: 1rem 1.25rem; }
.share-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: .75rem; padding: .5rem 0 1rem; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-decoration: none; color: #111827; }
.share-item .circle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; }
.share-item:hover .circle { background: #e5e7eb; }
.share-link-row { display: flex; gap: .5rem; align-items: center; }
.share-input { flex: 1; padding: .75rem .9rem; border: 1px solid var(--border-color); border-radius: 8px; font-size: .9rem; }
.share-copy { padding: .65rem 1rem; border-radius: 8px; border: none; background: #111827; color: #fff; cursor: pointer; }
.share-close { background: none; border: none; cursor: pointer; color: #6b7280; font-size: 1.1rem; }

@media (max-width: 768px) {
  .page-hero-header { flex-direction: column; align-items: stretch; gap: 1rem; }
  .page-hero-right { justify-content: flex-start; gap: 0.5rem; flex-wrap: wrap;}
}

.two-column-layout .content-main .posts-grid > .post-card:hover,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card:hover {
    box-shadow: none;
    transform: none;
}

.two-column-layout .content-main .posts-grid > .post-card .post-content,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .post-content {
    padding: 0.85rem 1rem; /* tighter vertical padding like ref */
}

.two-column-layout .content-main .posts-grid > .post-card .post-title,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .post-title {
    font-weight: 500; /* non-bold for regular items */
    font-size: 1rem;
    margin: 0 3.25rem 0.4rem 0; /* space for 23px icon + count */
    line-height: 1.35;
}

.two-column-layout .content-main .posts-grid > .post-card .post-title.first-post-title,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .post-title.first-post-title {
    font-size: 2.25rem; /* major headline */
    line-height: 1.15;
    font-weight: 800;
    margin-right: 6rem; /* extra space for 45px icon + count */
}

/* Semi headline: the second card (top of right column) */
/* Semi headline: top of right column is the 3rd item (after the full-width first) */
/* Semi headline for the second item: top of LEFT column only */
.two-column-layout .content-main .posts-grid > .post-card:nth-child(3) .post-title,
.two-column-layout .content-main .posts-columns > .posts-col-left > .post-card:first-child .post-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Third strongest (below semi) for top of RIGHT column */
.two-column-layout .content-main .posts-columns > .posts-col-right > .post-card:first-child .post-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.posts-col-left, .posts-col-right {margin-top:15px; padding: 10px; border:1px solid #ddd9d9; border-radius: 8px; background-color: #fff;;}

.two-column-layout .content-main .posts-grid .post-description {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .move-count { color:#000!important;}

/* Hide description and images on list-style items (non-feature) */
.two-column-layout .content-main .posts-grid .post-card:not(.first-post) .post-description {
    display: none;
}
.two-column-layout .content-main .posts-grid .post-card:not(.first-post) img.post-image {
    display: none;
}

/* Keep videos visible, with tuned heights */
.two-column-layout .content-main .posts-grid .post-card .post-video { width: 100%; height: 360px; }
.two-column-layout .content-main .posts-grid .post-card:not(.first-post) .post-video { height: 220px; }

/* Move counter look similar to compact label */
.two-column-layout .content-main .posts-grid .post-move-counter {
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    padding: 0;
    gap: 0.35rem;
}
.two-column-layout .content-main .posts-grid .move-icon { width: 14px; height: 14px; opacity: 0.6; }
.two-column-layout .content-main .posts-grid .move-count { font-weight: 800; font-size: 0.95rem; color: #2563eb; }
.two-column-layout .content-main .posts-grid .post-card.first-post .move-count { font-size: 1.5rem; }

/* Featured first post: large icon and stacked count below */
.two-column-layout .content-main .posts-grid > .post-card.first-post .post-move-counter {
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.two-column-layout .content-main .posts-grid > .post-card.first-post .move-icon {
    width: 45px;
    height: 45px;
    opacity: 0.85;
}
.two-column-layout .content-main .posts-grid > .post-card.first-post .move-count {
    font-size: 2rem;
    line-height: 1;
}

/* Feature block separation */
.two-column-layout .content-main .posts-grid > .post-card.first-post {
    grid-column: 1 / -1;
    padding-bottom: 0.5rem;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

/* Hide meta (date/author) per requirement */
.two-column-layout .content-main .posts-grid > .post-card .post-meta,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .post-meta { display: none; }

/* Always show action dots */
.two-column-layout .content-main .posts-grid > .post-card .post-actions,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .post-actions { display: block; }

/* Move icon + count sizes */
.two-column-layout .content-main .posts-grid > .post-card .move-icon,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .move-icon { width: 16px; height: 16px; opacity: 0.55; }
.two-column-layout .content-main .posts-grid > .post-card .move-count,
.two-column-layout .content-main .posts-columns > .posts-col > .post-card .move-count { font-size: 0.875rem; color: #292a2b; }
.two-column-layout .content-main .posts-grid > .post-card.first-post .move-count { font-size: 2rem; }

/* Placement + sizing for regular list items: center-right small icon and count */
.two-column-layout .content-main .posts-columns > .posts-col > .post-card:not(.first-post) .post-move-counter,
.two-column-layout .content-main .posts-grid > .post-card:not(.first-post) .post-move-counter {
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.two-column-layout .content-main .posts-columns > .posts-col > .post-card:not(.first-post) .move-icon,
.two-column-layout .content-main .posts-grid > .post-card:not(.first-post) .move-icon {
    width: 23px;
    height: 23px;
    opacity: 0.75;
}

.two-column-layout .content-main .posts-columns > .posts-col > .post-card:not(.first-post) .move-count,
.two-column-layout .content-main .posts-grid > .post-card:not(.first-post) .move-count {
    font-size: 0.8rem;
    font-weight: 700;
}

/* Remove bottom border on the last card of each column and at the very end of the list */
.two-column-layout .content-main .posts-columns > .posts-col > .post-card:last-child {
    border-bottom: none;
}
.two-column-layout .content-main .posts-grid > .post-card.first-post:last-child {
    border-bottom: none;
}

/* Sidebar behavior is now consistent across all screen sizes */
/* The sidebar overlays content like a modal on all devices */

/* Homepage Component Layout */
.homepage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Reduce homepage padding on mobile */
@media screen and (max-width: 768px) {
    .homepage {
        padding: 1rem 1rem !important;
    }
}

/* Top Content Section - 3 Column Grid */
.top-content-section {
    margin-bottom: 3rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-column {
    padding: 1.5rem;
}

.content-card h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.feature-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.feature-tagline {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.start-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.start-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.start-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.start-tagline {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* Main Content Grid Layout */
.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.left-column, .right-column {
   
   
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-button:hover {
    color: var(--text-primary);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Pages List - Exact Reference Design */
.pages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 1px solid #f3f4f6;
    position: relative;
}

.page-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.page-drag-handle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: grab;
    margin-top: 0.125rem;
}

.drag-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.page-main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.page-handle {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.page-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    max-width: 100%;
}

.page-author {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.2;
}

.page-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: space-between;
}

.page-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.stat-line {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 12px;
    color: #6b7280;
}

.stat-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    flex-shrink: 0;
}

.stat-value {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.page-visibility {
    text-align: right;
}

.visibility-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #3b82f6;
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.no-pages {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}
.no-pages p {
    margin: 0;
    font-size: 14px;
}
/* Authors & Accounts Section - Fresh Design */
.authors-accounts-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.users-grid {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-card {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.user-card:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.user-main-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.user-avatar img,
.avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.avatar-placeholder {
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 0.25rem 0;
}

.user-handle {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.user-stats-row {
    display: flex;
    gap: 1.5rem;
    padding-left: 3.25rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: #6b7280;
}

.stat-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

.stat-value {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.no-users {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.no-users p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design for Authors & Accounts */
@media (max-width: 768px) {
    .authors-accounts-section {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .section-header {
        padding: 1.25rem 1rem 0.75rem 1rem;
    }
    
    .section-header h2 {
        font-size: 16px;
    }
    
    .users-grid {
        gap: 0.75rem;
    }
    
    .user-card {
        padding: 0.875rem;
    }
    
    .user-main-info {
        gap: 0.75rem;
        margin-bottom: 0.625rem;
    }
    
    .user-avatar img,
    .avatar-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .avatar-placeholder {
        font-size: 16px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .user-handle {
        font-size: 12px;
    }
    
    .user-stats-row {
        gap: 1.25rem;
        padding-left: 2.75rem;
    }
    
    .stat-item {
        gap: 0.375rem;
        font-size: 11px;
    }
    
    .stat-icon {
        width: 12px;
        height: 12px;
    }
    
    .stat-value {
        font-size: 11px;
    }
}

/* Page Grid Section */
.page-grid-section {
    margin-bottom: 2rem;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.page-grid-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.page-grid-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.page-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.page-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pinned-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.share-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.share-button:hover {
    opacity: 1;
}

.share-button img {
    width: 16px;
    height: 16px;
}

.page-grid-content {
    padding: 1rem;
}

.page-grid-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.page-grid-handle {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.page-grid-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.page-grid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item .stat-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
    }
    
    .page-item, .user-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-stats, .user-stats {
        align-items: flex-start;
        margin-top: 0.5rem;
        text-align: left;
    }
    
    .right-column-section {
        margin-bottom: 1.5rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .content-card h2 {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .user-item {
        padding: 0.75rem;
    }
    
    .user-avatar img,
    .avatar-placeholder {
        width: 36px;
        height: 36px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .user-handle {
        font-size: 12px;
    }
    
    .stat-item {
        font-size: 10px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 10px;
        height: 10px;
        object-fit: contain;
    }
}

.mklogin_button {color: #000 !important;
    border: 1.4px solid #b2b2b2;
    padding: 5px 19px 7px;
    margin: 0px 0 0 5px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex
;
    width: fit-content;}
    .header-icon {
    width: 19px;
    border-radius: inherit;
    height: inherit;
    padding: 0px;
    margin-right: 7px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-button:hover {
    color: var(--text-primary);
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Pages Tabs Section */
.pages-tabs-section {
   /* background: #fff;*/
    /*border-radius: 12px;*/
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/ 
    /* border: 1px solid #f3f4f6; */
    overflow: hidden;
}

.pages-tabs-section .section-header {
   /* padding: 1.5rem 1.5rem 1rem 1.5rem;*/ 
    border-bottom: 1px solid #e5e7eb;
}

.pages-tabs-section .section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pages-tabs-section .tab-navigation {
    margin: 0 1.5rem 1.5rem 1.5rem;
    border-bottom: none;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 0.25rem;
}

.pages-tabs-section .tab-button {
    background: transparent;
    border: none;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    color: #64748b;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 100px;
    text-align: center;
    border-bottom: none;
}

.pages-tabs-section .tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.pages-tabs-section .tab-button span {
    position: relative;
    z-index: 1;
}

.pages-tabs-section .tab-button.active {
    color: white;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    border-bottom-color: transparent;
}

.pages-tabs-section .tab-button.active::before {
    opacity: 0;
}

.pages-tabs-section .tab-button:hover:not(.active) {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pages-tabs-section .tab-button:hover::before {
    opacity: 0;
}

.pages-tabs-section .tab-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    position: relative;
}

/* Enhanced tab content transitions */
.pages-tabs-section .tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.pages-tabs-section .tab-pane.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Add subtle animation to tab switching */
.pages-tabs-section .tab-button {
    position: relative;
}

.pages-tabs-section .tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.pages-tabs-section .tab-button.active::after {
    width: 80%;
}

/* Responsive Design for Pages Tabs Section */
@media (max-width: 768px) {
    .pages-tabs-section {
        margin: 0 -1rem;
    }
    
    .pages-tabs-section .tab-navigation {
        margin: 0 1rem 1.5rem 1rem;
        padding: 0.375rem;
        gap: 0.125rem;
    }
    
    .pages-tabs-section .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-width: 80px;
    }
    
    .pages-tabs-section .tab-content {
        padding: 0 1rem 1.5rem 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .pages-tabs-section .section-header {
        padding: 1.25rem 1rem 0.75rem 1rem;
    }
    
    .pages-tabs-section .section-header h2 {
        font-size: 16px;
    }
    
    .pages-tabs-section .tab-navigation {
        margin: 0 1rem 1.25rem 1rem;
    }
    
    .pages-tabs-section .tab-content {
        padding: 0;
    }
    
    .page-list-item {
        padding: 0.875rem;
    }
    
    .page-main-content {
        gap: 0.2rem;
    }
    
    .page-title {
        font-size: 14px;
    }
    
    .page-handle {
        font-size: 12px;
    }
    
    .page-description {
        font-size: 12px;
    }
    
    .page-right-section {
        min-width: 100px;
        display: flex;
        flex-direction: row;
    }

    
    .page-stats {
        gap: 0.2rem;
        margin-bottom: 0.375rem;
    }
    
    .stat-line {
        gap: 0.25rem;
        font-size: 11px;
    }
    
    .stat-icon {
        width: 10px;
        height: 10px;
    }
    
    .stat-value {
        font-size: 11px;
    }
    
    .page-actions {
        gap: 0.375rem;
        margin-top: 0.375rem;
    }
    
    .page-action {
        padding: 0.2rem;
    }
    
    .action-icon {
        width: 14px;
        height: 14px;
    }
}

/* Page Actions */
.page-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    margin-top: 0.5rem;
}

.page-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-action:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.action-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.page-action:hover .action-icon {
    opacity: 1;
}

/* Pin Action */
.pin-action .action-icon {
    opacity: 0.6;
}

.pin-action:hover .action-icon {
    opacity: 0.8;
}

/* Share Action */
.share-action .action-icon {
    opacity: 0.7;
}

.share-action:hover .action-icon {
    opacity: 0.9;
}

/* More Action */
.more-action .action-icon {
    opacity: 0.6;
}

.more-action:hover .action-icon {
    opacity: 0.8;
}

/* Page Grid Cards - Exact Design from Image Reference */
.page-grid-card {
    background: #e0f2fe;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease-in-out;
    border: 1px solid #b3e5fc;
}

.page-grid-card:hover {
    background: #b3e5fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-grid-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.page-grid-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
.page-grid-info {
    flex: 1;
    min-width: 0;
}
.page-grid-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-grid-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.page-pin-badge {
    background: #2563eb;
    color: white;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.page-pin-badge i {
    font-size: 0.7rem;
}

.page-grid-handle {
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.page-grid-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

.page-moves,
.page-views {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-moves .stat-icon,
.page-views .stat-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.8;
}

.page-moves i,
.page-views i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.page-grid-visibility {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.page-grid-visibility i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.page-grid-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.page-grid-actions .page-action {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-grid-actions .page-action:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.page-grid-actions .action-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.page-grid-actions .page-action:hover .action-icon {
    opacity: 1;
}

/* Edit Profile Page Styles */
.edit-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.edit-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.edit-profile-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-dark);
}

.edit-profile-form {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--background);
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Image Upload Section */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-preview {
 
    gap: 2rem;
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background);
    transition: border-color 0.2s ease;
    max-width: 200px;
    margin: 0 auto;
}

.image-preview:hover {
    border-color: var(--primary-color);
}

.image-preview.has-image {
    border-style: solid;
    border-color: var(--primary-color);
}

.profile-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.change-photo-btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.image-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.image-requirements {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Handle Section */
.handle-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.handle-availability {
    margin-left: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.handle-availability.available {
    color: #10b981;
}

.handle-availability.unavailable {
    color: #ef4444;
}

.handle-availability.error {
    color: #f59e0b;
}

.handle-prefix {
    background: var(--background);
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-right: 1px solid var(--border-color);
}

.handle-input .form-input {
    border: none;
    border-radius: 0;
    margin: 0;
    flex: 1;
}

.handle-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-family: monospace;
}

.handle-availability {
    margin-left: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.handle-availability.available {
    color: #10b981;
}

.handle-availability.unavailable {
    color: #ef4444;
}

.handle-availability.error {
    color: #f59e0b;
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #000;
    color:#fff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Crop Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);

    overflow: hidden;
}

.crop-modal {
    width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: var(--background);
}

.modal-body {
    padding: 1.5rem;
}

.crop-container {
    margin-bottom: 1.5rem;
}

#crop-area {
    max-width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.crop-controls {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive adjustments for edit profile page */
@media (max-width: 768px) {
    .edit-profile-container {
        padding: 1rem;
    }
    
    .edit-profile-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .edit-profile-form {
        padding: 1rem;
    }
    .form-section {
     padding: 1rem;
}
    
    .image-preview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-info {
        align-items: center;
    }
    
    .change-photo-btn {
        align-self: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive adjustments for page grid cards */
@media (max-width: 768px) {
    .page-grid-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .page-grid-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .page-grid-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .page-grid-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .page-grid-actions {
        align-self: flex-end;
    }
}

/********** CUSTOM PAGE CARD STYLES **********/

    .mks-page-item {
      background-color: white;
      border: 1px solid #e2e8f0;
}

.mks-page-item .mks-flex.mks-items-center.mks-space-x-6 .mks-flex.mks-items-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mks-page-item .mks-flex.mks-items-center.mks-space-x-6 .mks-flex.mks-items-center img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.mks-page-item {
    border-radius: 12px;
    padding: 20px;
    cursor: move;
    transition: all 0.2s ease;
    max-width: 800px;
    margin: 13px auto;
}
.mks-page-item:hover {
      box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
      border-color: #cbd5e1;
      transform: translateY(-1px);
    }
    
    .mks-flex {
      display: flex;
    }
    
    .mks-items-center {
      align-items: center;
    }
    
    .mks-justify-between {
      justify-content: space-between;
    }
    
    .mks-space-x-4 > * + * {
      margin-left: 16px;
    }
    
    .mks-space-x-6 > * + * {
      margin-left: 20px;
    }
    
    .mks-space-x-3 > * + * {
      margin-left: 12px;
    }
    
    .mks-space-x-2 > * + * {
      margin-left: 6px;
    }
    
    .mks-flex-shrink-0 {
      flex-shrink: 0;
    }
    
    .mks-flex-1 {
      flex: 1;
    }
    
    .mks-min-w-0 {
      min-width: 0;
    }
    
    .mks-w-10 {
      width: 40px;
    }
    
    .mks-h-10 {
      height: 40px;
    }
    
    .mks-bg-gray-100 {
      background-color: #f1f5f9;
      border: 1px solid #e2e8f0;
    }
    
    .mks-rounded-lg {
      border-radius: 10px;
    }
    
    .mks-text-gray-400 {
      color: #94a3b8;
    }
    
    .mks-hover-bg-gray-200:hover {
      background-color: #e2e8f0;
      border-color: #cbd5e1;
    }
    
    .mks-transition-colors {
      transition: all 0.2s ease;
    }
    
    .mks-mb-1 {
      margin-bottom: 4px; /* Reduced from 6px to 4px */
    }
    
    .mks-mb-2 {
      margin-bottom: 4px; /* Reduced from 6px to 4px */
    }
    
    .mks-font-semibold {
      font-weight: 600;
      letter-spacing: -0.025em;
    }
    
    .mks-text-gray-900 {
      color: #0f172a;
    }
    
    .mks-text-lg {
      font-size: 18px; /* Increased from 16px to 18px */
      line-height: 1.3; /* Reduced from 1.4 to 1.3 */
    }
    
    .mks-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
    font-size: 20px;
    }
    
    .mks-text-sm {
      font-size: 13px;
      line-height: 1.3;
    }
    
    .mks-text-blue-600 {
      color: #2563eb;
      font-weight: 500;
    }
    
    .mks-font-medium {
      font-weight: 500;
    }
    
    .mks-text-gray-500 {
          color: #64748b;
    font-weight: 500;
    margin-top: 13px;
    font-size: 14px;
    }
    
    .mks-capitalize {
      text-transform: capitalize;
    }
    
    .mks-mr-1 {
      margin-right: 5px;
    }
    
    .mks-mr-3 {
      margin-right: 10px;
    }
    
    .mks-p-2 {
      padding: 8px;
    }
    
    .mks-hover-text-blue-600:hover {
      color: #1d4ed8;
    }
    
    .mks-hover-bg-blue-50:hover {
      background-color: #eff6ff;
      border: 1px solid #dbeafe;
    }
    
    .mks-hover-text-gray-600:hover {
      color: #475569;
    }
    
    .mks-hover-bg-gray-100:hover {
      background-color: #f1f5f9;
      border: 1px solid #e2e8f0;
    }
    
    .mks-relative {
      position: relative;
    }
    
    .mks-absolute {
      position: absolute;
    }
    
    .mks-right-0 {
      right: 0;
    }
    
    .mks-mt-2 {
      margin-top: 8px;
    }
    
    .mks-w-40 {
      width: 160px;
    }
    
    .mks-bg-white {
      background-color: white;
    }
    
    .mks-shadow-lg {
      box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }
    
    .mks-border {
      border: 1px solid;
    }
    
    .mks-border-gray-200 {
      border-color: #e2e8f0;
    }
    
    .mks-py-1 {
      padding-top: 4px;
      padding-bottom: 4px;
    }
    
    .mks-z-50 {
      z-index: 50;
    }
    
    .mks-hidden {
      display: none;
    }
    
    .mks-w-full {
      width: 100%;
    }
    
    .mks-text-left {
      text-align: left;
    }
    
    .mks-px-4 {
      padding-left: 16px;
      padding-right: 16px;
    }
    
    .mks-py-2 {
      padding-top: 8px;
      padding-bottom: 8px;
    }
    
    .mks-text-gray-700 {
      color: #334155;
    }
    
    .mks-text-red-600 {
      color: #dc2626;
    }
    
    .mks-action-btn {
      border: 1px solid transparent;
      border-radius: 8px;
    }
    
    .mks-action-btn:hover {
      border-color: currentColor;
    }
    
    /* Grid icon styling - PROPERLY CENTERED */
    .mks-grid-icon {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 2px;
      width: 20px;
      height: 20px;
      place-items: center; /* This centers both horizontally and vertically */
    }
    
    .mks-grid-dot {
      width: 4px;
      height: 4px;
      background-color: #94a3b8;
      border-radius: 1px;
    }
    
    /* Dropdown menu show/hide */
    .mks-dropdown-menu {
      display: none;
    }
    
    .mks-dropdown-menu.show {
    display: block;
}

/* Home Page Grid Drag and Drop Styles */
.page-grid-container {
    position: relative;
}

/* Make mks-page-item use the exact same styling as page-card */
.mks-page-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: grab;
    user-select: none;
}

.mks-page-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.mks-page-item:active {
    transform: translateY(0);
    cursor: grabbing;
}

.mks-page-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.mks-page-item.drag-over {
    border: 2px dashed var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.mks-page-item.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
}

/* Style the internal elements to match page-card structure */
.mks-page-item .page-drag-handle {
    color: #9ca3af;
    cursor: grab;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mks-page-item .page-drag-handle:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.mks-page-item .page-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mks-page-item .page-image-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mks-page-item .page-image-placeholder span {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.mks-page-item .page-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mks-page-item .page-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mks-page-item .page-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.3;
}

.mks-page-item .page-title a {
    color: inherit;
    text-decoration: none;
}

.mks-page-item .page-title a:hover {
    color: #3b82f6;
}

.mks-page-item .page-handle {
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 500;
}

.mks-page-item .page-handle a {
    color: inherit;
    text-decoration: none;
}

.mks-page-item .page-stats {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.mks-page-item .page-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.mks-page-item .page-stats i {
    font-size: 0.75rem;
    color: #9ca3af;
}

.mks-page-item .page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.mks-page-item .page-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mks-page-item .page-action:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

.mks-page-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
    position: relative;
}

.mks-page-item.drag-over {
    border: 2px dashed #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

.mks-page-item.drag-over::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    pointer-events: none;
}

/* Drag handle indicator */
.mks-page-item::before {
    content: '⋮⋮';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.mks-page-item:hover::before {
    opacity: 1;
}

/* Better drag feedback */
.mks-page-item {
    position: relative;
    transition: all 0.2s ease;
}

.mks-page-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.mks-page-item.dragging {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0.8;
}

.mks-page-item.drag-over {
    border: 2px dashed #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

/* Tab switching animation */
.tab-pane {
    transition: opacity 0.3s ease;
}

.tab-pane:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.tab-pane.active {
    opacity: 1;
    pointer-events: auto;
}

/* Page Grid Card Link Styles */
.mks-page-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mks-page-item h3 a:hover {
    color: #2563eb;
}

.mks-page-item .mks-action-btn {
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.mks-page-item .mks-action-btn:hover {
    background-color: #eff6ff;
}

/* Right Sidebar Sections */
.right-sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Simple Buttons Section */
.simple-buttons-section {
    margin: 0.5rem 0;
    padding: 0 1rem;
}

/* Edit Section Text */
.edit-section-text {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

/* Simple Edit Button */
.simple-edit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #6b7280;
    border-radius: 6px;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.simple-edit-btn:hover {
    background-color: #1f2937;
    border-color: #1f2937;
    color: white;
    transform: translateY(-1px);
}

.simple-edit-btn i {
    color: #374151;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.simple-edit-btn:hover i {
    color: white;
}

/* Simple Duplicate Button */
.simple-duplicate-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1f2937;
    border: 1px solid #1f2937;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.simple-duplicate-btn:hover {
    background-color: #111827;
    border-color: #111827;
    transform: translateY(-1px);
}

.simple-duplicate-btn i {
    color: white;
    font-size: 0.9rem;
}

/* Simple Description */
.simple-description {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* Beautiful Form Action Buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.beautiful-add-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.beautiful-add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.beautiful-add-btn:hover::before {
    left: 100%;
}

.beautiful-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.beautiful-add-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.beautiful-add-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.beautiful-add-btn:hover i {
    transform: scale(1.1);
}

.beautiful-clear-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.beautiful-clear-btn:hover {
    color: #374151;
    transform: translateY(-1px);
}

.beautiful-clear-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #6b7280;
    transition: width 0.3s ease;
}

.beautiful-clear-btn:hover::after {
    width: 100%;
}

/* Contributions Disabled Message */
.contributions-disabled-message {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contributions-disabled-message .message-content i {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.contributions-disabled-message .message-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.contributions-disabled-message .message-content p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Form Divider */
.form-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 1.5rem 0;
}
/* Responsive Design for Right Sidebar */
@media (max-width: 768px) {
    .right-sidebar-sections {
        gap: 1rem;
    }
    
    .contributions-disabled-message {
        padding: 1rem;
    }
    
    .simple-edit-btn,
    .simple-duplicate-btn {
        padding: 0.65rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .simple-description {
        font-size: 0.75rem;
    }
    
    .beautiful-add-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
    
    .beautiful-clear-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .form-actions {
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
}

/* Ensure links don't interfere with drag and drop */
.mks-page-item a {
    pointer-events: auto;
}

/* Pending Posts Notification */
.pending-posts-notification {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    animation: pulse 2s infinite !important;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important;
    border: 1px solid #d97706 !important;
}

.pending-posts-notification i {
    margin-right: 0.25rem !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.6);
    }
    100% {
        box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    }
}

/* Pending Posts Banner */
.pending-posts-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border: 2px solid #f59e0b !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    animation: slideInDown 0.5s ease-out !important;
}

.pending-banner-content {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    justify-content: space-between !important;
}

.pending-banner-content i {
    color: #f59e0b !important;
    font-size: 1.25rem !important;
    animation: bounce 2s infinite !important;
}

.pending-banner-text {
    color: #92400e !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    flex: 1 !important;
}

.pending-banner-action {
    background: #f59e0b !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 0.875rem !important;
}

.pending-banner-action:hover {
    background: #d97706 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3) !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.mks-page-item.dragging a {
    pointer-events: none;
}

/* ===== MY PAGES PAGE STYLES ===== */

/* Page Container */
.pages-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header .header-content {
    max-width: 600px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: left;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    font-weight: 400;
    text-align: left;
}

/* Create New Page Card */
.create-page-card {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform: scale(1);
}

.create-page-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.05);
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.25rem;
    color: white;
}

.card-text {
    flex: 1;
}

.card-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    text-align: left;
}

.card-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.get-started-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.get-started-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.get-started-btn span {
    font-size: 0.875rem;
}

.get-started-btn i {
    font-size: 0.875rem;
}

/* Force left alignment and prevent any centering */
.pages-page * {
    text-align: inherit;
}

.page-header,
.page-header *,
.card-left,
.card-left *,
.card-text,
.card-text * {
    text-align: left !important;
}

/* Ensure flexbox layout works correctly */
.card-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.card-left {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex: 1 !important;
}

.get-started-btn {
    flex-shrink: 0 !important;
    margin-left: auto !important;
}

/* User Pages Section */
.user-pages-section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.page-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Empty State */
.no-pages {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    width: 4rem;
    height: 4rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-icon i {
    font-size: 1.5rem;
    color: #9ca3af;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pages-page {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .create-page-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .card-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .card-left {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }
    
    .get-started-btn {
        align-self: center;
    }
    
    .pages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

/* ===== PAGE CARDS STYLES ===== */

/* Pages List Container */
.pages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* ===== USER PAGES LIST STYLES ===== */

/* Full-width list container - OVERRIDE ALL GRID STYLES */
.pages-list-container {
    width: 100% !important;
    display: block !important;
}

/* Override any existing grid styles */
.pages-list-container .pages-grid,
.pages-list-container .pages-list {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* Force full-width layout for user pages */
.pages-list-container,
.pages-list-container * {
    max-width: none !important;
    min-width: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-area: none !important;
}

/* Ensure user pages section is full-width */
.user-pages-section {
    width: 100% !important;
    max-width: none !important;
}

.user-pages-section .section-header {
    width: 100% !important;
    max-width: none !important;
}

/* ULTRA SPECIFIC OVERRIDE - Force full-width layout */
.pages-page .user-pages-section .pages-list-container .user-pages-list .user-page-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: none !important;
    grid-column: none !important;
    grid-row: none !important;
    grid-area: none !important;
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 1.5rem !important;
}

/* Override any remaining grid styles */
.pages-page .pages-list-container,
.pages-page .user-pages-list {
    display: block !important;
    grid: none !important;
    grid-template: none !important;
    grid-template-areas: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-columns: none !important;
    grid-auto-rows: none !important;
    grid-auto-flow: none !important;
}

/* FINAL OVERRIDE - Force full-width layout */
.pages-page .user-pages-section .pages-list-container {
    width: 100% !important;
    max-width: none !important;
}

.pages-page .user-pages-section .pages-list-container .user-pages-list {
    width: 100% !important;
    max-width: none !important;
}

.pages-page .user-pages-section .pages-list-container .user-pages-list .user-page-card {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 1rem !important;
}

/* ===== PROFILE PAGES DRAG & DROP STYLES ===== */

/* Profile pages container */
.profile-pages-draggable {
    position: relative;
}

/* Page cards in profile pages */
.profile-pages-draggable .page-card {
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
}

.profile-pages-draggable .page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.profile-pages-draggable .page-card:active {
    cursor: grabbing;
}

/* Drag states */
.profile-pages-draggable .page-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.profile-pages-draggable .page-card.drag-over {
    border: 2px dashed #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    transform: scale(1.02);
}

/* Drag handle styling */
.profile-pages-draggable .page-drag-handle {
    cursor: grab;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.profile-pages-draggable .page-drag-handle:hover {
    opacity: 1;
}

.profile-pages-draggable .page-card.dragging .page-drag-handle {
    cursor: grabbing;
}

.user-pages-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    grid-template-columns: none !important;
    grid: none !important;
}

/* Individual user page card - FORCE FULL WIDTH */
.user-page-card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    width: 100% !important;
    max-width: none !important;
    min-width: none !important;
    transition: all 0.3s ease !important;
    cursor: grab !important;
    display: block !important;
    grid-column: none !important;
    grid-row: none !important;
    flex-shrink: 0 !important;
}

.user-page-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.user-page-card:active {
    cursor: grabbing;
}

.user-page-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
}

/* Card content wrapper */
.card-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Order display styles for page cards */
.page-order-display {
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
    display: none;
}

.order-number {
    background: #3b82f6;
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    display: inline-block;
    text-align: center;
    line-height: 1;
}

/* Ensure page cards have proper layout */
.profile-pages-draggable .page-card {
    display: flex;
    align-items: center;
    padding: 15px;
}

.page-drag-handle {
    margin-right: 15px;
    color: #919191;
    cursor: grab;
    flex-shrink: 0;
}

.page-content {
    flex: 1;
}

/* Left section: Drag handle + Avatar + Content */
.card-left-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

/* Drag handle (grid icon) */
.drag-handle {
    flex-shrink: 0;
}

.grid-icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
}

.grid-dot {
    width: 100%;
    height: 100%;
    background: #9ca3af;
    border-radius: 2px;
}

/* Page avatar */
.page-avatar,
.page-avatar-placeholder {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.page-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image overlay for edit mode */
.image-preview.has-image {
    position: relative;
}

.image-preview.has-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.image-preview.has-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.image-overlay span {
    font-size: 0.875rem;
    font-weight: 500;
}



.image-preview:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.image-preview .image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    margin: 0 auto;
}

.image-preview .image-placeholder i {
    font-size: 2rem;
    color: #9ca3af;
}

.image-preview .image-placeholder span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.page-avatar-placeholder {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}
/* Page content */
.page-content {
    flex: 1;
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.page-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-title a:hover {
    color: #3b82f6;
}

.pin-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.pin-badge i {
    font-size: 0.625rem;
}

.page-handle {
    margin: 0 0 0.75rem 0;
}

.page-handle a {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.page-handle a:hover {
    text-decoration: underline;
}

.page-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.stat-item i {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Right section: Action buttons */
.card-right-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

.action-btn.pinned {
    color: #f59e0b;
}

/* More options menu */
.more-options-menu {
    position: relative;
}

.more-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.more-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 9999;
    display: none;
    margin-top: 0.5rem;
    pointer-events: auto;
}

/* Hover removed - using click-based dropdown now */

/* Force dropdown to show when active */
.more-options-menu.active .options-dropdown {
    display: block !important;
}

/* Ensure dropdown is properly positioned */
.options-dropdown {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    min-width: 140px !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
}

/* Dropdown arrow indicator */
.options-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
    z-index: 1001;
}

.options-dropdown::after {
    content: '';
    position: absolute;
    top: -7px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #e5e7eb;
    z-index: 1000;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    z-index: 10000;
    pointer-events: auto;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.option-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.option-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.option-item i {
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.edit-option {
    color: #3b82f6;
}

.edit-option:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.delete-option {
    color: #dc2626;
}

.delete-option:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Individual Page Card */
.page-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: grab;
}

.page-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.page-card:active {
    cursor: grabbing;
}

.page-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
}

/* Drag Handle */
.page-drag-handle {
    color: #7e7878;
    cursor: grab;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.page-drag-handle:hover {
    color: #6b7280;
}

.page-drag-handle i {
    font-size: 1rem;
}

/* Page Content */
.page-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

/* Page Image */
.page-image {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, #b811119e, #5d34ba);
    /* border-radius: 0.75rem; */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Page Info */
.page-info {
    flex: 1;
    min-width: 0;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.page-pin-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.page-pin-badge i {
    font-size: 0.625rem;
}

.page-handle {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}


.page-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-direction: row;
    justify-content: flex-start;
    align-content: stretch;
}
.page-stats a{
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.8rem; 
}

.page-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.page-stats i {
    font-size: 0.75rem;
    color: #9ca3af;
}

.page-visibility {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.page-visibility i {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Page Actions */
.page-actions {
  display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.page-action {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-action:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

.page-action i.pinned {
    color: #f59e0b;
}

/* Action Menu */
.page-action-menu {
    position: relative;
    z-index: 50;
}
/*

.action-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

*/
.action-toggle:hover {
    background: #e5e7eb;
    color: #374151;
}
/*
.action-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}
    */

/* Hover behavior removed - now click-to-show only */
/*
.action-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}
    */

.action-item:hover {
    background: #f3f4f6;
}

.action-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.action-item:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.delete-page {
    color: #dc2626;
}

.delete-page:hover {
    background: #fef2f2;
}

/* Responsive Design for Page Cards */
@media (max-width: 768px) {
    .pages-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-card {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /*
    .page-actions {
        flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
    }
        */
  .page-actions {  flex-direction: row;
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
        width: 40px;
        position: absolute;
        right: 13px;
  }
  .page-drag-handle{ position:absolute}
    .page-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        max-width: 208px;
       margin:0 auto;
 
    }
    .page-header h3{text-align:center!important;}
}

/* ===== NOTIFICATION STYLES ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
    max-width: 100%;
}

.notification.success {
    border-color: #10b981;
    background: #f0fdf4;
}

.notification.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.notification.info {
    border-color: #3b82f6;
    background: #eff6ff;
}

.notification-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #dc2626;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile-friendly dropdown */
@media (max-width: 768px) {
    .options-dropdown {
        min-width: 160px !important;
        right: -10px !important;
    }
    
    .option-item {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .more-btn {
        width: 3rem;
        height: 3rem;
    }
}

/* Ensure dropdown works on touch devices */
@media (hover: none) {
    .more-options-menu:hover .options-dropdown {
        opacity: 0;
        visibility: hidden;
    }
    
    .more-options-menu:focus-within .options-dropdown {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
 #handle-display { display:block!important;}
}


/* Enhanced Edit Page Image Styling */
.edit-page .image-preview {
    width: 170px !important;
    height: 120px !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 12px !important;
    margin: 0 auto 1rem !important;
    background: #f9fafb !important;
    transition: all 0.3s ease !important;
    vertical-align: middle;
    padding: 20px;
    display: flex !important;
    align-content: stretch;
    flex-direction: column;
}
.image-overlay { display: flex; flex-direction: column;}

.edit-page .image-preview:hover {
    border-color: #3b82f6 !important;
    background: #f0f9ff !important;
    transform: scale(1.02) !important;
}

.edit-page .image-preview img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}

.edit-page .image-upload-container {
    padding: 2rem !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.edit-page .image-description {
    color: #374151 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
}

.edit-page .image-requirements {
    color: #6b7280 !important;
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
}

/* Fix crop modal button visibility */
#crop-modal .modal-content {
    max-height: 95vh !important;
    overflow: visible !important;
}

#crop-modal .modal-body {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
}

.crop-controls {
    position: sticky !important;
    bottom: 0 !important;
    background: white !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
    z-index: 1001 !important;
}
/* Additional crop modal fixes */
#crop-modal .crop-controls {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 1rem !important;
    background: white !important;
    border-top: 1px solid #e5e7eb !important;
    margin-top: 1rem !important;
    position: relative !important;
    z-index: 1001 !important;
}

#crop-modal .crop-controls button {
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

#crop-modal .crop-controls .btn-secondary {

/* Pending Posts Styling */
.post-pending {
    border: 2px solid #f59e0b !important;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    position: relative !important;
}

.post-pending::before {
    content: "PENDING APPROVAL" !important;
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    right: -1px !important;
    background: #f59e0b !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 0.25rem !important;
    border-radius: 8px 8px 0 0 !important;
    z-index: 10 !important;
}

.pending-status {
    background: #f59e0b !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    margin-left: 0.5rem !important;
}

.post-approval-actions {
    display: flex !important;
    gap: 0.5rem !important;
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb !important;
    position: relative !important;
    z-index: 200 !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin: 1rem 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.approve-btn, .reject-btn {
    flex: 1 !important;
    padding: 0.5rem 1rem !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
}

.approve-btn {
    background: #10b981 !important;
    color: white !important;
}

.approve-btn:hover {
    background: #059669 !important;
    transform: translateY(-1px) !important;
}

.reject-btn {
    background: #ef4444 !important;
    color: white !important;
}

.reject-btn:hover {
    background: #dc2626 !important;
    transform: translateY(-1px) !important;
}

.approve-btn:disabled, .reject-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Ensure approval buttons are always on top and clickable */
.post-pending .post-approval-actions {
    pointer-events: auto !important;
}

.post-pending .post-approval-actions .approve-btn,
.post-pending .post-approval-actions .reject-btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 300 !important;
}

/* Hide action menu when approval buttons are present */
.post-pending .post-actions {
    display: none !important;
}

/* Ensure dropdown doesn't interfere with approval buttons */
.post-pending .page-action-menu .action-dropdown {
    display: none !important;
}

/* Make sure approval buttons area is completely isolated */
.post-pending .post-approval-actions {
    isolation: isolate !important;
    contain: layout style !important;
}
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

#crop-modal .crop-controls .btn-secondary:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
}

#crop-modal .crop-controls .btn-primary {
    background: #3b82f6 !important;
    color: white !important;
    border: 1px solid #3b82f6 !important;
}

#crop-modal .crop-controls .btn-primary:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

/* Simplified dropdown styling */
.more-options-menu {
    position: relative;
}

.more-options-menu .options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 9999;
    margin-top: 0.5rem;
}

/* Active dropdown state */
.more-options-menu.active .options-dropdown {
    display: block !important;
}

.mks-page-item {border-radius:10px; margin-bottom: 10px; padding: 18px  10px;;}
/* Margin All Sides */
.m-1 { margin: 10px; }
.m-2 { margin: 20px; }
.m-3 { margin: 30px; }
.m-4 { margin: 40px; }
.m-5 { margin: 50px; }

/* Margin Top */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

/* Margin Bottom */
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

/* Margin Left */
.ml-1 { margin-left: 10px; }
.ml-2 { margin-left: 20px; }
.ml-3 { margin-left: 30px; }
.ml-4 { margin-left: 40px; }
.ml-5 { margin-left: 50px; }

/* Margin Right */
.mr-1 { margin-right: 10px; }
.mr-2 { margin-right: 20px; }
.mr-3 { margin-right: 30px; }
.mr-4 { margin-right: 40px; }
.mr-5 { margin-right: 50px; }

/* Margin X-axis (Left + Right) */
.mx-1 { margin-left: 10px; margin-right: 10px; }
.mx-2 { margin-left: 20px; margin-right: 20px; }
.mx-3 { margin-left: 30px; margin-right: 30px; }
.mx-4 { margin-left: 40px; margin-right: 40px; }
.mx-5 { margin-left: 50px; margin-right: 50px; }

/* Margin Y-axis (Top + Bottom) */
.my-1 { margin-top: 10px; margin-bottom: 10px; }
.my-2 { margin-top: 20px; margin-bottom: 20px; }
.my-3 { margin-top: 30px; margin-bottom: 30px; }
.my-4 { margin-top: 40px; margin-bottom: 40px; }
.my-5 { margin-top: 50px; margin-bottom: 50px; }

/* Padding All Sides */
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 50px; }

/* Padding Top */
.pt-1 { padding-top: 10px; }
.pt-2 { padding-top: 20px; }
.pt-3 { padding-top: 30px; }
.pt-4 { padding-top: 40px; }
.pt-5 { padding-top: 50px; }

/* Padding Bottom */
.pb-1 { padding-bottom: 10px; }
.pb-2 { padding-bottom: 20px; }
.pb-3 { padding-bottom: 30px; }
.pb-4 { padding-bottom: 40px; }
.pb-5 { padding-bottom: 50px; }

/* Padding Left */
.pl-1 { padding-left: 10px; }
.pl-2 { padding-left: 20px; }
.pl-3 { padding-left: 30px; }
.pl-4 { padding-left: 40px; }
.pl-5 { padding-left: 50px; }

/* Padding Right */
.pr-1 { padding-right: 10px; }
.pr-2 { padding-right: 20px; }
.pr-3 { padding-right: 30px; }
.pr-4 { padding-right: 40px; }
.pr-5 { padding-right: 50px; }

/* Padding X-axis (Left + Right) */
.px-1 { padding-left: 10px; padding-right: 10px; }
.px-2 { padding-left: 20px; padding-right: 20px; }
.px-3 { padding-left: 30px; padding-right: 30px; }
.px-4 { padding-left: 40px; padding-right: 40px; }
.px-5 { padding-left: 50px; padding-right: 50px; }

/* Padding Y-axis (Top + Bottom) */
.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }


/* Load More Pages Pagination Styles */
.load-more-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.load-more-btn {
    background: #3182ce;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover:not(:disabled) {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more-btn .fas.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Shimmer Effect Styles */
.shimmer-container {
    margin: 20px 0;
}

.shimmer-page-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shimmer-drag-handle {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

.shimmer-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.shimmer-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

.shimmer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shimmer-title {
    width: 200px;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.shimmer-handle {
    width: 120px;
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.shimmer-stats {
    display: flex;
    gap: 20px;
}

.shimmer-stat {
    width: 80px;
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.shimmer-actions {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Pages List Container */
.pages-list-container {
    position: relative;
}

.pages-list-container[data-current-offset="0"] .load-more-container {
    margin-top: 20px;
}

/* My Impact Page Styles */
.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.impact-header {
    text-align: center;
    margin-bottom: 30px;
}

.impact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.impact-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.time-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.time-filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.time-filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.time-filter-btn:hover:not(.active) {
    border-color: #007bff;
    color: #007bff;
}

.debug-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #495057;
}

.setup-notification {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setup-notification i {
    color: #1976d2;
    font-size: 1.2rem;
}

.setup-notification .setup-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.setup-btn {
    padding: 6px 12px;
    border: 1px solid #1976d2;
    background: white;
    color: #1976d2;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.setup-btn:hover {
    background: #1976d2;
    color: white;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.metric-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #007bff;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.metric-sublabel {
    font-size: 0.8rem;
    color: #999;
}

.bottom-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.panel {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.panel-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.panel-icon {
    color: #007bff;
    font-size: 1.2rem;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.activity-page {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
}

.activity-page:hover {
    text-decoration: underline;
}

.activity-time {
    color: #999;
    font-size: 0.8rem;
}

.performance-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Design for My Impact */
@media (max-width: 768px) {
    .impact-container {
        padding: 15px;
    }
    
    .impact-title {
        font-size: 2rem;
    }
    
    .bottom-panels {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .time-filters {
        gap: 8px;
    }
    
    .time-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .setup-notification {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .setup-notification .setup-actions {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .impact-title {
        font-size: 1.8rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 15px;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .panel {
        padding: 20px;
    }
}

.duplicate-page-btn { background-color: #000; color:#fff;}
.meta-item.moves {
  position: relative;
  padding-left: 26px; /* space for icon */
}
.meta-item.moves::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("../icons/drag.png") no-repeat center center;
  background-size: contain;
}
.add-post-form-container { 
    padding-bottom:0px;
    scroll-margin-top: 100px; /* Ensure proper scroll positioning */
}

/* Ensure form is visible when scrolled to */
#add-post-form {
    scroll-margin-top: 100px;
}

/* Mobile-specific form positioning */
@media screen and (max-width: 768px) {
    .add-post-form-container {
        scroll-margin-top: 80px;
        margin-top: 20px;
    }
    
    #add-post-form {
        scroll-margin-top: 80px;
    }
    
    /* Ensure form is visible on mobile */
    .content-sidebar .add-post-form-container {
        position: relative;
        z-index: 10;
    }
}
.duplicate-page-btn-edit { background-color: #045da3;color:#fff; width:100%;}

.page-moves,.post-card .move-count {
  display: inline-block;
  padding-left: 25px; /* Adjust as needed for space between the icon and the text */
  background-image: url('../icons/drag.png'); /* Path to your image */
  background-size: 20px 20px; /* Size of the icon */
  background-repeat: no-repeat;
  background-position: left center; /* Adjust to position the image correctly */
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

/* Search Results Styles */
.search-results-container {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem 2rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1000;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-results-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.close-search-results {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-search-results:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Search Loading Animation */
.search-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #3182ce;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-loading p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Search Error Styles */
.search-error {
    text-align: center;
    padding: 3rem 1rem;
    color: #dc2626;
}

.search-error h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.search-error p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.search-error .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* View All Link Styles */
.view-all-container {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3182ce;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.view-all-link:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.3);
    color: white;
    text-decoration: none;
}

.view-all-link i {
    font-size: 0.75rem;
}

/* Search Page Styles */
.search-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 2rem 0;
}

.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-page-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.search-page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.search-results-count {
    color: #718096;
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
}

.search-page-search-box {
    margin-top: 1.5rem;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-submit-btn {
    padding: 0.875rem 1.25rem;
    background: #3182ce;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.search-submit-btn:hover {
    background: #2c5aa0;
}

/* Search Results Grid - Using existing page-list-item styles */
.search-results-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Ensure search post items use the same styling as regular page-list-item */
.search-post-item {
    /* Inherit all existing page-list-item styles */
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.search-post-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Ensure the search results match the exact design from the attachment */
.search-results-grid .page-list-item {
    margin-bottom: 0;
}

.search-results-grid .page-drag-handle {
    flex-shrink: 0;
    color: #a0aec0;
    font-size: 1rem;
    padding: 0.25rem;
    cursor: grab;
}

.search-results-grid .page-main-content {
    flex: 1;
    min-width: 0;
}

.search-results-grid .page-title {
    margin-bottom: 0.5rem;
}

.search-results-grid .page-title a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.search-results-grid .page-title a:hover {
    color: #3182ce;
}

.search-results-grid .page-description {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.search-results-grid .page-author {
    color: #718096;
    font-size: 0.8rem;
}

.search-results-grid .page-author a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.search-results-grid .page-author a:hover {
    text-decoration: underline;
}

.search-results-grid .page-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.search-results-grid .page-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-results-grid .stat-line {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #718096;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-results-grid .stat-icon {
    width: 12px;
    height: 12px;
}

.search-results-grid .page-actions {
    display: flex;
    gap: 0.25rem;
}

.search-results-grid .page-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #a0aec0;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-results-grid .page-action:hover {
    color: #3182ce;
    background: #f7fafc;
}

/* No Results State */
.search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.no-results-icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.search-no-results h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 1rem 0;
}

.search-no-results p {
    color: #718096;
    font-size: 1rem;
    margin: 0 0 2rem 0;
}

.search-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.search-suggestions h4 {
    color: #4a5568;
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: #718096;
    border-bottom: 1px solid #f1f5f9;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

/* Empty Search State */
.search-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #3182ce;
    margin-bottom: 1.5rem;
}

.search-empty-state h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 1rem 0;
}

.search-empty-state p {
    color: #718096;
    font-size: 1rem;
    margin: 0 0 2rem 0;
}

.search-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.search-features h4 {
    color: #4a5568;
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.search-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #718096;
}

.search-features li i {
    color: #48bb78;
    font-size: 0.875rem;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-top: 2rem;
}

.pagination-info {
    color: #718096;
    font-size: 0.875rem;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.pagination-btn.active {
    background: #3182ce;
    border-color: #3182ce;
    color: white;
}

.pagination-btn.active:hover {
    background: #2c5aa0;
    border-color: #2c5aa0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-page {
        padding: 1rem 0;
    }
    
    .search-page-container {
        padding: 0 0.5rem;
    }
    
    .search-page-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .search-page-title h1 {
        font-size: 1.5rem;
    }
    
    /* Mobile search results styling */
    .search-results-container {
        padding: 0.75rem 1rem 0 1rem;
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .search-results-header {
        padding: 1rem 0;
        margin-bottom: 0.5rem;
    }
    
    .search-results-header h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .search-post-item {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 8px;
        margin-bottom: 0.75rem;
    }
    
   
    
    .search-results-grid .page-main-content {
        width: 100%;
    }
    
    .search-results-grid .page-right-section {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .search-results-grid .page-title a {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .search-results-grid .page-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0.5rem 0;
    }
    
    .search-results-grid .page-author {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .search-results-grid .page-stats {
        align-items: flex-start;
    }
    
    .search-results-grid .stat-line {
        font-size: 0.7rem;
    }
    
    .search-results-grid .page-action {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .search-pagination {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8rem;
    }
    
    .search-no-results,
    .search-empty-state {
        padding: 2rem 1rem;
    }
    
    .no-results-icon,
    .empty-state-icon {
        font-size: 3rem;
    }
    
    /* View All button mobile styling */
    .view-all-container {
        padding: 1rem 0;
        margin: 0.5rem 0 0 0;
        border-radius: 0 0 8px 8px;
    }
    
    .view-all-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    /* Mobile overlay adjustments */
    .search-overlay {
        backdrop-filter: blur(2px);
    }
    
    .search-results-container {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
}

@media (max-width: 640px) {
  .feature-steps { gap: .6rem; flex-direction: column; }
  .step-row { align-items: center; padding-left: 0; padding-bottom: 0; min-height: auto; }
  .step-num { position: static; transform: none; transform-origin: initial; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.95); color: #2563eb; font-weight: 800; font-size: 1rem; line-height: 28px; letter-spacing: 0; opacity: 1; text-shadow: none; display: inline-flex; align-items: center; justify-content: center; margin-right: .5rem; }
  .step-text { color: #fff; }
  .step-text strong { font-size: 1rem; font-weight: 800; }
  .step-sub { font-size: .95rem; opacity: .9; }
}
@media (max-width: 480px) {
    .search-page-title h1 {
        font-size: 1.25rem;
    }
    
    .search-results-count {
        font-size: 0.875rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-submit-btn {
        border-radius: 0 0 6px 6px;
    }
    
    /* Extra small mobile improvements */
    .search-results-container {
        padding: 0.5rem 0.75rem 0 0.75rem;
        margin: 0 0.25rem;
    }
    
    .search-results-header h2 {
        font-size: 1.1rem;
    }
    
    .search-post-item {
        padding: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .search-results-grid .page-title a {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .search-results-grid .page-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .search-results-grid .page-author {
        font-size: 0.7rem;
    }
    
    .search-results-grid .stat-line {
        font-size: 0.65rem;
    }
    
    .search-results-grid .page-action {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .view-all-link {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Latest Posts Responsive */
    .latest-posts-container {
        padding: 0 0.5rem;
    }
    
    .latest-posts-section .section-header h2 {
        font-size: 1.5rem;
    }
    
    .latest-posts-section .section-header p {
        font-size: 0.875rem;
    }
    
    .latest-posts-grid .page-main-content {
        width: 100%;
    }
    
    .latest-posts-grid .page-right-section {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .latest-posts-grid .page-title a {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
    
    .latest-posts-grid .page-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0.5rem 0;
    }
    
    .latest-posts-grid .page-author {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .latest-posts-grid .page-stats {
        align-items: flex-start;
    }
    
    .latest-posts-grid .stat-line {
        font-size: 0.7rem;
    }
    
    .latest-posts-grid .page-action {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Latest Posts Mobile */
    .latest-posts-section .section-header h2 {
        font-size: 1.25rem;
    }
    
    .latest-posts-section .section-header p {
        font-size: 0.8rem;
    }
    
    .latest-posts-grid .page-title a {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .latest-posts-grid .page-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .latest-posts-grid .page-author {
        font-size: 0.7rem;
    }
    
    .latest-posts-grid .stat-line {
        font-size: 0.65rem;
    }
    
    .latest-posts-grid .page-action {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    /* Latest Posts Mobile Header */
    .latest-posts-section .section-header {
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .latest-posts-section .section-header h2 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1a202c;
        margin: 0 0 0.5rem 0;
    }
    
    .latest-posts-section .section-header p {
        color: #718096;
        font-size: 0.8rem;
        margin: 0;
        line-height: 1.3;
    }
    
    /* Mobile styles for latest post titles */
    .latest-posts-section .latest-post-title a {
        font-size: 1.1rem;
        line-height: 1.25;
    }
}

.search-section {
    margin-bottom: 2rem;
}

.search-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.search-result-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-result-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.search-result-item h4 a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.search-result-item h4 a:hover {
    color: #3b82f6;
}

.result-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.result-author {
    color: #3b82f6;
    font-weight: 500;
}

.result-stats {
    color: #6b7280;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.search-no-results h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.search-no-results p {
    margin: 0;
    font-size: 0.875rem;
}

/* Categories Page */
.categories-page {
    min-height: 100vh;
    background-color: #f8fafc;
}

.categories-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.categories-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.categories-page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.categories-page-header p {
    font-size: 1.125rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Grid for Categories Page */
.categories-page .main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.categories-page .left-column {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.categories-page .right-column {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

/* Mobile responsiveness for categories page */
@media (max-width: 768px) {
    .categories-page-container {
        padding: 1rem 0.5rem;
    }
    
    .categories-page-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .categories-page-header h1 {
        font-size: 2rem;
        margin: 0 0 0.75rem 0;
    }
    
    .categories-page-header p {
        font-size: 1rem;
    }
    
    .categories-page .main-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-page .right-column {
        position: static;
        top: auto;
    }
}

@media (max-width: 480px) {
    .categories-page-header h1 {
        font-size: 1.75rem;
    }
    
    .categories-page-header p {
        font-size: 0.9rem;
    }
    
    .categories-page .left-column,
    .categories-page .right-column {
        padding: 1rem;
    }
}

/* Latest Posts Section */
.latest-posts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 ;
}

.latest-posts-section {
    margin-bottom: 2rem;
}

.latest-posts-section .section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.latest-posts-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
}

.latest-posts-section .section-header p {
    color: #718096;
    font-size: 1rem;
    margin: 0;
}

/* Mobile responsiveness for latest posts header */
@media (max-width: 768px) {
    .latest-posts-section .section-header {
        text-align: center;
        padding: 0 1rem;
    }
    
    .latest-posts-section .section-header h2 {
              font-size: 1.5rem;
        font-weight: 700;
        color: #1a202c;
        margin: 0 0 0.5rem 0;

        margin: 0 auto;
    }
    
    .latest-posts-section .section-header p {
        color: #718096;
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.4;
    }
    
    /* Tablet styles for latest post titles */
    .latest-posts-section .latest-post-title a {
        font-size: 1.15rem;
        line-height: 1.28;
    }
}

.latest-posts-section .search-results-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Loading indicator for latest posts */
.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #718096;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-more-posts {
    text-align: center;
    padding: 2rem;
    color: #718096;
    font-style: italic;
}


/* ========================================
   HERO SPLIT SECTION - PREMIUM PROFESSIONAL DESIGN
   ======================================== */

.hero-split-section {
   /* background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);*/
    min-height: 290px;
    position: relative;
    margin-bottom: 38px;
    margin-top: 15px;
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 233px;
    box-shadow: 0 20px 60px rgb(0 0 0 / 15%);
}

/* Left Column - Blue Gradient Background */
.hero-left-column {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
    position: relative;
    overflow: hidden;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: flex-start;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.1);
    transition: background 4s ease-in-out;
}

/* Dynamic gradient backgrounds for each slide - Blue palette variants */
.hero-left-column.gradient-slide-1 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
}

.hero-left-column.gradient-slide-2 {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
}

.hero-left-column.gradient-slide-3 {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #4338ca 100%);
}

.hero-left-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating animated circles for modern design */
.hero-left-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 10% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: floatCircles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes floatCircles {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(10px, -15px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-5px, -10px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(-15px, 5px) scale(1.05);
        opacity: 0.6;
    }
}

/* Additional floating elements for enhanced modern design */
.hero-left-column .floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 3;
}

.hero-left-column .floating-element:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 10%;
    animation: floatUpDown 15s ease-in-out infinite;
}

.hero-left-column .floating-element:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 70%;
    right: 15%;
    animation: floatSideToSide 18s ease-in-out infinite;
}

.hero-left-column .floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 25%;
    animation: floatCircular 22s linear infinite;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.6;
    }
}

@keyframes floatSideToSide {
    0%, 100% {
        transform: translateX(0px);
        opacity: 0.4;
    }
    50% {
        transform: translateX(-15px);
        opacity: 0.7;
    }
}

@keyframes floatCircular {
    0% {
        transform: rotate(0deg) translateX(30px) rotate(0deg);
        opacity: 0.2;
    }
    100% {
        transform: rotate(360deg) translateX(30px) rotate(-360deg);
        opacity: 0.5;
    }
}

.hero-left-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-brand-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.brand-blue {
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.hero-brand-title .refresh-icon {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.hero-brand-title .refresh-icon:hover {
    transform: rotate(180deg);
}

.brand-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
    font-style: italic;
    opacity: 0.95;
}

/* Dynamic Background Icons */
.dynamic-bg-icons {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.bg-icon-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.bg-icon-large.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

/* Icon animation variations */
.bg-icon-large[data-icon="1"].active {
    animation: pulse 2s ease-in-out infinite;
}

.bg-icon-large[data-icon="2"].active {
    animation: rotate3d 3s ease-in-out infinite;
}

.bg-icon-large[data-icon="3"].active {
    animation: bounce 2s ease-in-out infinite;
}

.bg-icon-large[data-icon="4"].active {
    animation: shake 2.5s ease-in-out infinite;
}

.bg-icon-large[data-icon="5"].active {
    animation: scaleUp 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -50%) scale(1.05) rotate(2deg); }
}

@keyframes rotate3d {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotateY(0deg); }
    50% { transform: translate(-50%, -50%) scale(1) rotateY(10deg); }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.03); }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    25% { transform: translate(-52%, -50%) scale(1) rotate(-2deg); }
    75% { transform: translate(-48%, -50%) scale(1) rotate(2deg); }
}

@keyframes scaleUp {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

/* Professional Features List with Icons */
.hero-features-list {
    position: relative;
    min-height: 180px;
    margin-top: 0.5rem;
}

.feature-item-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.feature-item-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.feature-icon-box {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.feature-content {
    flex: 0 1 auto;
    min-width: 0;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* Compact Step Content */
.hero-steps-container {
    margin-top: 1rem;
    text-align: left;
    min-height: 187px;
}

.step-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.step-slide.active {
    display: block;
    opacity: 1;
}

.step-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.step-content .tagline {
 font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem 0;
    font-weight: 800;
}

.step-content .tagline-medium {
     font-size: 1.55rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.step-content .tagline-light {
  font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.step-content .tagline-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.step-content .steps-intro {
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-line {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.step-line.active {
       color: #ffffff;
    /* font-weight: 600; */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 28px;
}

/* Larger font size for strong tag part only in individual slides (1, 2, 3) */
.step-slide[data-slide="1"] .step-line.active strong,
.step-slide[data-slide="2"] .step-line.active strong,
.step-slide[data-slide="3"] .step-line.active strong {
    font-size: 2rem;
    font-weight: 700;
}

.simple-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.simple-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.simple-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .hero-steps-container {
        margin-top: 0.5rem;
    }
    
    .step-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .step-content .tagline {

        margin-bottom: 0.5rem;
    }
    
    .step-content .steps-intro {
        font-size:1.15rem;
        margin-bottom: 0.5rem;
    }
    
    .step-line {
        font-size: 0.9rem;
    }
    
    .steps-list {
        gap: 0.3rem;
    }
    
    .simple-indicators {
        margin-top: 0.75rem;
    }
}

.feature-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-weight: 400;
}

.feature-desc.bullet-point,
.feature-title-normal.bullet-point {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-desc.bullet-point::before,
.feature-title-normal.bullet-point::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #60a5fa;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.feature-desc.feature-subheading {
    font-weight: 700;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.feature-title-normal {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.3px;
}

/* Feature Indicators */
.feature-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    width: 24px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Right Column - Premium White Card */
.hero-right-column {
    background: #ffffff;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-right-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    pointer-events: none;
}

.hero-right-content {
    text-align: center;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.signup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.signup-subtitle {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-weight: 400;
}

.handle-blue {
    color: #2563eb;
    font-style: italic;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

/* Premium Buttons - Compact */
.btn-signup,
.btn-login {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-signup {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-signup:hover::before {
    left: 100%;
}

.btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-login {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
}

.btn-login:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* Compact Mobile Responsive */
@media (max-width: 768px) {
    .hero-split-section {
        min-height: auto;
    }
    
    .hero-split-container {
        grid-template-columns: 1fr;
    }
    
    .hero-left-column {
        padding: 2rem 1.5rem;
        min-height: 240px;
    }
    
    .hero-brand-title {
        font-size: 1.75rem;
        gap: 0.5rem;
    }
    
    .hero-brand-title .refresh-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-icon-box {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }
    
    .hero-right-column {
        padding: 2rem 1.5rem;
    }
    
    .signup-title {
        font-size: 1.35rem;
    }
    
    .signup-subtitle {
        font-size: 0.95rem;
    }
    
    .bg-icon-large {
        font-size: 8rem;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .hero-left-column {
        padding: 1.75rem 1.25rem;
        min-height: 282px;
    }
    
    .hero-brand-title {
        font-size: 1.5rem;
        gap: 0.4rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-brand-title .refresh-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .brand-main {
        gap: 0.4rem;
    }
    
    .hero-brand-title .hero-subtitle {
        margin-top: 0.25rem;
    }
    
    .hero-left-column .floating-element:nth-child(1) {
        width: 40px;
        height: 40px;
    }
    
    .hero-left-column .floating-element:nth-child(2) {
        width: 30px;
        height: 30px;
    }
    
    .hero-left-column .floating-element:nth-child(3) {
        width: 50px;
        height: 50px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-desc {
        font-size: 0.85rem;
    }
    
    .hero-right-column {
        padding: 1.75rem 1.25rem;
    }
    
    .signup-title {
        font-size: 1.25rem;
    }
    
    .signup-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-signup,
    .btn-login {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .bg-icon-large {
        font-size: 6rem;
        right: 0;
    }
}

/* Latest Posts Grid - Larger Headlines and No Descriptions */
.latest-posts-section .latest-post-title a {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.latest-posts-section .latest-post-title a:hover {
    color: #3182ce;
}

/* Ensure latest post items use the same styling as search results */
.latest-post-item {
    /* Inherit all existing page-list-item styles */
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.latest-post-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.search-results-grid .page-drag-handle {
    display: none;
}

.latest-posts-grid .page-main-content {
    flex: 1;
    min-width: 0;
}

.latest-posts-grid .page-title {
    margin-bottom: 0.5rem;
}

.latest-posts-grid .page-title a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.latest-posts-grid .page-title a:hover {
    color: #3182ce;
}

.latest-posts-grid .page-description {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.latest-posts-grid .page-author {
    color: #718096;
    font-size: 0.8rem;
}

.latest-posts-grid .page-author a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
}

.latest-posts-grid .page-author a:hover {
    text-decoration: underline;
}

.latest-posts-grid .page-right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.latest-posts-grid .page-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.latest-posts-grid .stat-line {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #718096;
    font-size: 0.75rem;
    font-weight: 500;
}

.latest-posts-grid .stat-icon {
    width: 12px;
    height: 12px;
}

.latest-posts-grid .page-actions {
    display: flex;
    gap: 0.25rem;
}

.latest-posts-grid .page-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #a0aec0;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.latest-posts-grid .page-action:hover {
    color: #3182ce;
    background: #f7fafc;
}

/* Search Results - Use exact page-list-item styling */
.search-pages,
.search-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Use exact same styling as page-list-item */
.search-page-item,
.search-post-item {
    /* Inherit all styles from .page-list-item */
}

.search-page-item .page-title a,
.search-post-item .page-title a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

.search-page-item .page-title a:hover,
.search-post-item .page-title a:hover {
    color: #3b82f6;
}

.search-page-item .page-author a,
.search-post-item .page-author a {
    color: #3b82f6;
    text-decoration: none;
}

.search-page-item .page-author a:hover,
.search-post-item .page-author a:hover {
    text-decoration: underline;
}

.search-page-item .page-actions,
.search-post-item .page-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-page-item .page-action,
.search-post-item .page-action {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.search-page-item .page-action:hover,
.search-post-item .page-action:hover {
    background: #f3f4f6;
    color: #374151;
}

/* FINAL OVERRIDE - Mobile search icon must be visible on mobile */
@media screen and (max-width: 568px) {
    .mobile-search-icon {
        display: flex !important;
        background: #f9fafb !important;
        border: 1px solid #d1d5db !important;
        color: #6b7280 !important;
        cursor: pointer !important;
        padding: 0.5rem !important;
        border-radius: 50% !important;
        transition: all 0.2s ease !important;
        width: 40px !important;
        height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .desktop-search,
    .search-box,
    .search-input,
    .search-button,
    .voice-search-button {
        display: none !important;
    }
    .search-page-search-box .search-input{ display:block!important;}
    .image-placeholder { display:none!important;}
}

/* Floating Home Button */
.floating-home-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: none; /* Hidden by default on desktop */
}

.floating-home-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-home-button .home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.floating-home-button .home-link:hover {
    background: #2563eb;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.floating-home-button .home-link i {
    font-size: 1.25rem;
}

/* Show floating home button only on mobile devices without bottom nav */
@media screen and (max-width: 768px) {
    .floating-home-button {
        display: block !important;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-home-button .home-link {
        width: 50px;
        height: 50px;
    }
    
    .floating-home-button .home-link i {
        font-size: 1.1rem;
    }
}

/* Mobile Bottom Navigation - YouTube Style */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-top: none !important;
    display: none !important;
    z-index: 1000 !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 60px !important;
}

.mobile-bottom-nav .bottom-nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 20px !important;
}

.mobile-bottom-nav .bottom-nav-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
}

.mobile-bottom-nav .bottom-nav-item.left-nav {
    flex: 0 0 auto !important;
    margin-right: auto !important;
}

.mobile-bottom-nav .bottom-nav-item.right-nav {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

.mobile-bottom-nav .bottom-nav-item.center-nav {
    flex: 0 0 auto !important;
    margin: 0 15px !important;
}

.mobile-bottom-nav .nav-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #606060 !important;
    padding: 6px 8px !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    min-width: 60px !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
}

.mobile-bottom-nav .nav-link:hover,
.mobile-bottom-nav .nav-link.active {
    color: #0f0f0f !important;
    background: none !important;
}

.mobile-bottom-nav .nav-link i {
    font-size: 1.1rem !important;
    margin-bottom: 2px !important;
    color: inherit !important;
}

.mobile-bottom-nav .nav-icon-image {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 2px !important;
    object-fit: contain !important;
   }

.mobile-bottom-nav .nav-label {
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    text-align: center !important;
    line-height: 1 !important;
    color: inherit !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Add Page Button Styles */
.add-page-btn {
    position: relative !important;
    overflow: hidden !important;
    /*transition: all 0.3s ease !important;*/
        padding: 15px 20px;
}

.add-page-btn .btn-hover-text {
    position: absolute !important;
    top: 50% !important;
    left: 63% !important;
    transform: translate(-50%, -50%) !important;
    opacity: 0 !important;
    /*transition: opacity 0.3s ease !important;*/
    white-space: nowrap !important;
}

.add-page-btn:hover .btn-text {
    opacity: 0 !important;
}

.add-page-btn:hover .btn-hover-text {
    opacity: 1 !important;
    margin-top: -1px;
}

.add-page-btn i {
    margin-right: 8px !important;
}
/* Hide Create page button on mobile */
@media screen and (max-width: 768px) {
    .add-page-btn {
        display: none !important;
    }
}
/* Profile image styles for bottom navigation */
.mobile-bottom-nav .nav-profile-image {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 2px !important;
    border: 2px solid #e5e7eb !important;
}

.mobile-bottom-nav .nav-avatar-placeholder {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #3b82f6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
    border: 2px solid #e5e7eb !important;
}

.mobile-bottom-nav .nav-avatar-placeholder span {
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1 !important;
}

/* Mobile Hub Dropdown Styles */
.mobile-hub-dropdown {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
    width: 100% !important;
}

.mobile-hub-trigger {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #606060 !important;
    padding: 6px 8px !important;
    border-radius: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 60px !important;
    width: 100% !important;
    height: 100% !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
}

.mobile-hub-trigger:hover {
    color: #0f0f0f !important;
    background: none !important;
}


.mobile-hub-dropdown-menu {
    position: absolute !important;
    bottom: 100% !important;
    left: calc(50% - 35px) !important;
    transform: translateX(-50%) !important;
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e5e7eb !important;
    padding: 8px !important;
    margin-bottom: 8px !important;
    width: 200px !important;
    max-width: calc(100vw - 40px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(10px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1001 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    right: auto !important;
}

.mobile-hub-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.mobile-hub-dropdown-menu::before {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: calc(50% + 66px) !important;
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 8px solid white !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) !important;
}

.mobile-hub-dropdown-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    color: #374151 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 2px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.mobile-hub-dropdown-menu .dropdown-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent) !important;
    transition: left 0.5s ease !important;
}

.mobile-hub-dropdown-menu .dropdown-item:hover::before {
    left: 100% !important;
}

.mobile-hub-dropdown-menu .dropdown-item:hover {
    background: #f8fafc !important;
    color: #1f2937 !important;
    transform: translateX(2px) !important;
}

.mobile-hub-dropdown-menu .dropdown-item i {
    margin-right: 12px !important;
    font-size: 1rem !important;
    color: #6b7280 !important;
    width: 16px !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
}

.mobile-hub-dropdown-menu .dropdown-item:hover i {
    color: #3b82f6 !important;
}

.mobile-hub-dropdown-menu .dropdown-item span {
    flex: 1 !important;
    font-weight: 500 !important;
}

/* Mobile Hub Dropdown Animation */
@keyframes mobileHubDropdownSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes mobileHubDropdownSlideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

.mobile-hub-dropdown-menu.animate-in {
    animation: mobileHubDropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.mobile-hub-dropdown-menu.animate-out {
    animation: mobileHubDropdownSlideOut 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

/* Mobile Hub Dropdown Overlay */
.mobile-hub-dropdown-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-hub-dropdown-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile Hub Dropdown Responsive Adjustments */
@media screen and (max-width: 480px) {
    .mobile-hub-dropdown-menu {
        width: 202px !important;
        max-width: calc(100vw - 20px) !important;
        left: calc(50% - 71px) !important;
        transform: translateX(-50%) !important;
    }
    
    .mobile-hub-dropdown-menu.show {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .mobile-hub-dropdown-menu::before {
        left: calc(50% + 72px) !important;
    }
}

/* Show mobile bottom nav on mobile devices */
@media screen and (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 60px !important;
        background: white !important;
        border-top: none !important;
        z-index: 1000 !important;
        box-shadow: none !important;
    }
    
    /* Add bottom padding to body to prevent content from being hidden behind nav */
    body {
        padding-bottom: 70px !important;
    }
    
    /* Hide floating home button on mobile since we have bottom nav */
    .floating-home-button {
        display: none !important;
    }
    
    /* Ensure the bottom nav items are horizontal with proper spacing */
    .mobile-bottom-nav .bottom-nav-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .mobile-bottom-nav .bottom-nav-item.left-nav {
        flex: 0 0 auto !important;
        margin-right: auto !important;
    }
    
    .mobile-bottom-nav .bottom-nav-item.right-nav {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    
    .mobile-bottom-nav .bottom-nav-item.center-nav {
        flex: 0 0 auto !important;
        margin: 0 15px !important;
    }
}

.page-hero-top {
    display: contents;
}

.side_menu_close{
    font-size: 27px;
    line-height: 0;
    position: absolute;
    right: 11px;
    color: #3271f4;
    cursor: pointer;
}

.about-container{
  width: 90%;
  margin: 0 auto;
  background-color:#fff;
  padding:50px;
}

.about-container-ul{
  padding-left: 20px;
}


@media (max-width: 768px) {

.page-action-menu .action-dropdown {
            top: -82px;
        left: -83px;
}

.post-actions .page-action-menu .action-dropdown {
          top: -2px;
        left: 20px;
}



 

.mks-page-item .page-actions {
    width: 50px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;}

    .search-results-container {
        padding: 1rem;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* ARshad Resposive CSS */
    .content-column {
     padding: 1rem;
    }
    
    .page-hero-title {
    font-size: 1rem;
    font-weight: 700;
}

.page-hero-subtitle {
    font-size: 14px;
}

.mklogin_button {
    padding: 5px 5px 7px !important;
}
.logo-image {
    margin-top: 7px;
}

.page-hero-meta {
    display: flex;
    flex-direction: column; /* stats ko neeche lane ke liye */
    align-items: flex-start;
    gap: 8px;
}

.page-hero-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-hero-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.page-hero-author {
    font-size: 14px;
    font-weight: 500;
}

    .page-hero-stats {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        font-size: 13px;
        flex-wrap: wrap;
        color: #555;
        margin-left: 0;
        background: #f3f3f3;
        width: 100%;
        padding: 6px 10px;
        border-radius: 6px;
    
    }
    .page-hero-right .btn-ghost{
    padding: 9px 10px;
    font-size: 12px;
}
.page-hero-right .btn-ghost i{
    font-size: 9px;
}

    .page-hero-like {
        justify-content: center;
        padding: 0.2rem 0.70rem;
        width: 100%;
    }
.page-hero-like .btn-like, .page-hero-like .btn-dislike {
    font-size: 12px;
}

.two-column-layout {
    grid-template-columns: 1fr;

}
.two-column-layout .content-main .posts-grid > .post-card .post-title.first-post-title, .two-column-layout .content-main .posts-columns > .posts-col > .post-card .post-title.first-post-title {
    font-size: 1rem;
    margin-right: 4rem;
}

.header-right{
    display: none;
}

.mks-page-item .page-stats span {
    gap: 0.1rem;
    font-size: 0.7rem;
}

.mks-page-item .page-stats {
    margin-top: 0;
}

.user-header-content, .page-header-content {
    padding: 1rem;
}
.user-stats.user-stats-right {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-item {
    font-size: 0.8rem;
}

.content-sidebar .add-post-form-container{
    padding: 2rem 2rem 0;
}
.add-post-form .form-actions {
    padding-bottom: 0;
}
.top-content-section .content-card h1 {
        line-height: 32px;
        margin-bottom: 8px;
        font-size: 28px;
    }
    
    .top-content-section .content-card p.subtitle{
    font-size: 20px!important;
    line-height: 27px;
}
.top-content-section .content-column-new {
        padding: 0 1rem 1rem;
    }
    
    .top-content-section .content-card-new {
        padding: 0 1rem 1rem;
    }

    /* ARshad Resposive CSS */
    
    .abhi_card{
    justify-content: space-between;
    background-color: #f3f3f3;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 10px;
    margin-bottom: 7px;
    }
    
    .abhi_card .stat-item{
        color:#555;
    }

   .platform_name{
    display:none;
   }

    
   .page_card_new{
     flex-direction: inherit;
     }

  /* About page CSS */

  .about-container{
    width: 100%!important;
    padding: 20px !important;
  }
 

    
}

/* Create Your First Page Section Styles - Matching My Pages Design */
.create-first-page-section {
    margin: 40px 0;
    padding: 0 20px;
}

.create-first-page-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.create-first-page-description-text {
    margin-bottom: 24px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.create-first-page-description-text p {
    margin: 8px 0;
    font-weight: 500;
}

.create-first-page-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    max-width: 100%;
    margin: 0 auto;
}

.create-first-page-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.create-first-page-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.create-first-page-icon i {
    font-size: 24px;
    color: white;
}

.create-first-page-text {
    flex: 1;
    text-align: left;
}

.create-first-page-text h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.create-first-page-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.create-first-page-action {
    flex-shrink: 0;
}

.create-page-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%; /* 20% smaller than full width */
}

.create-page-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #5a67d8;
    text-decoration: none;
}

.create-page-btn i {
    font-size: 14px;
    margin-left: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-first-page-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .create-first-page-text {
        text-align: center;
    }
    
    .create-first-page-text h3 {
        font-size: 20px;
    }
    
    .create-first-page-text p {
        font-size: 14px;
    }
    
    .create-first-page-card {
        padding: 24px 20px;
    }
    
    .create-first-page-icon {
        width: 56px;
        height: 56px;
    }
    
    .create-first-page-icon i {
        font-size: 20px;
    }
    
    .create-page-btn {
        width: 100%; /* Full width on mobile */
    }
    
    .create-first-page-heading {
        font-size: 24px;
    }
    
    .create-first-page-description-text {
        font-size: 14px;
    }
}
.nomobile { display:inherit;}

@media screen and (max-width: 767px) {
  /*.profile-pages-draggable button.toggle-pin {    display: none;  }*/
}

input[readonly] {
  background: #efefef;
  cursor: not-allowed;
}

.search-section .page-drag-handle , .search-post-item  .page-drag-handle{ display:none; }
.action-dropdown.show {
  display: block;
}
.action-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none; /* default hidden */
}

/* Desktop (default) */
.hero-left-column {
  border-radius: 10px 0 0 0;
}

.hero-right-column {
  border-radius: 0 10px 0 0;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-left-column {
    border-radius: 10px 10px 0 0;
  }

  .hero-right-column {
    border-radius: 0;
  }

  .hero-features-list {
    position: relative;
    min-height: 140px;
    margin-top: 0.5rem;
}
.nomobile { display:none!important;}

}

.feature-desc strong{ font-weight:bold!important; }
.feature-content h3{ margin-bottom:12px;}

@media screen and (min-width: 568px) {
    .mobile-login, .mobile-profile-button-for-mobile { display:none;}
}
@media screen and (max-width: 568px) {.mobile-login{ background: linear-gradient(135deg, #2563eb 0%, #1d2a54 100%);color: #fff; border-radius: 17px; padding: 7px 12px; text-decoration: none; font-size: 14px;}}