/* Embassy Media Widget v3 */
.emw-wrap {
    background: #0D1B2A;
    padding: 52px 24px;
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', Tahoma, Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.emw-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C0392B, #C9952A, #C0392B);
}

/* Header */
.emw-header {
    text-align: center;
    margin-bottom: 36px;
}

.emw-eyebrow {
    display: inline-block;
    background: rgba(201,149,42,.12);
    border: 1px solid rgba(201,149,42,.3);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 12px;
    color: #E8B84B;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.emw-title {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.emw-title span { color: #C9952A; }

/* Grid - two equal columns */
.emw-grid {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 760px) {
    .emw-grid { grid-template-columns: 1fr; }
    .emw-wrap { padding: 36px 14px; }
}

/* Card */
.emw-card {
    background: #1A2E42;
    border-radius: 14px;
    border: 1px solid rgba(201,149,42,.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}

.emw-card:hover {
    border-color: rgba(201,149,42,.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,.4);
}

/* Card Head */
.emw-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.emw-icon {
    width: 40px; height: 40px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.emw-icon-red { background: rgba(24,119,242,.2); }
.emw-icon-gold { background: rgba(201,149,42,.2); }

.emw-card-title { font-size: 14px; font-weight: 700; color: #fff; }
.emw-card-sub   { font-size: 11px; color: #8A9AAA; margin-top: 1px; }

/* Card Media — fixed height, equal for both cards */
.emw-card-media {
    flex: 1;
    min-height: 220px;
    max-height: 320px;
    position: relative;
    background: #000;
    overflow: hidden;
}

/* Video iframe fills the media box */
.emw-iframe-wrap {
    position: absolute;
    inset: 0;
}

.emw-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* News image fills the media box */
.emw-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.emw-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.emw-card:hover .emw-news-img {
    transform: scale(1.04);
}

/* No media placeholder */
.emw-no-media {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8A9AAA;
    font-size: 13px;
    text-align: center;
    gap: 8px;
}

.emw-no-media span { font-size: 38px; }
.emw-no-media a    { color: #C9952A; }

/* News title area */
.emw-news-meta {
    padding: 12px 20px 10px;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.emw-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #C9952A;
    background: rgba(201,149,42,.12);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 6px;
    letter-spacing: .5px;
}

.emw-news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    color: #E8E0D0 !important;
    text-decoration: none !important;
    transition: color .2s;
}

.emw-news-title:hover { color: #E8B84B !important; }

/* Card Footer */
.emw-card-foot {
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

/* Buttons */
.emw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none !important;
    transition: all .2s;
    cursor: pointer;
    box-sizing: border-box;
}

.emw-btn-red {
    background: #1877F2;
    color: #fff !important;
}
.emw-btn-red:hover {
    background: #0d65d9;
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(24,119,242,.4);
    color: #fff !important;
}

.emw-btn-gold {
    background: transparent;
    color: #E8B84B !important;
    border: 1px solid rgba(201,149,42,.4);
}
.emw-btn-gold:hover {
    background: rgba(201,149,42,.12);
    border-color: #C9952A;
    color: #C9952A !important;
    transform: translateY(-1px);
}

/* Single shortcode mode */
.emw-single .emw-grid { grid-template-columns: 1fr; max-width: 500px; }

.emw-icon-red { background: rgba(255,0,0,.15); }
.emw-btn-red  { background: #FF0000; color: #fff !important; }
.emw-btn-red:hover { background: #cc0000; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(255,0,0,.35); color: #fff !important; }
