/* ==========================================================================
   ALJANIA NEWS & BLOG WIDGET CSS (ELEMENTOR PREVIEW & FRONTEND)
   ========================================================================== */

.aljania-news-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* SECTION HEADER */
.aljania-news-header {
    margin-bottom: 1.75rem;
}

.aljania-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fff7ed;
    color: #1b5e20;
    border: 1px solid #ffedd5;
    margin-bottom: 0.5rem;
}

.aljania-news-main-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

/* MODEL 1 & GENERAL CARDS */
.aljania-news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.aljania-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(230, 92, 0, 0.12) !important;
    border-color: #ffedd5;
}

.aljania-news-img-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.aljania-news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aljania-news-card:hover .aljania-news-img-wrap img {
    transform: scale(1.08);
}

.aljania-news-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(230, 92, 0, 0.92);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.aljania-news-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.aljania-news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.aljania-news-meta i {
    color: #1b5e20;
}

.aljania-news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    transition: color 0.2s ease;
}

.aljania-news-card:hover .aljania-news-title {
    color: #1b5e20;
}

.aljania-news-excerpt {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aljania-news-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
    white-space: nowrap;
    align-self: flex-start;
}

.aljania-news-btn-brand {
    background-color: #1b5e20 !important;
    color: #ffffff !important;
    border: 2px solid #1b5e20 !important;
    box-shadow: 0 4px 12px rgba(230, 92, 0, 0.25);
    transition: all 0.25s ease !important;
}

.aljania-news-btn-brand:hover,
.aljania-news-btn-brand:focus,
.aljania-news-btn-brand:active,
a.aljania-news-btn-brand:hover,
.aljania-news-wrapper .aljania-news-btn-brand:hover {
    background-color: #cc5200 !important;
    color: #ffffff !important;
    border-color: #cc5200 !important;
    box-shadow: 0 6px 16px rgba(230, 92, 0, 0.35);
    transform: translateY(-2px);
}

.aljania-news-btn-outline {
    border: 2px solid #1b5e20 !important;
    color: #1b5e20 !important;
    background-color: transparent !important;
    transition: all 0.25s ease !important;
}

.aljania-news-btn-outline:hover,
.aljania-news-btn-outline:focus,
.aljania-news-btn-outline:active,
a.aljania-news-btn-outline:hover,
div .aljania-news-btn-outline:hover,
.aljania-news-wrapper .aljania-news-btn-outline:hover {
    background-color: #1b5e20 !important;
    color: #ffffff !important;
    border-color: #1b5e20 !important;
}

/* MODEL 2: MAGAZINE (FEATURED LEAD + SIDE LIST) */
.aljania-news-magazine {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .aljania-news-magazine {
        grid-template-columns: 1fr;
    }
}

.aljania-news-lead-card {
    height: 100%;
}

.aljania-news-lead-card .aljania-news-img-wrap {
    height: 250px;
    aspect-ratio: 16 / 9;
}

.aljania-news-lead-card .aljania-news-title {
    font-size: 1.35rem;
}

.aljania-news-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.aljania-news-side-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    text-decoration: none;
}

.aljania-news-side-item:hover {
    border-color: #ffedd5;
    background: #fff7ed;
    transform: translateX(4px);
}

.aljania-news-side-img {
    width: 110px;
    height: 82px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.aljania-news-side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aljania-news-side-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 4px;
}

.aljania-news-side-item:hover .aljania-news-side-title {
    color: #1b5e20;
}

/* MODEL 3: CAROUSEL SLIDER */
.aljania-news-carousel-container {
    position: relative;
    padding-bottom: 40px;
}

.aljania-news-carousel-container .swiper-pagination-bullet-active {
    background: #1b5e20 !important;
    width: 24px !important;
    border-radius: 10px !important;
}

/* MODEL 4: GLASS HORIZONTAL LIST */
.aljania-news-glass-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.aljania-news-glass-item:hover {
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #1b5e20;
}

@media (max-width: 576px) {
    .aljania-news-glass-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .aljania-news-glass-item img {
        width: 100% !important;
        height: 180px !important;
    }
}
