* { font-family: var(--font-family-arabic, 'IBM Plex Sans Arabic', sans-serif); }

/* Common Brand Helpers & Tokens */
.text-brand { color: var(--color-primary, #3390A4) !important; }
.text-brand-dark { color: var(--color-primary-dark, #1b505c) !important; }
.bg-brand { background-color: var(--color-primary, #3390A4) !important; }
.bg-brand-light { background-color: var(--color-primary-light, #f0f9fa) !important; }
.border-brand { border-color: var(--color-primary, #3390A4) !important; }
.border-brand-subtle { border-color: var(--color-primary-border, #cce8ed) !important; }
.border-t-brand { border-top: 4px solid var(--color-primary, #3390A4) !important; }

.btn-brand-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--color-primary, #3390A4);
    border: 1px solid var(--color-primary, #3390A4);
    border-radius: var(--radius-full, 9999px);
    transition: all var(--transition-normal, 250ms ease);
    cursor: pointer;
    text-decoration: none;
}
.btn-brand-primary:hover {
    background-color: var(--color-primary-hover, #2a7c8e);
    border-color: var(--color-primary-hover, #2a7c8e);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-brand-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary-dark, #1b505c);
    background-color: var(--color-primary-light, #f0f9fa);
    border: 1px solid var(--color-primary-border, #cce8ed);
    border-radius: var(--radius-full, 9999px);
    transition: all var(--transition-normal, 250ms ease);
    cursor: pointer;
    text-decoration: none;
}
.btn-brand-secondary:hover {
    background-color: #e2f4f7;
    color: var(--color-primary-dark, #1b505c);
    border-color: var(--color-primary, #3390A4);
}
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Calm Modern Theme Colors & Gradients */
.hero-bg {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.primary-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.text-gradient {
    background: -webkit-linear-gradient(135deg, #0ea5e9, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Animations & Transitions */
.smooth-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.opp-card, .cat-card, .stats-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.opp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Swiper Styling */
.countries-swiper { padding-bottom: 50px !important; }
.countries-pagination .swiper-pagination-bullet {
    background: #cbd5e1; opacity: 1; width: 6px; height: 6px; border-radius: 999px; transition: all 0.3s; margin: 0 4px !important;
}
.countries-pagination .swiper-pagination-bullet-active {
    background: #0ea5e9; width: 24px;
}

/* Search Box */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.search-input { border: none; outline: none; background: transparent; width: 100%; font-size: 0.95rem; color: #334155; }
.search-divider { width: 1px; height: 32px; background: #e2e8f0; flex-shrink: 0; }

/* Tags */
.tag-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; 
    border-radius: 999px; background: rgba(248, 250, 252, 0.8); color: #475569; 
    font-size: 0.85rem; font-weight: 500; border: 1px solid #e2e8f0; 
    cursor: pointer; transition: all 0.3s;
}
.tag-pill:hover { background: #0ea5e9; color: white; border-color: #0ea5e9; }

/* Section Title Decorative */
.section-title::before {
    content:''; display:inline-block; width:6px; height:20px; 
    background: linear-gradient(to bottom, #0ea5e9, #0284c7); 
    border-radius: 6px; margin-left: 10px; vertical-align: middle;
}

/* Extracted Animations */
@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Brand Color Utilities */
.bg-brand-500 { background-color: #3390A4; }
.hover\:bg-brand-600:hover { background-color: #287383; }
.text-brand-500 { color: #3390A4; }
.text-brand-600 { color: #287383; }
.bg-brand-50 { background-color: #f0f9fa; }
.border-brand-100 { border-color: #e0f2f5; }
.border-brand-200 { border-color: #cce8ed; }
.badge-brand-light { background-color: #f0f9fa; color: #3390A4; }
.badge-brand-solid { background-color: #f0f9fa; color: #3390A4; border: 1px solid #cce8ed; }

/* ============================================================================
   SHARED LAYOUT & COMPONENT LAYER  (app.blade.php + resources/views/components)
   Extracted from inline styles & Tailwind arbitrary bracket classes.
   All colors come from variables.css tokens.
   ========================================================================== */

/* ─── Accent (Sky) Utilities ─────────────────────────────────────────────── */
.text-accent        { color: var(--color-accent) !important; }
.bg-accent          { background-color: var(--color-accent) !important; }
.bg-accent-soft     { background-color: var(--color-accent-soft) !important; }
.bg-accent-faint    { background-color: var(--color-accent-faint) !important; }
.accent-text-hover:hover  { color: var(--color-accent) !important; }
.accent-link-hover:hover  { color: var(--color-accent) !important; background-color: var(--color-accent-soft) !important; }

.text-2xs           { font-size: 10px; line-height: 1.4; }
.text-13px          { font-size: 13px; line-height: 1.45; }
.text-15px          { font-size: 15px; }
.min-w-140px        { min-width: 140px; }
.max-w-80px         { max-width: 80px; }
.max-w-120px        { max-width: 120px; }

/* ─── Alpine.js helper ───────────────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* Common decorative patterns */
.bg-pattern-cubes {
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
}

/* Fix for Swiper Pagination Overlap */
.opportunities-pagination, .featured-pagination { bottom: 0px !important; }

