/* =============================================================================
   Raqmasar - Main Public Stylesheet
   Version: 1.0 (Refactored & Consolidated)
   ========================================================================== */

/* --- 1. Global Styles & Variables --- */
:root {
    --primary-blue: #0a2540; /* Dark blue */
    --secondary-yellow: #ffc400; /* Vibrant yellow */
    --light-gray: #f6f9fc; /* Light background for sections */
    --dark-text: #333;      /* Standard dark text */
    --light-text: #ffffff;  /* Standard light text */
    --muted-text: #6c757d;  /* Muted text for descriptions */
    --border-color: #e6ebf1; /* General border color */
    --border-radius: 8px;   /* Standard border radius */
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07), 0 3px 6px rgba(0, 0, 0, 0.05); /* Soft shadows */
    --transition-speed: 0.3s ease; /* Universal transition speed */

    /* Specific status colors (can be reused from dashboard.css if desired) */
    --status-active: #28a745;
    --status-pending: #ffc107;
    --status-inactive: #6c757d;
    --status-rejected: #dc3545;
    --status-viewed: #17a2b8;
    --status-applied: #007bff;
    --status-shortlisted: #6f42c1;
    --status-banned: #dc3545;
    --status-blocked: #d9534f;
    --status-free: #17a2b8;
}

/* Define fonts based on direction */
body[dir="ltr"] { font-family: 'Poppins', sans-serif; }
body[dir="rtl"] { font-family: 'Cairo', sans-serif; }

body {
    margin: 0;
    background-color: var(--light-gray);
    color: var(--dark-text);
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

/* Global link styles */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--secondary-yellow);
    text-decoration: underline;
}

/* Generic widget styling */
.widget {
    background: var(--light-text);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color); /* Added subtle border */
}


/* --- 2. Hero Section with Video Background (Homepage) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--light-text);
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(233, 233, 233, 0.266); /* Darker overlay for better text contrast */
    z-index: -1;
}
.hero-content {
    z-index: 1;
    animation: fadeIn 2s ease-in-out;
    max-width: 800px;
}
.hero-logo { width: 150px; margin-bottom: 20px; animation: slideDown 1.5s ease-out; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin: 0; text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.5); }
.hero-subtitle { font-size: 1.4rem; margin: 15px 0 30px 0; }

/* --- 3. Call to Action (CTA) Buttons --- */
.cta-button {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin: 0 10px; /* Space between buttons */
    transition: all var(--transition-speed);
    display: inline-block; /* Ensure padding and margin work */
    text-align: center;
}
.cta-button.primary {
    background-color: var(--secondary-yellow);
    color: var(--primary-blue);
    border: 1.8px solid var(--secondary-yellow);
}
.cta-button.secondary {
    background-color: green;
    color: var(--light-text);
    border: 2px solid green;
}
.cta-button:hover { transform: scale(1.05); box-shadow: 0 8px 15px rgba(255, 196, 0, 0.3); }
.cta-button.small { padding: 8px 15px; font-size: 0.9rem; }
.cta-button.large-cta { padding: 15px 40px; font-size: 1.2rem; }


/* --- 4. Main Header & Navigation --- */
.main-header {
    position: sticky; /* Sticky header */
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Blur effect for modern look */
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-logo img { height: 45px; }
.nav-menu { list-style: none; display: flex; gap: 25px; padding: 0; margin: 0; }
.nav-menu a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}
.nav-menu a::after { /* Underline effect for nav links */
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 0; /* Default LTR */
    background-color: var(--secondary-yellow);
    transition: width var(--transition-speed);
}
body[dir="rtl"] .nav-menu a::after { left: auto; right: 0; } /* Flip for RTL */
.nav-menu a:hover::after,
.nav-menu li.active a::after { width: 100%; } /* Active state + hover */

