/* ============================================================
   WazifiQ - Main Stylesheet
   Premium UI/UX - Bilingual EN/AR - Fully Responsive
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #165D31;
    --primary-dark: #0F4523;
    --primary-light: #1E7D42;
    --accent: #F0A500;
    --accent-dark: #D49400;
    --accent-light: #FFB830;
    --text: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #F5F7FA;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    --font-family: 'Poppins', 'Inter', sans-serif;
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

/* ---- Navbar ---- */
.main-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 8px 0;
}
.main-navbar .navbar-brand img { height: 42px; transition: var(--transition); }
.main-navbar .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(22,93,49,0.08);
}
.main-navbar .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-weight: 500;
}
.main-navbar .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
}
.main-navbar .btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}
.user-avatar-sm {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ---- Hero Slider Section ---- */
.hero-slider {
    position: relative;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    background: #1a1a2e;
}
.hero-slider .slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.8s ease;
    display: flex; align-items: center; justify-content: center;
}
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.hero-slider .slide img,
.hero-slider .slide video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(22,93,49,0.85) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}
.hero-content {
    position: relative; z-index: 3;
    text-align: center; color: #fff;
    max-width: 800px; padding: 0 20px;
}
.hero-content h1 {
    font-size: 3rem; font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.25rem; opacity: 0.9;
    margin-bottom: 30px;
}
.hero-content .btn-hero {
    background: var(--accent);
    color: #fff; border: none;
    padding: 14px 32px; border-radius: 50px;
    font-weight: 600; font-size: 1.1rem;
    transition: var(--transition);
}
.hero-content .btn-hero:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240,165,0,0.4);
}
.hero-search-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-search-box .form-control,
.hero-search-box .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.95);
    padding: 12px 16px;
}
.hero-search-box .btn-search {
    background: var(--accent);
    color: #fff; border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-weight: 600;
    width: 100%;
}
.slider-arrows {
    position: absolute; z-index: 5;
    top: 50%; transform: translateY(-50%);
    width: 100%; display: flex; justify-content: space-between;
    padding: 0 20px; pointer-events: none;
}
.slider-arrows button {
    pointer-events: all;
    background: rgba(255,255,255,0.2);
    border: none; color: #fff;
    width: 48px; height: 48px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.slider-arrows button:hover { background: rgba(255,255,255,0.35); }
.slider-dots {
    position: absolute; z-index: 5;
    bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px;
}
.slider-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none; cursor: pointer;
    transition: var(--transition);
}
.slider-dots .dot.active { background: var(--accent); width: 32px; border-radius: 12px; }

/* ---- Section Styles ---- */
.section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 2rem; font-weight: 700;
    color: var(--text); margin-bottom: 12px;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-header .divider {
    width: 60px; height: 4px;
    background: var(--accent); border-radius: 2px;
    margin: 16px auto;
}

/* ---- Stats Section ---- */
.stats-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 60px 0; }
.stat-card {
    text-align: center; color: #fff;
    padding: 30px 20px;
}
.stat-card .stat-icon {
    font-size: 2.5rem; margin-bottom: 12px;
    color: var(--accent);
}
.stat-card .stat-number {
    font-size: 2.5rem; font-weight: 800;
    margin-bottom: 4px;
}
.stat-card .stat-label { font-size: 0.95rem; opacity: 0.8; }

/* ---- Job Card ---- */
.job-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    height: 100%;
}
.job-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.job-card.featured { border: 2px solid var(--accent); }
.job-card .featured-badge {
    position: absolute; top: 12px; right: 12px;
    background: var(--accent); color: #fff;
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 20px;
}
.job-card .company-logo {
    width: 48px; height: 48px; border-radius: var(--radius-sm);
    object-fit: cover; background: var(--bg);
}
.job-card .job-title {
    font-size: 1.1rem; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}
.job-card .job-title:hover { color: var(--primary); }
.job-card .company-name { color: var(--text-light); font-size: 0.9rem; }
.job-card .job-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.job-card .job-meta span {
    font-size: 0.85rem; color: var(--text-light);
    display: flex; align-items: center; gap: 6px;
}
.job-card .job-meta i { color: var(--primary); font-size: 0.9rem; }
.job-card .job-salary {
    color: var(--primary); font-weight: 600;
    font-size: 1rem;
}
.job-card .job-footer {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 16px;
    padding-top: 14px; border-top: 1px solid var(--border);
}

/* ---- Category Grid ---- */
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary);
}
.category-card .cat-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(22,93,49,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem; color: var(--primary);
}
.category-card:hover .cat-icon {
    background: var(--primary); color: #fff;
}
.category-card h6 { font-weight: 600; margin-bottom: 4px; }
.category-card .cat-count { font-size: 0.85rem; color: var(--text-light); }

/* ---- City Card ---- */
.city-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.city-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.city-card .city-icon { font-size: 2rem; color: var(--primary); margin-bottom: 8px; }
.city-card h6 { font-weight: 600; margin-bottom: 2px; }

