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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc
}

/* Nav Bar design  */
.navbar {
    background: linear-gradient(#667eea 0%, #5c72d3 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    height: 60px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    align-items: center;
}

.nav-brand-card,
.nav-menu-card,
.user-menu-card {
    display: flex;
    align-items: center;
}

.nav-menu-card {
    justify-content: center;
}

/* Nav-Left: Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

/* Nav-Middle: Menu */
.nav-menu {
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 150px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Nav-Right: User info */
.user-menu-card {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.userName {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-menu {
    position: relative;
}

.user-menu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    pointer-events: none;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    background: white;
    color: #333;
    min-width: 170px;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    box-shadow: 0 6px 26px -4px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    animation: dropdownFade .14s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

.user-menu:hover .dropdown,
.user-menu .dropdown:hover {
    display: block;
}

.dropdown a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem .65rem;
    margin: 2px 0;
    color: #1e293b;
    border-radius: 6px;
    font-size: 1rem;
    line-height: 1.2;
    transition: background .15s, color .15s;
}

.dropdown a i {
    width: 16px;
    text-align: center;
    color: #64748b;
}

.dropdown a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Navbar user profile tweaks (moved from inline) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: none;
}

.user-icon {
    font-size: 24px;
    line-height: 1;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-auth-primary,
.btn-auth-secondary,
.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary,
.btn-auth-primary,
.btn-hero-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover,
.btn-auth-primary:hover,
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-secondary,
.btn-auth-secondary,
.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover,
.btn-auth-secondary:hover,
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Button Specific Styles */
.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    min-width: 180px;
    justify-content: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Auth Button Specific Styles */
.btn-auth-primary,
.btn-auth-secondary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: 600;
}

.btn-auth-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-auth-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.btn-auth-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    opacity: 0.3;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e293b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.about p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about ul {
    list-style: none;
}

.about li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #475569;
}

.about li i {
    color: #10b981;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: #64748b;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #f1f5f9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Status Bar */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-item i.online {
    color: #10b981;
}

/* Authentication Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.auth-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header h2 {
    font-size: 1.5rem;
    color: #1e293b;
}

.auth-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    padding-right: 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group i {
    position: absolute;
    right: 0.75rem;
    top: 2.4rem;
    color: #9ca3af;
}

.form-group select {
    padding-right: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* Left Sidebar */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}


.left-sidebar > *,
.right-sidebar > * {
    flex: 0 0 auto;
}

.profile-card,
.quick-links-card,
.activity-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.profile-card {
    padding: 0;
}

.profile-header {
    background: linear-gradient(#667eea 0%, #4054aa 100%);
    padding: 20px;
    color: white;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.profile-info p {
    margin: 2px 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.quick-links-card h4,
.activity-card h4 {
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1rem;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    border-bottom: 1px solid #f1f5f9;
}

.quick-links li:last-child {
    border-bottom: none;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-links a:hover {
    background: #f8fafc;
    color: #667eea;
}

.quick-links i {
    width: 16px;
    color: #667eea;
}

.activity-list {
    padding: 15px 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.activity-item i {
    margin-top: 2px;
}

.activity-item span {
    flex: 1;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
}

.activity-item small {
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
}

.text-red {
    color: #dc2626;
}

.text-blue {
    color: #2563eb;
}


/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    height: 100%;
}

.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Create Post Card */
.create-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
}

.create-post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #5c72d3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.create-post-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    background: #f8fafc;
    color: #64748b;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-post-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.create-post-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.action-item:hover {
    background: #f1f5f9;
    color: #475569;
}

.feed-filters {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-tab.active,
.filter-tab:hover {
    background: #667eea;
    color: white;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #475569;
    font-size: 0.9rem;
}


/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.left-sidebar,
.main-content,
.right-sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.left-sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    display: none;
}

.blog-layout>* {
    min-height: 0;
}

.trending-card,
.suggestions-card,
.events-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.trending-card h4,
.suggestions-card h4,
.events-card h4 {
    padding: 15px 20px;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 1rem;
}

.trending-list,
.suggestions-list,
.events-list {
    padding: 15px 20px;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.trending-tag {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

.trending-item small {
    color: #94a3b8;
    font-size: 0.8rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.suggestion-info {
    flex: 1;
}

.suggestion-info h5 {
    margin: 0 0 2px;
    font-size: 0.9rem;
    color: #1e293b;
}

.suggestion-info p {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.connect-btn {
    padding: 4px 12px;
    border: 1px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connect-btn:hover {
    background: #667eea;
    color: white;
}

.event-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
    min-width: 50px;
}

.event-date .day {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e293b;
    line-height: 1;
}

.event-date .month {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
}

.event-info h5 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    color: #1e293b;
}

.event-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-links {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
}

.links-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.links-section a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

.links-section a:hover {
    color: #667eea;
}

.footer-links p {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Posts Cards */
.posts-container {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}


.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
}

.post-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.post-content {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #374151;
}

.action-btn.liked {
    color: #dc2626;
    border-color: #dc2626;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Dynamic Post Feed (for JS) */
.post-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}


.post-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

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

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.author-meta {
    font-weight: 500;
    color: #475569;
    font-size: 0.75rem;
    margin-left: 4px;
}

.post-time {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 3px;
}

.post-title {
    margin: 4px 0 10px;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #1e293b;
    font-weight: 600;
}

.post-content {
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 0.9rem;
    color: #374151;
}

.post-attachments {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.attachment-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.65rem;
    color: #475569;
    font-weight: 500;
}

.attachment-chip:hover {
    background: #e2e8f0;
}

/* Post footer & contact button */
.post-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-btn i {
    color: #2563eb;
}

.contact-btn:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

/* Smaller  contact modal */
.contact-card {
    max-width: 440px;
}

/* Post contacts block */
.post-contacts {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
    color: #475569;
    font-size: 0.85rem;
}

.post-contacts .contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.post-contacts .contact-row i {
    color: #64748b;
}

.post-contacts a {
    color: #2563eb;
    text-decoration: none;
}

.post-contacts a:hover {
    text-decoration: underline;
}

/* Post Creation Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.post-modal-card {
    background: #fff;
    min-width: 360px;
    max-width: 560px;
    width: 90%;
    padding: 22px 24px 26px;
    border-radius: 14px;
    box-shadow: 0 8px 30px -4px rgba(0, 0, 0, .25);
    font-family: system-ui, sans-serif;
    position: relative;
}

.modal-title {
    margin: 0 0 4px;
}

.post-modal-userinfo {
    font-size: 13px;
    color: #555;
    margin-bottom: 14px;
}

.post-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.required {
    color: #dc2626;
}

.pm-input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
}

.pm-textarea {
    width: 100%;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.post-modal-attachments {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.pm-attach-btn {
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pm-attach-btn i {
    color: #2563eb;
}

.pm-note {
    font-size: 11px;
    color: #64748b;
}

.hidden-input {
    display: none;
}

.attachment-list {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    max-height: 140px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.pm-btn {
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid transparent;
}

.pm-btn-secondary {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.pm-btn-primary {
    background: #2563eb;
    color: #fff;
}

.post-error {
    color: #c00;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

.profile-incomplete {
    display: none;
    margin-top: 12px;
    font-size: 12px;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 8px 10px;
    border-radius: 8px;
}

.link-accent {
    color: #c2410c;
    font-weight: 600;
}