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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    min-height: 100vh;
    color: #333;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #10b981;
}

.nav-link.logout {
    color: #e74c3c;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f3f4;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #555;
    font-weight: 500;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: #e8e8e8;
}

.lang-btn svg {
    transition: transform 0.2s;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 140px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.75rem 1rem;
    color: #555;
    text-decoration: none;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #10b981;
    font-weight: 500;
}

.navbar-public {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-public .nav-brand a {
    color: white;
}

.navbar-public .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.navbar-public .lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Landing Page */
.landing-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-container {
    max-width: 900px;
    text-align: center;
}

.landing-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: rgba(255,255,255,0.95);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

.login-btn {
    display: inline-block;
    background: white;
    color: #10b981;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.login-note {
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.landing-preview {
    margin-top: 4rem;
}

.landing-preview h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.preview-feed {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-card {
    background: rgba(255,255,255,0.9);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Type Badges */
.type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.volunteer_opportunity, .type-badge.volunteer { background: #e8f5e9; color: #2e7d32; }
.type-badge.volunteer_availability, .type-badge.available { background: #e3f2fd; color: #1565c0; }
.type-badge.event { background: #fff3e0; color: #ef6c00; }
.type-badge.donation { background: #fce4ec; color: #c2185b; }
.type-badge.request { background: #f3e5f5; color: #7b1fa2; }

.type-badge.large {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.type-badge.small {
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
}

/* Home Page */
.home-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-section h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.action-card {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

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

.action-card.primary {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
}

.action-card.primary:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.action-icon {
    font-size: 1.5rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: #333;
}

.view-all {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.opportunity-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.opportunity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.opp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.opp-date {
    color: #888;
    font-size: 0.85rem;
}

.opp-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.opp-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.opp-location {
    color: #888;
    font-size: 0.85rem;
}

.opp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.opp-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.author-avatar-placeholder.large {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.opp-time {
    color: #999;
    font-size: 0.8rem;
}

/* Feed Page */
.feed-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #f1f3f4;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: #e8e8e8;
}

.filter-tab.active {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
}

.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opportunity-list-item {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.opportunity-list-item:hover {
    background: #f1f3f4;
    transform: translateX(5px);
}

.opp-main {
    flex: 1;
}

.opp-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    color: #666;
    font-size: 0.85rem;
}

.opp-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.event-date-badge {
    background: #fff3e0;
    color: #ef6c00;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Profile Page */
.profile-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.profile-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

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

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
}

.profile-details h1 {
    color: #333;
    margin-bottom: 0.25rem;
}

.profile-email {
    color: #666;
    margin-bottom: 0.5rem;
}

.profile-location {
    color: #888;
    font-size: 0.9rem;
}

.profile-bio {
    color: #555;
    margin-top: 0.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

.profile-section h2 {
    color: #333;
    margin-bottom: 1rem;
}

.my-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.my-post-item:hover {
    background: #f1f3f4;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-info h4 {
    color: #333;
}

.post-date {
    color: #888;
    font-size: 0.8rem;
}

.post-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Chat Page */
.chat-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
}

.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.chat-header h1 {
    color: #333;
    margin-bottom: 0.25rem;
}

.chat-header p {
    color: #666;
    margin-bottom: 0.75rem;
}

.chat-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    width: fit-content;
}

.chat-filter label {
    font-size: 0.875rem;
    color: #555;
    font-weight: 500;
}

.chat-filter select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
}

.chat-filter select:focus {
    outline: none;
    border-color: #10b981;
}

[dir="rtl"] .chat-filter {
    flex-direction: row-reverse;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
}

.message.user {
    align-self: flex-end;
}

.message.bot {
    align-self: flex-start;
}

.message-content {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message.user .message-content {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .message-content {
    background: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message.error .message-content {
    background: #ffebee;
    color: #c62828;
}

.chat-input-form {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.chat-input-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-form input:focus {
    border-color: #10b981;
}

.send-btn {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.send-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Opportunity Detail Page */
.opportunity-container {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

.opportunity-detail {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.opp-detail-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.opportunity-detail h1 {
    color: #333;
    margin-bottom: 1.5rem;
}

.opp-detail-meta {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.meta-row {
    margin-bottom: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info span {
    color: #888;
    font-size: 0.9rem;
}

.detail-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #555;
}

.detail-icon {
    font-size: 1.25rem;
}

.opp-description {
    margin-bottom: 2rem;
}

.opp-description h3 {
    color: #333;
    margin-bottom: 0.75rem;
}

.opp-description p {
    color: #555;
    line-height: 1.6;
}

.opp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.interest-count {
    color: #666;
}

.interest-count .count {
    font-weight: 700;
    color: #10b981;
}

.own-post-note {
    color: #888;
    font-style: italic;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f1f3f4;
    color: #555;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

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

/* Modal */
.modal {
    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;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #10b981;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #555;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.empty-state.small {
    padding: 2rem;
}

/* Error Page */
.error-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.error-container h1 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-container p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Create Post Form */
.create-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.create-container h1 {
    color: #333;
    margin-bottom: 0.5rem;
}

.create-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

.create-form .form-group {
    margin-bottom: 1.5rem;
}

.create-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.type-option {
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s;
}

.type-option input:checked + .type-card {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.type-card:hover {
    border-color: #10b981;
}

.type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.type-name {
    font-weight: 500;
    color: #333;
    text-align: center;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.create-form input[type="text"],
.create-form input[type="date"],
.create-form input[type="number"],
.create-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.create-form input:focus,
.create-form textarea:focus {
    outline: none;
    border-color: #10b981;
}

.create-form textarea {
    resize: vertical;
    min-height: 100px;
}

.create-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Post Link in Chat */
.post-link {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0.25rem 0;
    transition: transform 0.2s;
}

.post-link:hover {
    transform: scale(1.05);
}

.message.loading .message-content {
    color: #888;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .landing-hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .opportunity-list-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .opp-sidebar {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

/* Image Upload Styles */
.image-upload-area {
    position: relative;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.image-upload-area:hover {
    border-color: #10b981;
    background-color: #f8f9ff;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: #888;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 2rem;
}

.image-preview {
    position: relative;
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 3;
    transition: background-color 0.2s;
}

.remove-image:hover {
    background: #c82333;
}

/* Image Display in Posts */
.opp-image {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.opp-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Image in Cards */
.opp-card-image {
    margin: -1.25rem -1.25rem 1rem -1.25rem;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.opp-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* Image in List Items */
.opp-list-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
}

.opp-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opportunity-list-item {
    display: flex;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .opp-list-image {
        width: 100%;
        height: 150px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    font-family: 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[dir="rtl"] .navbar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-right {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-dropdown {
    left: 0;
    right: auto;
}

html[dir="rtl"] .filter-bar {
    flex-direction: row-reverse;
}

html[dir="rtl"] .opportunity-card,
html[dir="rtl"] .card {
    text-align: right;
}

html[dir="rtl"] .opp-type-badge,
html[dir="rtl"] .post-type-badge {
    margin-left: auto;
    margin-right: 0;
}

html[dir="rtl"] .chat-input-form {
    flex-direction: row-reverse;
}

html[dir="rtl"] .chat-input-form input {
    text-align: right;
}

html[dir="rtl"] .message.user {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .message.bot {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .profile-header {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea,
html[dir="rtl"] .form-group select {
    text-align: right;
}

html[dir="rtl"] .opp-meta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .opportunity-details {
    text-align: right;
}

html[dir="rtl"] .detail-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .btn-back {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .landing-features {
    flex-direction: row-reverse;
}

html[dir="rtl"] .feature-card {
    text-align: center;
}
