/**
 * ============================================
 * JOODNESS OVERRIDE STYLES
 * ============================================
 * Version: 1.0.1
 * Extracted from: main.blade.php inline styles
 * Date: 2026-01-21
 * Updated: 2026-02-03 - Added Tailwind container fix
 *
 * These styles override Bootstrap/legacy styles
 * to apply the Joodness brand design.
 * ============================================
 */

/* ============================================
   ALPINE.JS CLOAK
   ============================================ */
[x-cloak] { display: none !important; }

/* ============================================
   TAILWIND CONTAINER FIX
   Override Bootstrap's container with Tailwind-style
   ============================================ */

/* Tailwind-style container (centered, responsive max-width) */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Explicit mx-auto for centering */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Padding utilities */
.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* ============================================
   FLEXBOX LAYOUT UTILITIES
   ============================================ */

.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.items-start {
    align-items: flex-start !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-center {
    justify-content: center !important;
}

/* Gap utilities */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }

/* Responsive flex direction */
@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row !important;
    }

    .lg\:w-80 {
        width: 20rem !important;
    }
}

/* ============================================
   GRID UTILITIES
   ============================================ */

.grid {
    display: grid !important;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-auto { margin-top: auto !important; }

.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pt-4 { padding-top: 1rem !important; }
.pt-6 { padding-top: 1.5rem !important; }

/* ============================================
   WIDTH/HEIGHT UTILITIES
   ============================================ */

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.min-w-0 { min-width: 0 !important; }

.w-32 { width: 8rem !important; }
.h-32 { height: 8rem !important; }

.w-20 { width: 5rem !important; }
.h-20 { height: 5rem !important; }

.w-16 { width: 4rem !important; }
.h-16 { height: 4rem !important; }

.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }

/* ============================================
   BORDER UTILITIES
   ============================================ */

.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-full { border-radius: 9999px !important; }

