﻿/* أسلوب تصميم Hero */
.hero {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
    padding-top: 50px; /* رفع المحتوى للأعلى */
    margin-top: -20px;
    color: white; /* لون النص */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* ظل النص */
    color: white; /* لون النص */
    background-color: rgba(0, 0, 0, 0.5); /* خلفية شبه شفافة */
    padding: 5px; /* مسافة داخلية */
    border-radius: 5px; /* زوايا مدورة */
}
.text-overlay {
    
}

/* خلفية متحركة */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.webp') center/cover no-repeat;
    background-size: cover;
    opacity: 0.8;
    filter: blur(3px);
    animation: backgroundAnim 10s infinite alternate;
    filter: brightness(0.5); /* تعتيم الصورة */
}

@keyframes backgroundAnim {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* محتوى Hero */
.content {
    position: relative;
    z-index: 1;
    margin-top: -100px; /* رفع المحتوى للأعلى */
}

/* عنوان Hero */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight:700;
    
}

/* الوصف */
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* مربع البحث */
.search-box {
    display: flex;
    align-items: center;
    border-radius: 30px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto; /* لمحاذاة مربع البحث للمنتصف */
}

    .search-box input {
        padding: 10px 20px;
        border: none;
        outline: none;
        width: 300px;
        font-size: 1rem;
    }

    .search-box button {
        padding: 10px 30px; /* تحسين حجم الزر */
        background-color: #4285f4;
        color: #fff;
        border: none;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .search-box button:hover {
            background-color: #3367d6;
        }
        .container{
            margin:0;
            padding:0;
        }

/* تصميم بطاقات الفئات */
/* تصميم بطاقات الفئات */
.category-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 10px;
    transition: transform 0.3s;
    background-size: cover;
    background-position: center;
    height: 200px; /* يمكنك تعديل الارتفاع حسب الحاجة */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px; /* لجعل الزوايا مدورة */
}

    .category-card img {
        width: 100%;
        height: 200px; /* ارتفاع ثابت لجميع الصور */
        object-fit: cover; /* تأكد من عدم تشويه الصورة */
    }

    .category-card:hover {
        transform: scale(1.05);
    }

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px 0;
    text-decoration: none; /* إزالة خط تحت الرابط */
}
.CategorySection {
    padding-right: 15px;
    padding-left: 15px;
  /*  margin-right: auto;
    margin-left: auto;*/
}

@media (min-width: 768px) {
    .CategorySection {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .CategorySection {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .CategorySection {
        width: 1170px;
    }
}
/* زر إنشاء إعلان */
.create-ad-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #28a745, #218838);
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.badge-own {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #193778; /* لون أخضر */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.badge-benefited {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #28a745; /* لون أخضر */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.ad-card .badge {
    margin-left: 5px; /* إضافة مسافة صغيرة بين الأيقونات */
    font-size: 1.8rem; /* تكبير حجم الأيقونات إذا لزم */
}

.ad-card .position-absolute {
    z-index: 10; /* ضمان أن الأيقونات فوق أي محتوى آخر */
}
.create-ad-btn:hover {
    background-color: #218838; /* أخضر داكن */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* تأثير ظل */
    transform: scale(1.05); /* تكبير خفيف */
    color: #fff;
}

/* استجابة زر إنشاء إعلان */
@media (max-width: 768px) {
    .create-ad-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
@media (max-width: 768px) {
    .btn-custom {
        font-size: 1rem;
        padding: 10px 20px;
    }