/* ---- How It Works ---- */
.step-card {
    text-align: center; padding: 30px 20px;
}
.step-card .step-number {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800;
    margin: 0 auto 18px;
    position: relative;
}
.step-card .step-number::after {
    content: ''; position: absolute;
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px dashed var(--accent);
    animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.step-card h5 { font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-light); }

/* ---- Testimonial Card ---- */
.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
}
.testimonial-card .testimonial-avatar {
    width: 70px; height: 70px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 14px;
    border: 3px solid var(--accent);
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 10px; }
.testimonial-card .testimonial-text {
    font-style: italic; color: var(--text-light);
    margin-bottom: 14px;
}
.testimonial-card .testimonial-name { font-weight: 600; }
.testimonial-card .testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; position: relative; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; position: relative; }
.cta-banner .btn-cta {
    background: var(--accent); color: #fff;
    padding: 14px 36px; border-radius: 50px;
    font-weight: 700; font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}
.cta-banner .btn-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240,165,0,0.5);
}

/* ---- Companies Strip ---- */
.companies-strip {
    background: var(--bg-white);
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.company-logo-strip {
    display: flex; align-items: center; justify-content: center;
    gap: 40px; flex-wrap: wrap;
    opacity: 0.7; filter: grayscale(1);
    transition: var(--transition);
}
.company-logo-strip:hover { opacity: 1; filter: grayscale(0); }
.company-logo-strip .company-strip-item {
    font-size: 1.15rem; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}

/* ---- Newsletter ---- */
.newsletter-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}
.newsletter-form .form-control {
    border-radius: 50px; padding: 12px 20px;
    border: 2px solid var(--border);
}
.newsletter-form .btn-subscribe {
    border-radius: 50px; padding: 12px 28px;
    background: var(--primary); color: #fff; border: none;
    font-weight: 600;
}