.nav-actions { display: flex; align-items: center; gap: 15px; }
.nav-actions .login-btn {
    color: var(--primary-blue);
    background: transparent;
    border: 1px solid var(--primary-blue);
}
.nav-actions .login-btn:hover { background-color: var(--light-gray); }
.nav-actions .signup-btn {
    background-color: var(--primary-blue);
    color: var(--light-text);
    border: 1px solid var(--primary-blue);
}
.nav-actions .signup-btn:hover { background-color: #000; border-color: #000; }

/* User menu in header (for logged-in users) */
.nav-actions .user-menu { display: flex; align-items: center; gap: 15px; }
.nav-actions .user-greeting { font-weight: 600; color: var(--dark-text); }
.nav-actions .dashboard-btn {
    background-color: var(--primary-blue);
    color: var(--light-text);
    text-decoration: none; padding: 8px 16px; border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}
.nav-actions .dashboard-btn:hover { background-color: #0d3b66; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.nav-actions .logout-btn-public {
    background-color: transparent; color: var(--primary-blue);
    text-decoration: none; padding: 8px 16px; border-radius: var(--border-radius);
    border: 1px solid var(--border-color); font-weight: 600;
    transition: all var(--transition-speed);
}
.nav-actions .logout-btn-public:hover { background-color: var(--light-gray); border-color: #ccc; }

.language-switcher a {
    color: var(--primary-blue);
}

/* Sticky Header Effect */
.main-header.sticky-header {
    position: fixed; top: 0; width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: slideDownNav 0.5s ease-out;
}


/* --- 5. Generic Page Hero Section (for About, Contact, Blog etc.) --- */
.page-hero-section {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--light-text);
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}
.page-hero-section .hero-overlay {
    background-color: rgb(0, 68, 147); /* Semi-transparent dark blue overlay */
    z-index: 1; /* Above background image, below content */
}
.page-hero-section .hero-content { /* Specific content styling for these heroes */
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.page-hero-title { font-size: 3.5rem; font-weight: 700; margin: 0 0 10px 0; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); animation: fadeInDown 0.8s ease-out; }
.page-hero-subtitle { font-size: 1.2rem; font-weight: 400; opacity: 0.9; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); animation: fadeInUp 0.8s ease-out 0.2s forwards; } /* forwards keeps end state */


/* --- 6. Main Content Wrapper & Section Titles --- */
#page-wrapper { /* This wraps all content between header and footer */
    min-height: calc(100vh - 100px); /* Adjust based on actual header/footer heights */
}
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after { /* Underline effect for titles */
    content: ''; display: block; width: 80px; height: 4px;
    background: var(--secondary-yellow); margin: 10px auto 0;
    border-radius: 2px;
}
.section-subtitle { /* General subtitle style for sections */
    max-width: 700px;
    margin: -2rem auto 3rem auto;
    color: var(--muted-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- 7. How It Works Section (Homepage) --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.step-card {
    background: var(--light-text);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    transform-style: preserve-3d;
}
.step-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.step-icon { margin-bottom: 1.5rem; }
.step-icon img { height: 80px; transition: transform var(--transition-speed); }
.step-card:hover .step-icon img { transform: scale(1.1); }

/* --- 8. Card Layouts (Job, Service, Blog, Product) --- */
.job-grid, .services-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.job-card, .service-card, .blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-speed);
}
.job-card:hover, .service-card:hover, .blog-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }

/* Card Header (for job/service/product) */
.job-card-header, .service-card-header, .company-info-header { /* Consolidate general header for cards */
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
}
.job-card-header img, .service-card-header img, .company-info-header img {
    height: 50px; width: 50px;
    border-radius: 50%; /* Default to circle for profile/company logos */
    border: 1px solid var(--border-color);
    object-fit: contain;
}
.job-card-header h4, .service-card-header h3, .company-info-header h4 {
    margin: 0; font-size: 1.1rem; color: var(--primary-blue);
}
.job-card-header p { margin: 0; color: var(--muted-text); font-size: 0.9rem; }

/* Card Body */
.job-card-body {
    flex-grow: 1;
    color: var(--dark-text);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem 0 1.5rem;
    font-size: 0.95rem;
}

