/* assets/style.css */

.annonce-container {
    width: 100%;
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
    /* Deep Red Gradient */
    color: white;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
    overflow: hidden;
    direction: rtl;
    /* Ensure RTL layout */
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.annonce-wrapper {
    display: flex;
    align-items: stretch;
    min-height: 120px;
}

.annonce-right {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.pulsing-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    animation: annoncePulse 2s infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.annonce-left {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.annonce-content {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

.annonce-content p {
    margin: 0;
    color: white;
    /* Ensure WP theme doesn't override text color */
}

.annonce-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.date-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Localized Pulse Animation to avoid conflict */
@keyframes annoncePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .annonce-wrapper {
        flex-direction: column;
    }

    .annonce-right {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 10px;
        min-height: auto;
    }

    .pulsing-text {
        font-size: 2rem;
    }

    .annonce-meta {
        flex-direction: column;
        gap: 5px;
    }
}