/* --- Daleel Single Page Template --- */
.daleel-single-wrapper {
    background: #fdfdfd;
    padding: 60px 0;
    color: #1f1f1f;
}

.daleel-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    /* Right Content | Left Sidebar */
    gap: 40px;
}

/* Header */
.daleel-single-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.daleel-single-header h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    color: #000;
}

.daleel-badge {
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.daleel-location {
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.1rem;
}

/* Sections */
.daleel-section,
.daleel-body-text,
.daleel-map-section {
    margin-bottom: 40px;
}

.daleel-main-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #000;
    padding-left: 10px;
}

/* RTL note below */
.daleel-desc {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
    white-space: pre-line;
}

/* Contact Card (Sticky) */
.daleel-contact-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 16px;
    position: sticky;
    top: 40px;
    /* Sticks when scrolling */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.daleel-logo-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.daleel-single-logo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.daleel-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 12px;
    transition: 0.2s;
}

.btn-call {
    background: #000;
    color: #fff;
}

.btn-call:hover {
    background: #333;
    color: #fff;
}

.btn-wa {
    background: #25D366;
    color: #fff;
}

.btn-wa:hover {
    background: #1ebc57;
    color: #fff;
}

.daleel-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    text-decoration: none;
    padding: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.daleel-social-link:hover {
    color: #000;
}

/* Map */
.daleel-map-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.daleel-map-btn {
    font-size: 0.9rem;
    color: #0073aa;
    text-decoration: underline;
}

/* RTL Adjustments */
.rtl-mode .daleel-main-content h3 {
    border-left: none;
    border-right: 4px solid #000;
    padding-left: 0;
    padding-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .daleel-container {
        grid-template-columns: 1fr;
    }

    .daleel-contact-card {
        position: static;
        margin-bottom: 40px;
    }
}


/* Increase Icon Size in Action Buttons */
.daleel-action-btn i {
    font-size: 1.5rem;
    /* Adjust this number (e.g. 1.8rem for even bigger) */
    line-height: 1;
    /* Keeps the button height neat */
}

/* Optional: Increase the social icons below too */
.daleel-social-link i {
    font-size: 1.3rem;
}




/* --- Daleel Archive Page --- */
.daleel-archive-wrapper {
    background: #f8f9fa;
    padding: 50px 0;

    /* FIX: Force Right-to-Left Direction so grid starts from Right */
    direction: rtl;
}

/* Header */
.daleel-archive-header {
    /* FIX: Ensure title is aligned to the right */
    text-align: right;
    margin-bottom: 50px;
}

.daleel-archive-header h1 {
    font-size: 2.2rem;
    color: #000;
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Grid System */
.daleel-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Card Design */
.daleel-card-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.daleel-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #000;
}

.daleel-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Card Elements */
.daleel-cat-badge {
    align-self: flex-start;
    background: #f0f4f9;
    color: #555;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.daleel-card-title {
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.daleel-card-title a {
    text-decoration: none;
    color: #000;
    transition: color 0.2s;
}

.daleel-card-title a:hover {
    color: #444;
}

.daleel-card-meta p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.daleel-card-meta i {
    color: #888;
    font-size: 1.1rem;
}

/* View Button */
.daleel-view-btn {
    margin-top: auto;
    /* Pushes button to bottom */
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.daleel-view-btn:hover {
    gap: 10px;
    /* Slide arrow effect */
}

/* Pagination */
.daleel-pagination {
    margin-top: 50px;
    text-align: center;
}

.daleel-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    margin: 0 3px;
    text-decoration: none;
    color: #000;
    border-radius: 4px;
    transition: 0.2s;
}

.daleel-pagination .current,
.daleel-pagination .page-numbers:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}






/* FIX: Force Archive Layout to Stack Vertically */
.daleel-archive-wrapper .daleel-container {
    display: block;
    /* Disable Grid/Flex here so items stack */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure Header takes full width */
.daleel-archive-header {
    width: 100%;
    text-align: right;
    /* Or center if you prefer */
    margin-bottom: 40px;
}

/* Ensure Grid takes full width */
.daleel-archive-grid {
    width: 100%;
    /* Keep the grid display for the cards themselves */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}







/* --- Filter Bar --- */
.daleel-header-inner {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.daleel-filter-bar {
    background: #fff;
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: inline-block;
    width: 100%;
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-group input,
.filter-group select {
    border: none;
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.filter-group input {
    flex-grow: 1;
}

/* Search takes available space */
.filter-group select {
    width: 200px;
    cursor: pointer;
}

.filter-group button {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.filter-group button:hover {
    background: #333;
}

/* --- Tags (Archive Card) --- */
.daleel-card-tags {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.daleel-tag {
    font-size: 0.75rem;
    color: #0073aa;
    background: #e7f4fb;
    padding: 2px 8px;
    border-radius: 4px;
}

/* --- Tags (Single Page) --- */
.daleel-single-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.daleel-tag-pill {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.daleel-tag-pill:hover {
    border-color: #000;
    color: #000;
    background: #fdfdfd;
}

/* Responsive Filters */
@media (max-width: 600px) {
    .filter-group {
        flex-direction: column;
    }

    .filter-group select,
    .filter-group button {
        width: 100%;
    }
}








/* --- Archive Card Tags --- */
.daleel-card-tags {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.daleel-tag {
    font-size: 0.75rem;
    color: #353535;
    background: #e2e2e2;
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    /* Remove underline */
    transition: 0.2s;
    border: 1px solid transparent;
}

.daleel-tag:hover {
    background: #8d8d8d;
    color: #fff;
    border-color: #535353;
}

/* --- Single Page Tags --- */
.daleel-single-tags {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.daleel-tag-pill {
    background: #fff;
    border: 1px solid #dcdcdc;
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.daleel-tag-pill i {
    color: #bbb;
    /* Subtle hash icon color */
    font-size: 1rem;
}

.daleel-tag-pill:hover {
    border-color: #000;
    color: #000;
    background: #f8f9fa;
    transform: translateY(-2px);
    /* Slight lift effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.daleel-tag-pill:hover i {
    color: #000;
}




/* --- Related Companies Section --- */
.daleel-related-section {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.daleel-related-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #000;
    position: relative;
    display: inline-block;
}

/* Optional: Add a small underline to the title */
.daleel-related-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #0073aa;
    margin-top: 10px;
    border-radius: 2px;
}







/* --- Featured Company Styling --- */

/* 1. Gold Border & Lift Effect */
.daleel-card-item.featured-card {
    border: 2px solid #ffc107;
    /* Gold border */
    background: #fffffc;
    /* Very light warm background */
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.15);
    /* Golden Glow */
    transform: translateY(-3px);
    /* Make it stand out slightly */
    position: relative;
    /* Required for badge positioning */
}

/* 2. The "Featured" Badge */
.daleel-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    /* In Arabic (RTL), 'left' puts it in the top-left corner */
    background: #ffc107;
    color: #000;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 3. Fix: Ensure Badge icon is yellow/white if needed, or keep black */
.daleel-featured-badge i {
    font-size: 1rem;
    color: #000;
}