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

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Public Header */
.public-header {
    background: var(--primary);
    color: white;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.nav-logo p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #34495e;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

.hero-stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-stat p {
    font-size: 1rem;
    margin: 0;
}

/* Featured Investors */
.featured-investors {
    padding: 4rem 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-investors h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark);
}

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

.investor-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.investor-card:hover {
    transform: translateY(-5px);
}

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

.investor-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.sector-tag {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.investor-details {
    margin-bottom: 1rem;
}

.investor-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.investor-description {
    border-top: 1px solid #e1e8ed;
    padding-top: 1rem;
}

.investor-description p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.view-all {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #2980b9;
}

.btn-primary {
    background: var(--secondary);
}

/* Footer */
.public-footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .investors-grid {
        grid-template-columns: 1fr;
    }
}
/* Language Switcher */
.language-switcher {
    margin-left: auto;
    margin-right: 20px;
}

.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
}

/* Search and Filter */
.search-filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-box button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-filter {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-reset {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.sector-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
}

.sector-header h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.sector-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

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

.sector-stat h4 {
    margin: 0;
    font-size: 1.5em;
    color: #007bff;
}

.sector-stat p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #666;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-row select, 
    .btn-filter, 
    .btn-reset {
        width: 100%;
    }
    
    .sector-stats {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .language-switcher {
        margin: 10px 0;
        width: 100%;
    }
}
/* RTL Support for Arabic */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .navbar,
[lang="ar"] .nav-menu,
[lang="ar"] .investor-card,
[lang="ar"] .sector-card {
    text-align: right;
}

[lang="ar"] .search-box input {
    border-radius: 0 4px 4px 0;
}

[lang="ar"] .search-box button {
    border-radius: 4px 0 0 4px;
}

[lang="ar"] .filter-row {
    direction: rtl;
}
/* Enhanced Professional Styles */
.page-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.page-title h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.page-title p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.page-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-left: 4px solid #007bff;
    min-width: 200px;
}

.stat-icon {
    background: linear(135deg, #007bff, #0056b3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Search and Filter Card */
.search-filter-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-box input {
    flex: 1;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px 0 0 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.btn-search {
    background: linear(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: linear(135deg, #0056b3, #004085);
    transform: translateY(-1px);
}

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

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Enhanced Investor Cards */
.investors-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.investor-card-enhanced {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
}

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

.investor-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f1f3f4;
}

.company-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sector-badge, .status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.investor-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.btn-icon:hover {
    background: #007bff;
    color: white;
}

.investor-body {
    padding: 1rem 1.5rem;
}

.investor-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item i {
    color: #007bff;
}

.investment-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

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

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.investor-description {
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.investor-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.update-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Enhanced Sector Cards */
.sectors-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.sector-card-enhanced {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
}

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

.sector-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.sector-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.sector-title h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.sector-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.sector-stats {
    padding: 1.5rem;
}

.stat-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.investment-progress {
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    justify-content: between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.avg-investment {
    background: #e8f4fd;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0066cc;
    text-align: center;
    margin-top: 1rem;
}

.sector-description {
    padding: 0 1.5rem;
    color: #555;
    line-height: 1.5;
    font-size: 0.95rem;
}

.sector-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f3f4;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.results-count {
    color: #6c757d;
    font-size: 0.95rem;
}

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

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear(135deg, #007bff, #0056b3);
    color: white;
}

.btn-primary:hover {
    background: linear(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    color: white;
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Footer */
.footer-content {
    display: flex;
    justify-content: between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
    }
    
    .page-stats {
        width: 100%;
    }
    
    .stat-card {
        flex: 1;
        min-width: auto;
    }
    
    .investors-grid-enhanced,
    .sectors-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .investment-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* RTL Support */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .search-box i {
    left: auto;
    right: 15px;
}

[lang="ar"] .search-box input {
    padding: 12px 45px 12px 15px;
}

[lang="ar"] .sector-icon,
[lang="ar"] .stat-icon {
    margin-right: 0;
    margin-left: 1rem;
}