/* ---- Footer ---- */
.site-footer {
    background: #111827;
    color: #D1D5DB;
}
.footer-heading {
    color: #fff; font-weight: 700;
    font-size: 1.05rem; margin-bottom: 18px;
    position: relative; padding-bottom: 10px;
}
.footer-heading::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; width: 40px; height: 3px;
    background: var(--accent); border-radius: 2px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9CA3AF; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li {
    margin-bottom: 10px; font-size: 0.9rem;
    display: flex; align-items: center;
}
.text-accent { color: var(--accent) !important; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff;
    transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ---- Floating Buttons ---- */
.whatsapp-float {
    position: fixed; bottom: 30px; <?= $dir ?? 'left' ?>: 30px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ---- Chat Widget ---- */
.chat-widget {
    position: fixed; bottom: 30px; right: 30px; z-index: 998;
}
.chat-toggle {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: #fff; border: none;
    font-size: 22px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(22,93,49,0.4);
    position: relative; transition: var(--transition);
}
.chat-toggle:hover { transform: scale(1.1); }
.chat-badge {
    position: absolute; top: -4px; right: -4px;
    background: #EF4444; color: #fff;
    font-size: 0.7rem; width: 20px; height: 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.chat-window {
    position: absolute; bottom: 70px; right: 0;
    width: 340px; height: 420px;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.chat-header {
    background: var(--primary); color: #fff;
    padding: 12px 16px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.chat-messages {
    flex: 1; overflow-y: auto; padding: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.chat-msg { max-width: 85%; padding: 8px 14px; border-radius: 18px; font-size: 0.9rem; word-wrap: break-word; }
.chat-msg.own { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.other { align-self: flex-start; background: #F3F4F6; color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg .msg-user { font-size: 0.75rem; font-weight: 600; margin-bottom: 2px; }
.chat-msg .msg-time { font-size: 0.65rem; opacity: 0.6; margin-top: 4px; }
.chat-input-area { display: flex; padding: 10px; border-top: 1px solid var(--border); gap: 8px; }
.chat-input { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px; outline: none; }
.chat-send {
    background: var(--primary); color: #fff; border: none;
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
}

/* ---- Cookie Consent ---- */
.cookie-consent {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1F2937; color: #fff; z-index: 1000;
    padding: 14px 0;
}
.cookie-content {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    flex-wrap: wrap; gap: 12px;
}

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg) 0%, #E8EDF2 100%);
    padding: 30px 0;
}
.auth-card {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 40px;
    width: 100%; max-width: 500px;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 28px; }
.auth-card .auth-logo img { height: 50px; }
.auth-card h3 { font-weight: 700; margin-bottom: 24px; text-align: center; }
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 11px 16px; font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22,93,49,0.15);
}
.btn-primary {
    background: var(--primary); border-color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 11px 24px; font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-accent {
    background: var(--accent); border-color: var(--accent); color: #fff;
    border-radius: var(--radius-sm);
    padding: 11px 24px; font-weight: 600;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

/* ---- Dashboard Pages ---- */
.dashboard-sidebar {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px;
}
.dashboard-sidebar .nav-link {
    color: var(--text); padding: 12px 16px;
    border-radius: var(--radius-sm); margin-bottom: 4px;
    font-weight: 500; transition: var(--transition);
    display: flex; align-items: center; gap: 10px;
}
.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: rgba(22,93,49,0.08); color: var(--primary);
}
.dashboard-sidebar .nav-link i { width: 20px; text-align: center; }
.stat-card-dashboard {
    background: #fff; border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 16px;
}
.stat-card-dashboard .stat-icon-dash {
    width: 54px; height: 54px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.stat-card-dashboard .stat-value { font-size: 1.8rem; font-weight: 700; }
.stat-card-dashboard .stat-label-dash { color: var(--text-light); font-size: 0.9rem; }

/* ---- Table Styles ---- */
.table-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px;
    overflow-x: auto;
}
.table-card table { margin-bottom: 0; }
.table-card thead th {
    background: var(--bg); border: none;
    font-weight: 600; font-size: 0.85rem; color: var(--text-light);
    padding: 12px 16px;
}
.table-card tbody td {
    padding: 14px 16px; vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

/* ---- Badges ---- */
.badge-status {
    padding: 6px 12px; border-radius: 20px;
    font-weight: 500; font-size: 0.8rem;
}

/* ---- Filters Panel ---- */
.filters-panel {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 24px;
}

/* ---- Flash Alert ---- */
.flash-alert {
    border-radius: var(--radius-sm);
    border: none; box-shadow: var(--shadow);
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Page Wrapper ---- */
.page-wrapper {
    padding: 40px 0;
    min-height: 60vh;
}

/* ---- Breadcrumb ---- */
.breadcrumb-custom {
    background: none; padding: 0;
    font-size: 0.9rem;
}
.breadcrumb-custom .breadcrumb-item a { color: var(--primary); }
.breadcrumb-custom .breadcrumb-item.active { color: var(--text-light); }

/* ---- Loader ---- */
.loader {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--primary); border-radius: var(--radius-sm);
    margin: 0 2px; border-color: var(--border); padding: 8px 14px;
}
.pagination .page-item.active .page-link {
    background: var(--primary); border-color: var(--primary);
}

/* ---- Skill Badges ---- */
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
    background: rgba(22,93,49,0.08); color: var(--primary);
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 500;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center; padding: 60px 20px;
}
.empty-state .empty-icon {
    font-size: 4rem; color: var(--text-muted);
    margin-bottom: 16px;
}
.empty-state h5 { color: var(--text-light); }

/* ============================================================ */
/* RESPONSIVE STYLES */
/* ============================================================ */

/* Tablet & Small Desktop */
@media (max-width: 991px) {
    .hero-slider { height: 55vh; min-height: 400px; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .chat-window { width: 300px; height: 380px; }
    .stat-card .stat-number { font-size: 1.8rem; }
    .section { padding: 50px 0; }
    .auth-card { max-width: 420px; padding: 30px; }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-slider { height: 45vh; min-height: 320px; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content p { font-size: 0.9rem; }
    .hero-search-box { padding: 14px; }
    .hero-content .btn-hero { padding: 10px 24px; font-size: 0.95rem; }
    .chat-window {
        width: calc(100vw - 40px); height: 360px;
        right: -10px; bottom: 70px;
    }
    .chat-widget { right: 15px; bottom: 20px; }
    .whatsapp-float { left: 15px; bottom: 20px; width: 48px; height: 48px; font-size: 22px; }
    .section-header h2 { font-size: 1.5rem; }
    .section { padding: 40px 0; }
    .job-card { padding: 16px; }
    .stat-card { padding: 20px 12px; }
    .stat-card .stat-icon { font-size: 2rem; }
    .stat-card .stat-number { font-size: 1.6rem; }
    .cta-banner h2 { font-size: 1.4rem; }
    .cta-banner { padding: 30px 20px; }
    .auth-card { padding: 24px; margin: 0 15px; }
    .dashboard-sidebar { margin-bottom: 20px; }
    .table-card { padding: 12px; }
}

/* Small Phone */
@media (max-width: 480px) {
    .hero-slider { height: 38vh; min-height: 260px; }
    .hero-content h1 { font-size: 1.2rem; }
    .hero-content p { font-size: 0.8rem; }
}

/* ============================================================ */
/* RTL SUPPORT */
/* ============================================================ */
[dir="rtl"] .footer-heading::after { left: auto; right: 0; }
[dir="rtl"] .footer-links a:hover { padding-left: 0; padding-right: 5px; }
[dir="rtl"] .job-card .featured-badge { right: auto; left: 12px; }
[dir="rtl"] .chat-widget { right: auto; left: 30px; }
[dir="rtl"] .chat-window { right: auto; left: 0; }
[dir="rtl"] .whatsapp-float { left: auto; right: 30px; }
[dir="rtl"] .slider-arrows button i { transform: scaleX(-1); }
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }
[dir="rtl"] .text-md-start { text-align: right !important; }
[dir="rtl"] .text-md-end { text-align: left !important; }
[dir="rtl"] .dropdown-menu-end { right: auto; left: 0; }
[dir="rtl"] .pagination .page-link { margin: 0 2px; }
[dir="rtl"] .chat-msg.own { border-bottom-right-radius: 18px; border-bottom-left-radius: 4px; }
[dir="rtl"] .chat-msg.other { border-bottom-left-radius: 18px; border-bottom-right-radius: 4px; }
