/* التنسيقات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    direction: rtl;
}
a.main-btn, a.btn, a.btn-contact, a.btn-details {
    text-decoration: none !important;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
a {
    text-decoration: none;
}
/* الشريط العلوي */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-left: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3e165a;
}

.user-actions a {
    margin-right: 15px;
    color: #3e165a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.user-actions a i {
    margin-left: 5px;
}

.user-actions a:hover {
    color: #5a2a7a;
}

.contact-btn {
    background: linear-gradient(135deg, #3e165a, #5a2a7a);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #4a1a6e, #6b348f);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* شريط التنقل الرئيسي */
.main-nav {
    background: linear-gradient(135deg, #3e165a, #5a2a7a);
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 15px;
    transition: all 0.3s;
    font-weight: 500;
}

.main-nav a i {
    margin-left: 8px;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

.main-nav a.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* نموذج البحث */
.search-box {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-box h2 {
    color: #3e165a;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.search-box h2 i {
    margin-left: 10px;
}

.search-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.search-tabs button {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Cairo';
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    transition: all 0.3s;
}

.search-tabs button.active {
    color: #3e165a;
    border-bottom: 3px solid #3e165a;
    font-weight: 600;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group label i {
    margin-left: 8px;
    color: #3e165a;
}

.form-group select, 
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Cairo';
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group select:focus, 
.form-group input:focus {
    border-color: #3e165a;
    box-shadow: 0 0 0 3px rgba(62, 22, 90, 0.1);
    outline: none;
}

.search-btn {
    background: linear-gradient(135deg, #3e165a, #5a2a7a);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: 'Cairo';
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn i {
    margin-left: 8px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #4a1a6e, #6b348f);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* السلايدر */
.main-slider {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.slider-item {
    position: relative;
    height: 350px;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* الأشرطة الزاوية */
.angle-strip {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255,255,255,0.5);
    z-index: 2;
}

.angle-strip.left-top {
    top: 20px;
    right: 20px;
    border-bottom: none;
    border-left: none;
}

.angle-strip.right-bottom {
    bottom: 20px;
    left: 20px;
    border-top: none;
    border-right: none;
}

.slider-caption {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    background: rgba(62, 22, 90, 0.8);
    color: white;
    padding: 25px;
    max-width: 500px;
    border-radius: 5px;
}

.slider-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.slider-caption p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.slider-btn {
    display: inline-block;
    background-color: white;
    color: #3e165a;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.slider-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* تعديلات السلايدر */
.slick-dots {
    bottom: 20px;
}

.slick-dots li button:before {
    color: white;
    opacity: 0.5;
    font-size: 10px;
}

.slick-dots li.slick-active button:before {
    color: white;
    opacity: 1;
}

.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    z-index: 3;
}

.slick-prev {
    right: 20px;
    left: auto;
}

.slick-next {
    left: 20px;
    right: auto;
}

.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    color: white;
    opacity: 0.7;
    transition: all 0.3s;
}

.slick-prev:before {
    content: '\f054';
}

.slick-next:before {
    content: '\f053';
}

.slick-prev:hover:before, .slick-next:hover:before {
    opacity: 1;
    color: white;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    
    .user-actions {
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .slider-item {
        height: 250px;
    }
    
    .slider-caption {
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 15px;
        text-align: center;
    }
    
    .slider-caption h3 {
        font-size: 1.3rem;
    }
    
    .slider-caption p {
        font-size: 0.9rem;
    }
    
    .angle-strip {
        width: 70px;
        height: 70px;
    }
	
}
/* صفحة الشركات المميزة */
.page-header {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(62, 22, 90, 0.1), transparent);
    border-radius: 10px;
}

.page-header h1 {
    color: #3e165a;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-header h1 i {
    margin-left: 10px;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.featured-companies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.company-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.company-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.rating {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    color: #3e165a;
    display: flex;
    align-items: center;
}

.rating i {
    color: #ffc107;
    margin-right: 5px;
}

.company-info {
    padding: 20px;
}

.company-info h3 {
    color: #3e165a;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta span {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.meta i {
    margin-left: 5px;
    color: #3e165a;
}

.description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn-details, .btn-contact {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.btn-details {
    background: #3e165a;
    color: white;
}

.btn-contact {
    background: #f0f0f0;
    color: #3e165a;
}

.btn-details:hover {
    background: #5a2a7a;
}

.btn-contact:hover {
    background: #e0e0e0;
}

.btn-details i, .btn-contact i {
    margin-left: 5px;
}

.more-container {
    text-align: center;
    margin: 50px 0;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3e165a, #5a2a7a);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(62, 22, 90, 0.3);
}

.btn-more:hover {
    background: linear-gradient(135deg, #5a2a7a, #3e165a);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(62, 22, 90, 0.4);
}

.btn-more i {
    margin-right: 8px;
}

/* تأثيرات حسب التصنيف */
.company-card.medical .rating {
    color: #e63946;
}

.company-card.construction .rating {
    color: #1d3557;
}

.company-card.tech .rating {
    color: #457b9d;
}

.company-card.education .rating {
    color: #2a9d8f;
}

.company-card.food .rating {
    color: #e9c46a;
}

.company-card.logistics .rating {
    color: #f4a261;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .featured-companies {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .company-image {
        height: 180px;
    }
    
    .btn-more {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
/* سلايدر الشركات المميزة */
.featured-slider {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.featured-slider::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3e165a, #5a2a7a);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.slider-header h2 {
    color: #3e165a;
    font-size: 1.6rem;
    margin: 0;
}

.slider-header h2 i {
    margin-left: 10px;
    color: #ffc107;
}

.slider-nav button {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    color: #3e165a;
    font-size: 1rem;
}

.slider-nav button:hover {
    background: #3e165a;
    color: white;
}

.companies-slider {
    margin: 0 -15px;
}

.slide-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.slide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.slide-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slide-content {
    padding: 20px;
    position: relative;
}

.company-rating {
    position: absolute;
    top: -20px;
    left: 20px;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-weight: bold;
    color: #3e165a;
    display: flex;
    align-items: center;
}

.company-rating i {
    color: #ffc107;
    margin-right: 5px;
}

.slide-content h3 {
    color: #3e165a;
    margin: 15px 0 10px;
    font-size: 1.3rem;
}

.company-category {
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.company-category i {
    margin-left: 8px;
    color: #3e165a;
}

.slide-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #3e165a, #5a2a7a);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.slide-btn:hover {
    background: linear-gradient(135deg, #5a2a7a, #3e165a);
    transform: translateY(-2px);
}

/* نقاط التبديل للسلايدر */
.slick-dots {
    bottom: -30px;
}

.slick-dots li button:before {
    color: #3e165a;
    opacity: 0.3;
    font-size: 10px;
}

.slick-dots li.slick-active button:before {
    color: #3e165a;
    opacity: 1;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .featured-slider {
        padding: 20px;
    }
    
    .slider-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider-nav {
        margin-top: 15px;
    }
    
    .slide-img {
        height: 150px;
    }
	/* أنماط السلايدر المميز */
.featured-slider {
    margin: 40px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(62, 22, 90, 0.1);
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #3e165a, #5a2a7a);
    color: white;
}

.slider-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.slider-header h2 i {
    margin-left: 10px;
    color: #ffc107;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item.featured {
    position: relative;
    min-width: 100%;
    height: 400px;
}

.slider-item.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ribbon {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e63946;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
}

.slider-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(62, 22, 90, 0.9), transparent);
    padding: 30px;
    color: white;
}

.slider-badge {
    position: absolute;
    top: -20px;
    left: 30px;
    background: #ffc107;
    color: #3e165a;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.slider-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.slider-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.slider-btn {
    display: inline-block;
    padding: 10px 25px;
    background: white;
    color: #3e165a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider-progress {
    height: 5px;
    background: #f0f0f0;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3e165a, #5a2a7a);
    width: 0%;
    transition: width 0.3s ease;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .slider-item.featured {
        height: 350px;
    }
    
    .slider-content {
        padding: 20px;
    }
    
    .slider-content h3 {
        font-size: 1.3rem;
    }
	.offer-card2 {
    width: 350px;
    max-width: 98vw;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #e6e6e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.18s;
}
.offer-card2:hover {
    box-shadow: 0 8px 36px #c3aaf2a9;
}
.offer-img2 img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background: #fafafd;
    display: block;
}
.offer-body2 {
    padding: 18px 22px 16px 22px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.offer-body2 h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1a0431;
    margin: 0 0 7px 0;
    text-align: right;
}
.offer-desc2 {
    color: #5a5a5a;
    font-size: 15px;
    margin-bottom: 12px;
    min-height: 36px;
    max-height: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.offer-price2 {
    font-size: 17px;
    margin-bottom: 7px;
    display: flex;
    gap: 13px;
    align-items: center;
}
.offer-price2 .old {
    color: #bbb;
    text-decoration: line-through;
}
.offer-price2 .new {
    color: #38b000;
    font-weight: bold;
}
.offer-date2 {
    color: #7c3aed;
    font-size: 15px;
    margin-bottom: 7px;
}
.offer-status2 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}
.offer-status2 .approved { color: #27ae60; font-weight: bold; }
.offer-status2 .pending  { color: #e67e22; font-weight: bold; }
.offer-status2 .rejected { color: #e74c3c; font-weight: bold; }
.offer-actions2 {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}
.main-btn {
    background: #7c3aed;
    color: #fff !important;
    padding: 5px 17px;
    border-radius: 7px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.16s;
    cursor: pointer;
}
.main-btn.danger { background: #e74c3c; }
.main-btn:hover { filter: brightness(0.93);}
@media (max-width: 600px) {
    .offer-card2 { width: 98vw; }
    .offer-body2 { padding: 13px 6vw 14px 6vw; }
}

	a,
a:visited,
a:active,
a:hover {
    text-decoration: none !important;
}
.featured-companies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.company-card2 {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.company-card2 .cover-image {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.company-card2 .status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #6d2490;
  color: #fff;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
}

.company-card2 .logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  position: absolute;
  top: -28px;
  right: 16px;
  background: #fff;
}

.company-card2 .logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card2 .company-header {
  position: relative;
  padding: 40px 16px 0 16px;
}

.company-card2 .company-name-badge {
  font-size: 16px;
  font-weight: bold;
  color: #6d2490;
  margin-bottom: 6px;
}

.company-card2 .meta {
  font-size: 13px;
  color: #777;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.company-card2 .description {
  padding: 0 16px;
  font-size: 14px;
  color: #555;
  margin-top: 12px;
  flex-grow: 1;
}

.company-card2 .actions {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 16px;
}

.company-card2 .btn-details,
.company-card2 .btn-contact {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.company-card2 .btn-details {
  background-color: #6d2490;
  color: #fff;
}

.company-card2 .btn-contact {
  background-color: #eee;
  color: #333;
}

}
