.text-maroon {
    color: #28a745 !important;
}

.ad-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.meta-info .date-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

.meta-info .date-badge i {
    margin-left: 6px;
    color: #28a745;
}

/* تنسيقات جديدة للتحكم في ارتفاع حاوية الإعلانات */
.ads-section .carousel-item {
    height: auto; /* إزالة الارتفاع الثابت */
}

.ad-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    background-color: #fff;
}

.ad-image-container {
    position: relative;
    overflow: hidden;
    height: 300px; /* تحديد ارتفاع ثابت للحاوية - يمكن تعديله حسب الحاجة */
}

.ad-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يضمن تغطية الصورة للمساحة بالكامل مع الحفاظ على النسبة */
    object-position: center; /* توسيط الصورة */
}

.ad-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    z-index: 1;
    width: 150px;
    background-color: #28a745 !important;
    text-align: center;
    padding: 5px 0;
}

.ad-ribbon span {
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.ad-content {
    padding: 20px;
    text-align: right;
}

.ad-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.ad-content p {
    color: #666;
    margin-bottom: 20px;
}

.ad-content .btn {
    display: inline-block;
    padding: 8px 18px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ad-content .btn:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
}

/* تنسيقات لأزرار التنقل */
.ads-section .carousel-control-prev,
.ads-section .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(40, 167, 69, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-section .carousel-control-prev {
    right: auto;
    left: 15px;
}

.ads-section .carousel-control-next {
    left: auto;
    right: 15px;
}

.ads-section .carousel-control-prev i,
.ads-section .carousel-control-next i {
    color: white;
    font-size: 1.2rem;
}

/* تنسيق المؤشرات */
.ads-section .carousel-indicators {
    bottom: -15px;
}

.ads-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
}

.ads-section .carousel-indicators button.active {
    background-color: #28a745;
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 768px) {
    .ad-image-container {
        height: 200px; /* ارتفاع أقل للشاشات الصغيرة */
    }
    
    .ad-content {
        padding: 15px;
    }
    
    .ad-content h3 {
        font-size: 1.2rem;
    }
}