/* Base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
    
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
        line-height: 1.6 !important;
        color: #1a202c !important;
        background: #f8fafc !important; /* Simplified background for faster rendering */
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Navigation */
    .israel-navbar {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 1rem 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    .israel-nav-content {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .israel-logo {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #1e40af !important;
        text-decoration: none !important;
    }

    /* Hero Section - Optimized for LCP */
    .israel-hero-section {
        background: #ffffff !important;
        color: #1e40af !important;
        padding: 3rem 1rem 2rem !important; /* Reduced padding for faster rendering */
        text-align: center !important;
        position: relative !important;
        border-bottom: 1px solid #e1e5e9 !important;
        /* Removed box-shadow for faster rendering */
    }

    .israel-hero-content {
        max-width: 900px !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .israel-hero-title {
        font-size: 3rem !important; /* Reduced size for faster rendering */
        font-weight: 700 !important;
        margin-bottom: 1rem !important;
        color: #1e40af !important;
        /* Removed position and z-index for simpler rendering */
    }

    .israel-hero-subtitle {
        font-size: 1.2rem !important; /* Reduced size */
        color: #666 !important;
        max-width: 600px !important;
        margin: 0 auto 2rem !important; /* Reduced margin */
        /* Removed position and z-index for simpler rendering */
    }

    .israel-hero-stats {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 2rem !important;
        margin-top: 3rem !important;
    }

    .israel-stat-card {
        background: #f8f9fa !important;
        border: 1px solid #e1e5e9 !important;
        border-radius: 8px !important;
        padding: 1.5rem 1rem !important; /* Reduced padding */
        text-align: center !important;
        /* Removed box-shadow and transition for faster rendering */
    }

    .israel-stat-number {
        font-size: 2rem !important; /* Reduced size */
        font-weight: 700 !important;
        color: #1e40af !important;
        display: block !important;
        margin-bottom: 0.5rem !important;
    }

    .israel-stat-label {
        font-size: 1rem !important;
        color: #666 !important;
        margin-top: 0.5rem !important;
    }

    /* Main Container */
    .israel-main-container {
        max-width: 1200px !important;
        margin: -2rem auto 0 !important;
        padding: 0 1rem !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Loading State - Simplified */
    .israel-loading {
        text-align: center !important;
        padding: 2rem 1rem !important; /* Reduced padding */
        background: white !important;
        border-radius: 12px !important; /* Simpler radius */
        margin-bottom: 2rem !important;
        border: 1px solid #e2e8f0 !important;
        /* Removed box-shadow for faster rendering */
    }

    .israel-loading h3 {
        margin-bottom: 1rem !important;
        color: #1e40af !important;
        font-size: 1.25rem !important; /* Fixed size for faster rendering */
        font-weight: 600 !important;
    }

    .israel-loading-spinner {
        width: 30px !important; /* Smaller spinner */
        height: 30px !important;
        border: 3px solid #e2e8f0 !important;
        border-top: 3px solid #1e40af !important;
        border-radius: 50% !important;
        animation: spin 1s linear infinite !important;
        margin: 0 auto 1rem !important;
    }

    @keyframes spin {
        0% { transform: rotate(0deg) !important; }
        100% { transform: rotate(360deg) !important; }
    }

    /* Accessibility */
    .visually-hidden {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    /* Critical mobile optimizations only */
    @media (max-width: 768px) {
        .israel-hero-section {
            padding: 2rem 1rem 1.5rem !important; /* Further reduced for mobile LCP */
        }
        
        .israel-hero-title {
            font-size: 2.2rem !important; /* Smaller for faster mobile rendering */
        }
        
        .israel-hero-subtitle {
            font-size: 1rem !important; /* Smaller subtitle */
        }
        
        .israel-hero-stats {
            grid-template-columns: 1fr 1fr !important;
            gap: 1rem !important; /* Reduced gap */
        }
        
        .israel-main-container {
            margin-top: -1rem !important;
            padding: 0 0.75rem !important;
        }
        
        .israel-stat-card {
            padding: 1rem 0.75rem !important; /* Reduced padding */
        }
        
        .israel-stat-number {
            font-size: 1.5rem !important; /* Smaller numbers for mobile */
        }
    }

    @media (max-width: 480px) {
        .israel-hero-section {
            padding: 1.5rem 1rem !important; /* Minimal padding for small screens */
        }
        
        .israel-hero-title {
            font-size: 1.8rem !important; /* Even smaller for tiny screens */
        }
        
        .israel-hero-stats {
            grid-template-columns: 1fr !important;
            gap: 0.75rem !important;
        }
        
        .israel-stat-card {
            padding: 0.75rem 0.5rem !important; /* Minimal padding */
        }
    }

/* Filters Section - Non-critical */
.israel-filters {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.israel-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.israel-filter-group {
    display: flex;
    flex-direction: column;
}

.israel-filter-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.israel-filter-select,
.israel-search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.israel-filter-select:focus,
.israel-search-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Honorary Consuls Grid */
.israel-consuls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Honorary Consul Card */
.israel-consul-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.israel-consul-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.15);
}

.israel-card-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3f73 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.israel-consul-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.israel-consul-title {
    font-size: 0.875rem;
    opacity: 0.9;
    color: white;
    margin-bottom: 0.5rem;
}

.israel-consul-country {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.israel-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.israel-consul-info {
    display: grid;
    gap: 1rem;
    flex: 1;
}

.israel-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.israel-info-icon {
    width: 20px;
    height: 20px;
    color: #1e40af;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.israel-info-content {
    flex: 1;
}

.israel-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.israel-info-value {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

/* Contact Links */
.israel-contact-links {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.israel-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.israel-view-details {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.israel-details-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1e40af;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.israel-details-link:hover {
    color: white !important;
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Type badges */
.israel-type-badge {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.israel-type-in-israel {
    background: #10b981;
    color: white;
}

.israel-type-abroad {
    background: #f59e0b;
    color: white;
}

/* No results state */
.israel-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.israel-no-results h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.israel-no-results p {
    color: #718096;
    margin-bottom: 2rem;
}

/* Error state */
.israel-error {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #fed7d7;
}

.israel-error h2 {
    color: #e53e3e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.israel-error p {
    color: #718096;
    margin-bottom: 2rem;
}

/* Mobile optimizations for cards and filters */
@media (max-width: 768px) {
    .israel-consuls-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .israel-card-body {
        padding: 1.5rem;
    }
    
    .israel-card-header {
        padding: 1.5rem;
    }
    
    .israel-contact-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .israel-filters {
        padding: 1.5rem;
    }
    
    .israel-filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .israel-consuls-grid {
        grid-template-columns: 1fr;
    }
    
    .israel-contact-links {
        flex-direction: column;
    }
}