.border { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-gray-200 { border-color: #e5e7eb !important; }

.border-t { border-top-width: 1px !important; }
.border-b { border-bottom-width: 1px !important; }

/* ============================================
   BACKGROUND UTILITIES
   ============================================ */

.bg-white { background-color: #ffffff !important; }
.bg-gray-50 { background-color: #f9fafb !important; }
.bg-gray-100 { background-color: #f3f4f6 !important; }

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-sm { font-size: 0.875rem !important; }
.text-xs { font-size: 0.75rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }

.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-extrabold { font-weight: 800 !important; }

.text-gray-500 { color: #6b7280 !important; }
.text-gray-600 { color: #4b5563 !important; }
.text-gray-700 { color: #374151 !important; }
.text-gray-900 { color: #111827 !important; }
.text-white { color: #ffffff !important; }

.text-center { text-align: center !important; }

.truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ============================================
   POSITION UTILITIES
   ============================================ */

.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }

.top-24 { top: 6rem !important; }
.inset-0 { top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; }

.z-10 { z-index: 10 !important; }
.z-50 { z-index: 50 !important; }

/* ============================================
   OVERFLOW & VISIBILITY
   ============================================ */

.overflow-hidden { overflow: hidden !important; }
.overflow-x-hidden { overflow-x: hidden !important; }

.opacity-50 { opacity: 0.5 !important; }

/* ============================================
   OBJECT FIT
   ============================================ */

.object-cover { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }

/* ============================================
   SHADOW UTILITIES
   ============================================ */

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1) !important; }

/* ============================================
   INLINE-FLEX
   ============================================ */

.inline-flex {
    display: inline-flex !important;
}

/* ============================================
   PROSE STYLES (for content areas)
   ============================================ */

.prose {
    max-width: 65ch;
    color: #374151;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.max-w-none {
    max-width: none !important;
}

/* ============================================
   SPACE UTILITIES
   ============================================ */

.space-y-4 > * + * {
    margin-top: 1rem !important;
}

.space-y-6 > * + * {
    margin-top: 1.5rem !important;
}

/* ============================================
   TYPOGRAPHY & BASE
   ============================================ */

html {
    font-size: 16px; /* Base font size - prevents small text issues */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans, 'Inter', sans-serif);
    font-size: 1rem; /* 16px base */
    line-height: 1.5;
    color: var(--color-navy, #202835);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans, 'Inter', sans-serif);
    font-weight: 800;
    color: var(--color-navy, #202835);
}

/* Ensure paragraph text is readable */
p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Prevent text from becoming too small */
small, .small {
    font-size: 0.875rem; /* 14px minimum */
}

/* Card text fixes */
.card-title, .card h5, .card h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-text, .card p {
    font-size: 0.95rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary, .btn-success, button[type="submit"] {
    background: var(--color-primary-500, #10B981) !important;
    background-color: var(--color-primary-500, #10B981) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
}

.btn-primary:hover, .btn-success:hover {
    background: var(--color-primary-600, #059669) !important;
    background-color: var(--color-primary-600, #059669) !important;
}

.btn-outline-primary {
    border: 2px solid var(--color-primary-500, #10B981) !important;
    color: var(--color-primary-500, #10B981) !important;
    background: transparent !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: var(--color-primary-500, #10B981) !important;
    background-color: var(--color-primary-500, #10B981) !important;
    color: white !important;
}

/* Joodness Main Button Overrides (from legacy styles.css) */
.btn-main {
    background: var(--maincolor, #10B981) !important;
    background-color: var(--maincolor, #10B981) !important;
    border-color: var(--maincolor, #10B981) !important;
    color: #ffffff !important;
}

.btn-main:hover, .btn-main:focus, .btn-main:active {
    background: var(--maincolor-dark, #059669) !important;
    background-color: var(--maincolor-dark, #059669) !important;
    border-color: var(--maincolor-dark, #059669) !important;
    color: #ffffff !important;
}

.btn-outline-main {
    background: transparent !important;
    border: 2px solid var(--maincolor, #10B981) !important;
    color: var(--maincolor, #10B981) !important;
}

.btn-outline-main:hover, .btn-outline-main:focus, .btn-outline-main:active {
    background: var(--maincolor, #10B981) !important;
    background-color: var(--maincolor, #10B981) !important;
    border-color: var(--maincolor, #10B981) !important;
    color: #ffffff !important;
}

/* Light Main Button (light green background) */
.btn-light-main {
    background: rgba(16, 185, 129, 0.1) !important;
    background-color: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: var(--maincolor, #10B981) !important;
}

.btn-light-main:hover, .btn-light-main:focus, .btn-light-main:active {
    background: var(--maincolor, #10B981) !important;
    background-color: var(--maincolor, #10B981) !important;
    border-color: var(--maincolor, #10B981) !important;
    color: #ffffff !important;
}

/* Dark Button */
.btn-dark {
    background: var(--darkcolor, #1F2937) !important;
    background-color: var(--darkcolor, #1F2937) !important;
    border-color: var(--darkcolor, #1F2937) !important;
    color: #ffffff !important;
}

.btn-dark:hover, .btn-dark:focus, .btn-dark:active {
    background: #111827 !important;
    background-color: #111827 !important;
    border-color: #111827 !important;
    color: #ffffff !important;
}

/* Light Button (white/light gray) */
.btn-light {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #1F2937 !important;
}

.btn-light:hover, .btn-light:focus, .btn-light:active {
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #1F2937 !important;
}

/* Outline Light Button */
.btn-outline-light {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-light:active {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #1F2937 !important;
}

/* Green Button */
.btn-green {
    background: var(--greencolor, #22C55E) !important;
    background-color: var(--greencolor, #22C55E) !important;
    border-color: var(--greencolor, #22C55E) !important;
    color: #ffffff !important;
}

.btn-green:hover, .btn-green:focus, .btn-green:active {
    background: #16A34A !important;
    background-color: #16A34A !important;
    border-color: #16A34A !important;
    color: #ffffff !important;
}

/* Button shape consistency - all buttons use rounded corners */
.btn, .btn-main, .btn-primary, .btn-success, .btn-outline-main, .btn-outline-primary,
.btn-light-main, .btn-dark, .btn-light, .btn-outline-light, .btn-green {
    border-radius: 0.4rem !important;
}

/* Pill/rounded buttons - explicit class */
.btn-rounded, .btn.btn-rounded {
    border-radius: 50px !important;
}

/* ============================================
   TAILWIND COLOR UTILITY OVERRIDES
   Ensures Tailwind bg-* classes work despite Bootstrap resets
   ============================================ */

/* Trust Green (used in cards) */
.bg-trust-green {
    background-color: #10B981 !important;
}

.bg-trust-green-light {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-trust-green-dark,
.hover\:bg-trust-green-dark:hover {
    background-color: #059669 !important;
}

.text-trust-green {
    color: #10B981 !important;
}

/* Joodness Green (used in buttons) */
.bg-joodness-green {
    background-color: #10B981 !important;
}

.bg-joodness-green-dark,
.hover\:bg-joodness-green-dark:hover {
    background-color: #059669 !important;
}

.bg-joodness-green-100 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.text-joodness-green {
    color: #10B981 !important;
}

/* Joodness Amber (used in project buttons) */
.bg-joodness-amber {
    background-color: #F59E0B !important;
}

.bg-joodness-amber-dark,
.hover\:bg-joodness-amber-dark:hover {
    background-color: #D97706 !important;
}

.text-joodness-amber {
    color: #F59E0B !important;
}

/* Primary colors */
.bg-primary-500 {
    background-color: #10B981 !important;
}

.bg-primary-600 {
    background-color: #059669 !important;
}

/* Amber/Featured colors */
.bg-amber-50 {
    background-color: #FFFBEB !important;
}

.bg-green-50 {
    background-color: #ECFDF5 !important;
}

/* ============================================
   LINKS
   ============================================ */

a {
    color: var(--color-primary-500, #10B981);
}

a:hover {
    color: var(--color-primary-600, #059669);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar-brand {
    font-weight: 800;
}

.nav-link {
    font-weight: 575;
    color: var(--color-navy, #202835);
}

/* ============================================
   FOOTER
   ============================================ */

.footer, footer {
    background: var(--color-neutral-900, #111827);
    color: white;
}

/* ============================================
   CARDS - GRID STYLE
   ============================================ */

.job-verticle-grid-style {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    min-height: 320px;
}

.job-verticle-grid-style:hover {
    border-color: var(--color-primary-500, #10B981);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

.job-verticle-grid-style h5 {
    font-size: 1rem;
    line-height: 1.4;
}

.job-verticle-grid-style h5 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.job-verticle-grid-style .bg-light {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.job-verticle-grid-style .row.g-2 .bg-light {
    padding: 8px 4px;
}

.job-verticle-grid-style .row.g-2 .fw-bold {
    font-size: 0.9rem;
}

.job-verticle-grid-style .row.g-2 small {
    font-size: 0.65rem;
}

/* ============================================
   CARDS - LIST BLOCKS
   ============================================ */

.zob-list-bloxks {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
}

.zob-list-bloxks:hover {
    border-color: var(--color-primary-500, #10B981);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

/* Card image hover effect */
.job-verticle-grid-style img,
.zob-list-bloxks img {
    transition: transform 0.3s ease;
}

.job-verticle-grid-style:hover img,
.zob-list-bloxks:hover img {
    transform: scale(1.05);
}

/* ============================================
   HOMEPAGE CARDS
   ============================================ */

.card, .feature-card, .project-card, .association-card {
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
}

.card:hover, .feature-card:hover, .project-card:hover, .association-card:hover {
    border-color: var(--color-primary-500, #10B981);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

/* Job Grid Cards */
.job-grid, .job-grid-verticle-two {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    border-radius: var(--radius-xl, 16px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.job-grid:hover, .job-grid-verticle-two:hover {
    border-color: var(--color-primary-500, #10B981);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.18);
    transform: translateY(-6px);
}

.job-grid .job-grid-employer-thumb,
.job-grid-verticle-two .job-grid-employer-thumb {
    transition: transform 0.3s ease;
}

.job-grid:hover .job-grid-employer-thumb img,
.job-grid-verticle-two:hover .job-grid-employer-thumb img {
    transform: scale(1.08);
}

/* Gray simple background */
.gray-simple {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200, #e5e7eb);
}

/* ============================================
   EVENT TYPE BADGES
   ============================================ */

.event-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full, 9999px);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-type-fundraising { background: #dcfce7; color: #166534; }
.event-type-volunteer { background: #dbeafe; color: #1e40af; }
.event-type-awareness { background: #fef3c7; color: #92400e; }
.event-type-training { background: #e0e7ff; color: #3730a3; }
.event-type-community { background: #f3e8ff; color: #6b21a8; }
.event-type-other { background: #f3f4f6; color: #374151; }

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress {
    background: var(--color-neutral-200, #e5e7eb);
    border-radius: var(--radius-full, 9999px);
    overflow: hidden;
}

.progress-bar {
    border-radius: var(--radius-full, 9999px);
}

/* ============================================
   BADGES & FEATURED
   ============================================ */

.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.featured-box {
    background: linear-gradient(135deg, var(--color-primary-500, #10B981) 0%, var(--color-primary-600, #059669) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-apply {
    color: var(--color-primary-500, #10B981);
    font-weight: 600;
    transition: all 0.2s ease;
}

.job-apply:hover {
    color: var(--color-primary-600, #059669);
}

/* ============================================
   TEXT TRUNCATION UTILITIES
   ============================================ */

.card-title-truncate,
.card-desc-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-height: 3em;
    line-height: 1.5em;
}

.card-single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.min-width-0 {
    min-width: 0;
}

/* Job Grid Text Handling */
.job-grid .job-title,
.job-grid-verticle-two .job-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 1rem;
    line-height: 1.4;
}

.job-grid .job-short-desc,
.job-grid-verticle-two .job-short-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.job-grid .job-grid-names,
.job-grid-verticle-two .job-grid-names {
    min-width: 0;
    overflow: hidden;
}

.job-grid .job-names,
.job-grid-verticle-two .job-names {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-grid-infos span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-grid .job-grid-head,
.job-grid-verticle-two .job-grid-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.job-grid .job-grid-employer-thumb,
.job-grid-verticle-two .job-grid-employer-thumb {
    flex-shrink: 0;
}

/* Instructor Layout */
.job-instructor-layout .instructor-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-size: 0.95rem;
    min-height: 2.8em;
}

.job-instructor-layout .instructor-skills {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
}

/* ============================================
   SWIPER CAROUSEL
   ============================================ */

.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    height: auto;
}

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--color-primary-500, #10B981);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary-500, #10B981);
    transition: color 0.3s ease;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: white;
}

/* Pagination Dots */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--color-primary-500, #10B981);
    width: 30px;
    border-radius: 5px;
}

/* Section Swiper */
.section-swiper {
    overflow: visible;
}

.section-swiper .swiper-slide {
    padding: 10px 5px;
}

/* ============================================
   MODERN CARD COMPONENT
   ============================================ */

.modern-card {
    background: #ffffff;
    border: 1px solid var(--color-neutral-200, #e5e7eb);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    border-color: var(--color-primary-500, #10B981);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    transform: translateY(-8px);
}

.modern-card .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.modern-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .card-image img {
    transform: scale(1.08);
}

.modern-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
}

.modern-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #191919;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 3.08em;
}

.modern-card .card-title a {
    color: #191919;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modern-card .card-title a:hover {
    color: var(--color-primary-500, #10B981);
}

.modern-card .card-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.modern-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.modern-card .card-meta i {
    color: var(--color-primary-500, #10B981);
    margin-right: 4px;
}

.modern-card .card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.modern-card .stat-item {
    text-align: center;
    padding: 10px 4px;
    background: #f9fafb;
    border-radius: 10px;
}

.modern-card .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-500, #10B981);
    display: block;
}

.modern-card .stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-card .card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.modern-card .card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--color-primary-500, #10B981) 0%, var(--color-primary-600, #059669) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-card .card-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-600, #059669) 0%, var(--color-primary-700, #047857) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ============================================
   BADGE VARIANTS
   ============================================ */

.badge-featured {
    background: linear-gradient(135deg, var(--color-amber-500, #f59e0b) 0%, var(--color-amber-600, #d97706) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-verified {
    background: linear-gradient(135deg, var(--color-primary-500, #10B981) 0%, var(--color-primary-600, #059669) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-upcoming {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-free {
    background: #dcfce7;
    color: #166534;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-price {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   PROGRESS BARS FOR CARDS
   ============================================ */

.card-progress {
    margin: 12px 0;
}

.card-progress-bar {
    height: 6px;
    background: var(--color-neutral-200, #e5e7eb);
    border-radius: 3px;
    overflow: hidden;
}

.card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-500, #10B981) 0%, var(--color-primary-600, #059669) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.card-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 6px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 32px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-500, #10B981);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #191919;
    margin: 12px 0 8px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--color-primary-500, #10B981);
    color: var(--color-primary-500, #10B981);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-view-all:hover {
    background: var(--color-primary-500, #10B981);
    color: white;
}

/* ============================================
   RTL SUPPORT
   ============================================ */

[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] body {
    font-family: var(--font-family-sans, 'Inter'), "Tajawal", "Cairo", sans-serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: var(--font-family-sans, 'Inter'), "Tajawal", "Cairo", sans-serif;
}

[dir="rtl"] .text-left { text-align: right; }
[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] .mr-auto { margin-right: 0; margin-left: auto; }
[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }
[dir="rtl"] .float-left { float: right; }
[dir="rtl"] .float-right { float: left; }

[dir="rtl"] .bi-arrow-right::before { content: "\f12f"; }
[dir="rtl"] .bi-arrow-left::before { content: "\f138"; }
[dir="rtl"] .bi-chevron-right::before { content: "\f284"; }
[dir="rtl"] .bi-chevron-left::before { content: "\f285"; }

[dir="rtl"] .flex-row { flex-direction: row-reverse; }
[dir="rtl"] .gap-2, [dir="rtl"] .gap-3, [dir="rtl"] .gap-4 { direction: rtl; }

[dir="rtl"] .swiper-button-prev { right: 10px; left: auto; }
[dir="rtl"] .swiper-button-next { left: 10px; right: auto; }

[dir="rtl"] footer .flex { flex-direction: row-reverse; }
[dir="rtl"] footer ul { padding-right: 0; }

[dir="rtl"] .modern-card .card-badges { flex-direction: row-reverse; }
[dir="rtl"] .modern-card .card-meta { flex-direction: row-reverse; }
[dir="rtl"] .modern-card .card-meta i { margin-right: 0; margin-left: 4px; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1200px) {
    .job-verticle-grid-style {
        min-height: 300px;
    }
}

@media (max-width: 992px) {
    .job-verticle-grid-style {
        min-height: auto;
    }

    .job-verticle-grid-style h5 {
        font-size: 0.95rem;
    }

    .job-grid .job-title,
    .job-grid-verticle-two .job-title {
        font-size: 0.9rem;
    }

    .job-grid-infos {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .job-verticle-grid-style .d-flex.align-items-start.gap-3 {
        gap: 0.75rem;
    }

    .job-verticle-grid-style img {
        width: 60px;
        height: 60px;
    }

    .job-verticle-grid-style .row.g-2 .col-4,
    .job-verticle-grid-style .row.g-2 .col-6 {
        padding: 2px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-card .card-body {
        padding: 16px;
    }

    .modern-card .card-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
}

@media (max-width: 576px) {
    .job-grid .job-grid-head,
    .job-grid-verticle-two .job-grid-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .job-grid .job-grid-names,
    .job-grid-verticle-two .job-grid-names {
        text-align: center;
    }
}