/* Card Footer */
.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}
.job-type-badge {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.details-link {
    font-weight: 600; color: var(--primary-blue); text-decoration: none;
}
.details-link:hover { color: var(--secondary-yellow); text-decoration: underline; }

/* --- Save Job Button --- */
.save-job-btn {
    margin-bottom: 1rem; /* Space between save and apply buttons */
    width: 100%;
}
.save-job-btn.saved {
    background-color: var(--primary-blue);
    color: var(--light-text);
    border-color: var(--primary-blue);
}
.cta-button.secondary.save-job-btn {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}
.cta-button.secondary.save-job-btn:hover { background-color: var(--light-gray); }

/* Save job feedback container */
.save-job-feedback-container {
    min-height: 1px;
    text-align: center;
    position: relative; /* For positioning absolute messages if needed */
}
.save-job-feedback {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    background-color: #d1ecf1; color: #0c5460; border-color: #bee5eb; /* Info-like color for success */
}
.save-job-feedback.error {
    background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; /* Error-like color */
}
.save-job-feedback.visible {
    opacity: 1; transform: translateY(0);
}


/* --- 9. Details Pages Layout (Job, Service, Product, Post) --- */
.job-details-layout, .single-post-layout {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr; /* Main content wider than sidebar */
    gap: 2rem;
    align-items: flex-start;
}
.job-details-main, .post-content { /* Left column content */
    padding: 2.5rem; /* Apply widget padding */
}
.job-details-header h1, .post-content h1 { font-size: 2.5rem; color: var(--primary-blue); margin: 10px 0; }
.job-details-header .job-location { font-size: 1.1rem; color: var(--muted-text); font-weight: 500; }
.job-description-content h3, .post-body h3 { font-size: 1.5rem; color: var(--primary-blue); margin-top: 2rem; margin-bottom: 1rem; }
.job-description-content p, .post-body p { line-height: 1.8; color: var(--dark-text); }

/* Skills Tags */
.skills-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.skills-tags span {
    background-color: var(--light-gray); color: var(--primary-blue);
    padding: 6px 14px; border-radius: 50px; font-size: 0.9rem; font-weight: 500;
}

/* Sidebar for details pages */
.job-details-sidebar .widget, .post-sidebar .widget { margin-bottom: 2rem; }
.job-details-sidebar .apply-button { display: block; width: 100%; text-align: center; font-size: 1.2rem; }

/* Company/Provider/Seller Info Widget */
.company-info-widget .company-info-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.company-info-widget .company-info-header img {
    height: 50px; width: 50px; border-radius: var(--border-radius); object-fit: cover;
}
.company-info-widget .company-info-header h4 { margin: 0; font-size: 1.2rem; }
.company-info-widget p { font-size: 0.95rem; line-height: 1.6; }


/* --- 10. Blog Page Styling --- */
.blog-card-link { text-decoration: none; color: inherit; }
.blog-card {
    background: #fff; border-radius: var(--border-radius); overflow: hidden;
    box-shadow: var(--box-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.blog-card-image { height: 200px; position: relative; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image .video-thumbnail-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
}
.blog-card-image .play-icon { font-size: 3rem; color: #fff; }
.blog-card-content { padding: 1.5rem; flex-grow: 1; }
.blog-card-content h3 { margin: 0 0 1rem 0; font-size: 1.3rem; color: var(--primary-blue); }
.post-meta { font-size: 0.9rem; color: var(--muted-text); }
.post-meta span { margin-right: 1rem; }
body[dir="rtl"] .post-meta span { margin-right: 0; margin-left: 1rem; }


/* --- 11. Single Blog/User Post Page Styling --- */
.post-content .post-meta { margin: 1.5rem 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.post-featured-media {
    margin-bottom: 2rem; background-color: #f0f2f5;
    border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.post-video-player, .post-featured-image { width: 100%; height: auto; display: block; max-height: 500px; }
.post-body h2, .post-body h3 { color: var(--primary-blue); margin-top: 2.5rem; }
.post-body p, .post-body li { margin-bottom: 1.5rem; }


/* --- 12. Services & Products Browsing Pages --- */
.service-card-image { position: relative; height: 200px; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card-price {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(10, 37, 64, 0.8); color: var(--secondary-yellow);
    padding: 5px 12px; border-radius: 50px; font-weight: 700; font-size: 1rem;
    backdrop-filter: blur(4px);
}
body[dir="rtl"] .service-card-price { right: auto; left: 1rem; }
.service-card-content { padding: 1.5rem; flex-grow: 1; }
.service-card-content h3 { margin: 0; font-size: 1.2rem; line-height: 1.4; color: var(--primary-blue); }
.service-card-provider {
    display: flex; align-items: center;
    padding: 0 1.5rem 1.5rem 1.5rem; border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.service-card-provider img { width: 35px; height: 35px; border-radius: 50%; margin-right: 10px; }
body[dir="rtl"] .service-card-provider img { margin-right: 0; margin-left: 10px; }
.service-card-provider span { font-weight: 600; font-size: 0.9rem; }


/* --- 13. Service & Product Details Pages --- */
.service-price-box { text-align: center; padding: 1.5rem; background: var(--light-gray); border-radius: var(--border-radius); margin-bottom: 1.5rem; }
.service-price-box span { font-size: 1rem; color: var(--muted-text); }
.service-price-box .price { font-size: 2.5rem; font-weight: 700; color: var(--primary-blue); margin: 0.5rem 0; }
.service-price-box small { font-size: 1rem; font-weight: 500; }


/* --- 14. About Us Page Styling --- */
.about-intro-section { padding: 4rem 0; }
.about-intro-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-image img { width: 100%; max-width: 400px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); display: block; margin: 0 auto; }
.section-title-left { text-align: left; font-size: 2rem; color: var(--primary-blue); margin-bottom: 1rem; position: relative; }
body[dir="rtl"] .section-title-left { text-align: right; }
.section-title-left::after { content: ''; display: block; width: 60px; height: 3px; background: var(--secondary-yellow); margin: 8px 0 0 0; }
body[dir="rtl"] .section-title-left::after { margin: 8px 0 0 auto; }
.about-text p { color: var(--dark-text); line-height: 1.8; }
.why-us-section { padding: 4rem 0; }
.team-section { padding: 4rem 0; background-color: var(--light-gray); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-card { background: var(--light-text); border-radius: var(--border-radius); overflow: hidden; text-align: center; box-shadow: var(--box-shadow); transition: transform var(--transition-speed); }
.team-card:hover { transform: translateY(-10px); }
.team-card img { width: 100%; height: 300px; object-fit: cover; }
.team-info { padding: 1.5rem; }
.team-info h4 { margin: 0 0 5px 0; color: var(--primary-blue); }
.team-info p { margin: 0; color: var(--muted-text); }


/* --- 15. Contact Us Page Styling --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; background: #fff; padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.contact-form-container h3, .contact-info-container h3 { color: var(--primary-blue); font-size: 1.8rem; margin-bottom: 2rem; }
.contact-form .input-group { margin-bottom: 1.5rem; }
.contact-form label { font-weight: 600; margin-bottom: 5px; display: block; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius); box-sizing: border-box; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--secondary-yellow); box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.2); }
.contact-info-container p { line-height: 1.7; color: var(--dark-text); }
.contact-details { list-style: none; padding: 0; margin: 2rem 0; }
.contact-details li { padding-left: 30px; position: relative; margin-bottom: 1rem; font-size: 1rem; }
body[dir="rtl"] .contact-details li { padding-left: 0; padding-right: 30px; }
.contact-details li::before { /* SVG icons for email, phone, address */
    content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
    background-color: var(--secondary-yellow); mask-size: contain; mask-repeat: no-repeat;
    -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
}
body[dir="rtl"] .contact-details li::before { left: auto; right: 0; }
/* Specific icon definitions (from your snippet) */
.contact-details li:nth-child(1)::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M1.946 9.315c.522-.174 1.103-.223 1.691-.223h16.728c.588 0 1.169.049 1.691.223L12 18.227 1.946 9.315zM22 7.349c-.495-.17-1.04-.256-1.6-.256H3.6c-.56 0-1.105.086-1.6.256L12 15.451 22 7.349z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M1.946 9.315c.522-.174 1.103-.223 1.691-.223h16.728c.588 0 1.169.049 1.691.223L12 18.227 1.946 9.315zM22 7.349c-.495-.17-1.04-.256-1.6-.256H3.6c-.56 0-1.105.086-1.6.256L12 15.451 22 7.349z'/%3E%3C/svg%3E"); }
.contact-details li:nth-child(2)::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.279-.087.431l4.106 7.492c.077.152.25.18.431.087l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C6.55 22.5 1.5 17.45 1.5 10.5V4.5z' clip-rule='evenodd'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M1.5 4.5a3 3 0 013-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 01-.694 1.955l-1.293.97c-.135.101-.164.279-.087.431l4.106 7.492c.077.152.25.18.431.087l.97-1.293a1.875 1.875 0 011.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 01-3 3h-2.25C6.55 22.5 1.5 17.45 1.5 10.5V4.5z' clip-rule='evenodd'/%3E%3C/svg%3E"); }
.contact-details li:nth-child(3)::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M11.54 22.351l.07.04.028.016a.76.76 0 00.723 0l.028-.015.071-.041a16.975 16.975 0 005.16-4.242 16.975 16.975 0 004.241-5.16c.302-.75.452-1.547.452-2.39C21.998 5.484 16.514 0 9.998 0S-2.002 5.484-2.002 12.001c0 .843.15 1.64.453 2.391a16.975 16.975 0 004.241 5.159 16.975 16.975 0 005.16 4.242zM9.998 14.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z' clip-rule='evenodd'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M11.54 22.351l.07.04.028.016a.76.76 0 00.723 0l.028-.015.071-.041a16.975 16.975 0 005.16-4.242 16.975 16.975 0 004.241-5.16c.302-.75.452-1.547.452-2.39C21.998 5.484 16.514 0 9.998 0S-2.002 5.484-2.002 12.001c0 .843.15 1.64.453 2.391a16.975 16.975 0 004.241 5.159 16.975 16.975 0 005.16 4.242zM9.998 14.25a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z' clip-rule='evenodd'/%3E%3C/svg%3E"); }
.map-container { border-radius: var(--border-radius); overflow: hidden; margin-top: 2rem; }


/* --- 16. Info & CTA Page (e.g. post_job.php public view) --- */
.info-text-center { text-align: center; }
.section-subtitle { max-width: 700px; margin: -2rem auto 3rem auto; color: var(--muted-text); font-size: 1.1rem; line-height: 1.7; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 4rem; text-align: left; }
body[dir="rtl"] .benefits-grid { text-align: right; }
.benefit-item h3 { color: var(--primary-blue); font-size: 1.3rem; }
.cta-action-box { background: #fff; padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin-top: 3rem; }
.cta-action-box .large-cta { padding: 15px 40px; font-size: 1.2rem; font-weight: 700; }
.cta-action-box .login-prompt { margin-top: 1.5rem; color: var(--dark-text); }
.cta-action-box .cta-button.secondary { /* Logout & Create Employer Account button */
    background-color: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue);
}
.cta-action-box .cta-button.secondary:hover { background-color: var(--light-gray); transform: scale(1.03); }


/* --- 17. FAQ Page Styling --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
    background: none; border: none; width: 100%;
    text-align: left; padding: 1.5rem 1rem;
    font-size: 1.2rem; font-weight: 600; color: var(--primary-blue);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
body[dir="rtl"] .faq-question { text-align: right; }
.faq-icon { font-size: 1.5rem; font-weight: 300; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.faq-answer p { padding: 0 1rem 1.5rem 1rem; margin: 0; line-height: 1.7; }


/* --- 18. Legal Text Page Styling (Privacy & Terms) --- */
.legal-text-section { padding: 3rem; background: #fff; box-shadow: var(--box-shadow); border-radius: var(--border-radius); }
.legal-text-section h2, .legal-text-section h3 { color: var(--primary-blue); margin-top: 2.5rem; margin-bottom: 1rem; }
.legal-text-section p, .legal-text-section li { line-height: 1.8; color: var(--dark-text); margin-bottom: 1rem; }
.legal-text-section ul { padding-inline-start: 20px; }
.legal-text-section em { color: var(--muted-text); font-size: 0.9rem; }


/* --- 19. Error Page (404) Styling --- */
.error-page-section { text-align: center; padding: 6rem 0; }
.error-container h1 { font-size: 10rem; font-weight: 700; color: var(--primary-blue); margin: 0; line-height: 1; }
.error-container h2 { font-size: 2.5rem; color: var(--dark-text); margin: 1rem 0; }
.error-container p { font-size: 1.2rem; color: var(--muted-text); margin-bottom: 2.5rem; }


/* --- 20. Public Profile Page Styling --- */
.public-profile .profile-page-layout { /* Reuses dashboard layout styles */ }
.public-profile .profile-card { text-align: center; }
.public-profile .profile-picture-main {
    width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
    border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 1rem auto; display: block;
}
.public-profile .profile-license-number { /* Reuse from dashboard.css */
    font-family: 'Courier New', Courier, monospace; font-size: 0.9rem;
    color: var(--muted-text); background-color: #e9ecef;
    padding: 5px 10px; border-radius: 4px; display: inline-block; margin-top: 0.5rem;
}
.public-profile .profile-tagline { color: var(--muted-text); margin-bottom: 1.5rem; }
.public-profile .profile-details { padding: 2.5rem; }
.public-profile .bio-text, .public-profile .user-post-item p { line-height: 1.8; }
.public-profile .user-post-item { border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; }
.public-profile .user-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.public-profile .user-post-item h4 { margin: 0 0 0.5rem 0; color: var(--primary-blue); }

/* Public Profile Contact/Report Buttons */
.profile-card .cta-button.primary {
    display: block; width: 100%; box-sizing: border-box; margin: 0.75rem auto 0 auto;
}
.profile-report-link { margin-top: 15px; text-align: center; }
.profile-report-link button {
    font-size: 0.9rem; color: var(--muted-text); background: none; border: none;
    text-decoration: underline dotted; cursor: pointer; transition: color var(--transition-speed);
}
.profile-report-link button:hover { color: var(--status-rejected); }
.profile-meta-details ul { list-style: none; padding: 0; margin: 0; }
.profile-meta-details li { margin-bottom: 0.5rem; }


/* --- 21. Ad Banner & Ad Popup Styling --- */

/* Ad Banner (Bottom Sticky Bar) */
.ad-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background-color: var(--primary-blue); color: var(--light-text);
    padding: 20px 30px; box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Above chatbot, below modals */
    display: flex; align-items: center; justify-content: space-between;
    opacity: 0; transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}
.ad-banner.is-visible { opacity: 1; transform: translateY(0); }
.ad-content-wrapper { display: flex; align-items: center; gap: 20px; flex-grow: 1; }
.ad-text h4 { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: 700; }
.ad-text p { margin: 0; font-size: 0.95rem; opacity: 0.9; }
.ad-link.cta-button { flex-shrink: 0; margin-left: 20px; }
.ad-close-btn { background: none; border: none; color: var(--light-text); font-size: 2rem; font-weight: 300; line-height: 1; cursor: pointer; opacity: 0.7; transition: opacity 0.3s ease; padding: 0 15px; }
.ad-close-btn:hover { opacity: 1; }
/* Ad Media (image/video inside banner) */
.ad-media {
    position: relative; flex-shrink: 0;
    width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--secondary-yellow); background-color: var(--primary-blue);
    display: flex; align-items: center; justify-content: center; /* Center media inside circle */
}
.ad-media .ad-image, .ad-media .ad-video { width: 100%; height: 100%; object-fit: cover; }
/* Mute/Unmute button for video */
.ad-video-mute-btn {
    position: absolute; bottom: 8px; right: 8px;
    background-color: rgba(0, 0, 0, 0.5); border: none; border-radius: 50%;
    width: 30px; height: 30px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 3;
    transition: background-color 0.2s ease;
}
.ad-video-mute-btn:hover { background-color: rgba(0, 0, 0, 0.7); }
.ad-video-mute-btn svg { width: 18px; height: 18px; fill: #ffffff; }
/* Progress bar for video */
.ad-progress-bar-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); z-index: 2; }
.ad-progress-bar { height: 100%; background-color: var(--secondary-yellow); width: 0; transition: width 0.1s linear; }


/* Ad Popup (Modal) */
.ad-popup-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 37, 64, 0.8); backdrop-filter: blur(5px);
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.ad-popup-backdrop.is-visible { opacity: 1; visibility: visible; }
.ad-popup-window {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%; max-width: 600px;
    background: #fff; border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 2001; opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.ad-popup-window.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.ad-popup-close-btn {
    position: absolute; top: 10px; right: 10px;
    background: #e9ecef; border: none; width: 30px; height: 30px; border-radius: 50%;
    font-size: 1.5rem; color: var(--muted-text); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ad-popup-content { padding: 2.5rem; text-align: center; }
.ad-popup-content .ad-media { margin: 0 auto 1.5rem auto; width: 100%; max-height: 250px; border-radius: var(--border-radius); overflow: hidden; }
.ad-popup-content .ad-media video, .ad-popup-content .ad-media img { width: 100%; height: 100%; object-fit: cover; }
.ad-popup-content h3 { font-size: 1.8rem; margin: 0 0 10px 0; color: var(--primary-blue); }
.ad-popup-content p { color: var(--dark-text); margin: 0 0 1.5rem 0; }


/* --- 22. User Post & Video Player Styling (Consolidated from user_post.php snippet) --- */
.post-featured-media {
    margin-bottom: 2rem; background-color: #f0f2f5;
    border-radius: var(--border-radius); overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.post-video-player { width: 100%; height: auto; display: block; max-height: 500px; }
.post-featured-image { width: 100%; height: auto; display: block; }


/* --- 23. Public Share Button Styling --- */
.share-button {
    background: transparent; border: 1px solid var(--primary-blue);
    color: var(--primary-blue); padding: 10px 15px; border-radius: 50px;
    cursor: pointer; font-weight: bold;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s ease;
}
.share-button:hover { background-color: var(--primary-blue); color: #fff; }
.share-button svg { width: 18px; height: 18px; fill: currentColor; }


/* --- 24. Public Profile Page Report Button --- */
.profile-report-link button.cta-button.danger.small {
    background: none; border: none; color: var(--status-rejected); text-decoration: underline dotted;
    font-size: 0.9rem; padding: 0; margin: 0;
}
.profile-report-link button.cta-button.danger.small:hover { text-decoration: none; }


/* --- 25. Pricing Page Styling --- */
.pricing-section .section-subtitle { max-width: 600px; margin-left: auto; margin-right: auto; }
/* Monthly/Annual Toggle Switch */
.billing-cycle-toggle {
    display: inline-flex; background-color: var(--light-gray);
    border-radius: 50px; padding: 5px; margin-top: 2rem; margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}
.billing-cycle-toggle label {
    padding: 10px 25px; font-weight: 600; color: var(--muted-text);
    cursor: pointer; border-radius: 50px; transition: all 0.3s ease;
}
.billing-cycle-toggle input[type="radio"] { display: none; }
.billing-cycle-toggle input[type="radio"]:checked + label {
    background-color: var(--primary-blue); color: var(--light-text);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Pricing Grid & Cards */
.pricing-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; align-items: stretch; }
.plan-card {
    flex: 1; min-width: 420px; max-width: 320px;
    display: flex; flex-direction: column;
    border: 2px solid rgb(55, 55, 55); position: relative; overflow: hidden;
}
.plan-card .price-display {
    font-size: 2.5rem; font-weight: 700; color: var(--primary-blue); margin: 1rem 0;
}
.plan-card .price-display .billing-period {
    font-size: 1rem; color: var(--muted-text); font-weight: 400;
}
/* Hiding/showing prices based on toggle */
.plan-card .price-annual { display: none; }
.plan-card.show-annually .price-monthly { display: none; }
.plan-card.show-annually .price-annual { display: block; }
/* "Best Value" Highlight */
.plan-card.highlighted { border-color:green; transform: scale(1.05); }
.best-value-ribbon {
    position: absolute; top: 0; right: 0;
    background-color: green; color: var(--primary-blue);
    padding: 5px 15px; font-size: 0.8rem; font-weight: 700;
    transform: rotate(45deg) translate(25%, -25%); transform-origin: top left;
    width: 120px; text-align: center;
}
/* Feature List Styling */
.feature-list { list-style: none; padding: 0; text-align: left; margin: 1.5rem 0; font-size: 0.95rem; flex-grow: 1; }
.feature-list li { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.feature-list .icon-check { color: var(--status-active); }
.feature-list .icon-cross { color: var(--status-rejected); }
/* Button Styling */
.plan-card .cta-button { width: 57%; margin-top: auto; }
.plan-card .cta-button:disabled { background-color: var(--primary-blue); color: var(--light-text); cursor: default; opacity: 1; }
/* Payment options in pricing cards */
.payment-options { margin-bottom: 1.5rem; text-align: left; }
.payment-options label {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem;
    font-size: 0.95rem; color: var(--dark-text); cursor: pointer;
}
.payment-options input[type="radio"] { /* Custom radio styling if not using default */
    display: inline-block; width: 18px; height: 18px; margin: 0;
}


/* --- 26. Main Footer Styling --- */
.main-footer { background-color: var(--primary-blue); color: var(--light-text); padding-top: 4rem; }
.footer-grid-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.footer-column .footer-logo { height: 50px; margin-bottom: 1rem; }
.footer-column .footer-tagline { font-size: 0.9rem; color: #a8b2c0; line-height: 1.5; }
.footer-column h4 { font-size: 1.1rem; color: var(--secondary-yellow); margin-bottom: 1.5rem; margin-top: 0; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 0.8rem; }
.footer-column ul a { color: var(--light-text); text-decoration: none; transition: all var(--transition-speed); }
.footer-column ul a:hover { color: var(--secondary-yellow); padding-left: 5px; }
body[dir="rtl"] .footer-column ul a:hover { padding-left: 0; padding-right: 5px; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { display: inline-block; height: 30px; width: 30px; }
.social-links img { height: 100%; width: 100%; }
.footer-bottom-bar {
    text-align: center; padding: 1.5rem 2rem; margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem; color: #a8b2c0;
}


/* --- Keyframe Animations (General) --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDownNav { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


/* --- 27. Animated Image Reveal (for About Us page) --- */
.animated-image-container { position: relative; overflow: hidden; border-radius: var(--border-radius); }
.animated-image-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--secondary-yellow); transform-origin: bottom;
    transform: scaleY(0); transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); z-index: 1;
}
.image-to-reveal {
    display: block; width: 100%; border-radius: var(--border-radius);
    position: relative; z-index: 2; opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease; transition-delay: 0.2s;
}
.animated-image-container.is-visible::before { transform-origin: top; transform: scaleY(1); }
.animated-image-container.is-visible .image-to-reveal { opacity: 1; transform: translateY(0); }


/* =============================================================================
   Responsive Adjustments (Global overrides)
   ========================================================================== */
@media screen and (max-width: 991px) { /* Main mobile/tablet breakpoint */
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .navbar { padding: 0.5rem 1rem; }
    .nav-menu { gap: 15px; }
    .content-wrapper { padding: 3rem 1rem; }
    .section-title { font-size: 2rem; }
    .job-grid, .services-grid, .blog-grid { grid-template-columns: 1fr; }
    .job-details-layout, .single-post-layout, .about-intro-content, .contact-layout { grid-template-columns: 1fr; }
    .job-details-main, .post-content, .about-intro-section .about-text, .contact-form-container, .contact-info-container, .legal-text-section { padding: 2rem; }
    .section-title-left { text-align: center; }
    body[dir="rtl"] .section-title-left { text-align: center; }
    .section-title-left::after { margin: 8px auto 0; }
    .filter-form { grid-template-columns: 1fr; }
    .filter-input-group .cta-button { width: 100%; }
    .cta-button { margin: 0 5px; } /* Adjust button spacing */

    /* Ad Banner Responsive */
    .ad-banner { padding: 15px; }
    .ad-content-wrapper { flex-direction: column; align-items: flex-start; gap: 15px; text-align: left; }
    body[dir="rtl"] .ad-content-wrapper { align-items: flex-end; text-align: right; }
    .ad-media { display: none; } /* Hide the media on small screens */
    .ad-link.cta-button { width: 100%; text-align: center; margin-left: 0; margin-top: 10px; }

    /* Ad Popup Responsive */
    .ad-popup-window { width: 95%; padding: 1.5rem; }
    .ad-popup-content h3 { font-size: 1.5rem; }

    /* Forms Responsive */
    .form-box { padding: 2rem; }

    /* Pricing Responsive */
    .pricing-grid { flex-direction: column; align-items: center; }
    .plan-card { max-width: 90%; }
}


/*================================================================
  Raqmasar Public Website Stylesheet
  ---
  Version: 1.0
  Description: A comprehensive, modern, and responsive stylesheet
               for the public-facing pages of the Raqmasar platform.
================================================================*/

/*----------------------------------------------------------------
  1. Global Resets, Variables & Typography
----------------------------------------------------------------*/
:root {
    --primary-blue: #0a2540;
    --accent-yellow: #ffc400;
    --light-gray-bg: #f6f9fc;
    --text-primary: #32325d;
    --text-secondary: #525f7f;
    --border-color: #e6ebf1;
    --white-color: #ffffff;
    --success-color: #28a745;
    --danger-color: #dc3545;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Cairo', sans-serif; /* For Arabic */
    
    --border-radius: 8px;
    --box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-gray-bg);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: var(--font-secondary);
}

h1, h2, h4, h5, h6 {
    font-family: var(--font-primary);
    color: white;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 {
    font-family: var(--font-secondary);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
a:hover {
    color: var(--accent-yellow);
}

#page-wrapper {
    min-height: calc(100vh - 70px); /* 70px is header height */
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.widget {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/*----------------------------------------------------------------
  2. Header & Navigation
----------------------------------------------------------------*/
.main-header {
    background: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
}

.nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: black;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width var(--transition-speed) ease;
}

.nav-menu li.active a,
.nav-menu a:hover {
    color: var(--primary-blue);
}
.nav-menu li.active a::after,
.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-button {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-align: center;
}
.login-btn {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}
.login-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white-color);
}
.signup-btn {
    background-color: var(--primary-blue);
    color: var(--white-color);
}
.signup-btn:hover {
    background-color: #000;
}
.dashboard-btn {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.header-right-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher a {
    font-weight: 600;
    color: var(--text-secondary);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
    width: 24px;
    height: 18px;
    position: relative;
}
.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
    position: absolute;
    left: 0;
    transition: all var(--transition-speed) ease;
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

/* Hamburger animation */
body.mobile-nav-active .hamburger-menu span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
body.mobile-nav-active .hamburger-menu span:nth-child(2) {
    opacity: 0;
}
body.mobile-nav-active .hamburger-menu span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/*----------------------------------------------------------------
  3. Mobile Navigation
----------------------------------------------------------------*/
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 280px;
    height: 80%;
    background: var(--primary-blue);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 999;
    transition: right var(--transition-speed) ease-in-out;
    padding: 80px 2rem 2rem;
    display: flex;
    flex-direction: column;
}
body[dir="rtl"] .mobile-nav-panel {
    right: auto;
    left: -300px;
    transition: left var(--transition-speed) ease-in-out;
}

.mobile-nav-panel nav { flex-grow: 2; }
.mobile-nav-panel ul { list-style: none; }
.mobile-nav-panel li { margin-bottom: 1.0rem; }
.mobile-nav-panel a { color: var(--white-color); font-size: 1.2rem; font-weight: 600; }

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 3rem;
}
.mobile-nav-actions .login-btn {
    background-color: var(--white-color);
    color: var(--primary-blue);
}
.mobile-nav-actions .signup-btn {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* State when mobile menu is open */
body.mobile-nav-active .mobile-nav-panel { right: 0; }
body[dir="rtl"].mobile-nav-active .mobile-nav-panel { left: 0; }
body.mobile-nav-active .mobile-nav-backdrop { display: block; }


.filter-bar-section { margin-top: -80px; position: relative; z-index: 10; }
.filter-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1rem; align-items: center; }
.filter-input-group input, .filter-input-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}



/* =================================
   Global Search Form Styles
==================================== */
.search-form {
    display: flex;
    align-items: center;
    background-color: #f0f2f5; /* Light grey background */
    border-radius: 20px;
    padding: 0 5px 0 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin: 0 15px;
}

.search-form:focus-within {
    background-color: #fff;
    border-color: var(--accent-color); /* Use your theme's accent color */
    box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.3); /* Example shadow */
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    width: 150px; /* Adjust width as needed */
    transition: width 0.3s ease;
}

.search-input:focus {
    width: 200px; /* Expand on focus */
}

/* For Arabic version */
html[dir="rtl"] .search-form {
    padding: 0 15px 0 5px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    color: var(--accent-color);
}

/* Responsive adjustments for the search form */
@media (max-width: 992px) {
    /* Hides the form on desktop-tablet transition, you can adjust this */
    .desktop-only .search-form {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Moves the search form into the main flow on mobile */
    .header-right-controls {
        flex-grow: 1; /* Allows search form to take space */
    }
    .search-form {
        flex-grow: 1;
        margin: 0 10px;
    }
    .search-input {
        width: 100%; /* Full width inside the form */
    }
    .search-input:focus {
        width: 100%;
    }
}