/**
 * Algeria Press Integration Core — أنماط الأقسام المدمجة المفعلة.
 * تُحمَّل فقط على الصفحة الرئيسية وعند تفعيل قسم مدمج واحد على الأقل.
 * تستخدم متغيرات تصميم القالب مع قيم بديلة آمنة.
 */

/* 1) شريط الإعلان */
.apic-announce {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0.9rem 1.25rem;
        border-radius: 12px;
        margin: 1.25rem 0 0;
        color: #fff;
}

.apic-announce__text {
        margin: 0;
        font-weight: 600;
        line-height: 1.7;
}

.apic-announce__btn {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 1rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
        font-weight: 700;
        text-decoration: none;
        transition: background 0.2s ease;
}

.apic-announce__btn:hover,
.apic-announce__btn:focus {
        background: rgba(255, 255, 255, 0.32);
        color: #fff;
}

.apic-announce--green {
        background: var(--ap-green, #006233);
}

.apic-announce--red {
        background: var(--ap-red, #d21034);
}

.apic-announce--gold {
        background: var(--ap-gold, #c9a227);
        color: #1d1607;
}

.apic-announce--gold .apic-announce__btn {
        background: rgba(0, 0, 0, 0.16);
        color: #1d1607;
}

.apic-announce--dark {
        background: #101816;
        border: 1px solid rgba(255, 255, 255, 0.14);
}

/* 2) التصنيف المختار */
.apic-spotlight {
        margin-top: 2rem;
}

.apic-spotlight__more {
        font-weight: 700;
        color: var(--ap-green, #006233);
        text-decoration: none;
}

.apic-spotlight__more:hover,
.apic-spotlight__more:focus {
        text-decoration: underline;
        color: var(--ap-green, #006233);
}

.apic-spotlight__item h3 {
        margin: 0;
        font-size: 1.05rem;
}

.apic-spotlight__item h3 a {
        text-decoration: none;
}

/* 3) وحدة الفيديو */
.apic-video {
        margin-top: 2rem;
}

.apic-video__frame {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        border-radius: 12px;
        background: #101816;
}

.apic-video__frame iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
}

/* حاوية النقاط المثبتة عبر do_action */
.apic-slot {
        margin-top: 1.5rem;
}

/* 4) أنماط قائمة بذاتها لقالب الأخبار Pro (أقسام الباني المحقونة) */
.hb-sec .ap-container,
.hb-sec--apic_announcement .apic-announce,
.hb-sec--apic_spotlight .ap-section,
.hb-sec--apic_video .ap-section {
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 1rem;
}

.hb-sec--apic_announcement {
        margin-top: 1.25rem;
}

.hb-sec--apic_spotlight,
.hb-sec--apic_video {
        margin-top: 2rem;
}

.hb-sec .ap-section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1rem;
}

.hb-sec .ap-section__title {
        margin: 0;
        font-size: 1.35rem;
        color: var(--akhbar-heading, #0e2a47);
        border-inline-start: 4px solid var(--akhbar-accent, #c9a227);
        padding-inline-start: 0.6rem;
}

.hb-sec .ap-grid {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.hb-sec .apic-spotlight__more {
        color: var(--akhbar-primary, #0e2a47);
        font-weight: 700;
        text-decoration: none;
}

.hb-sec .apic-spotlight__more:hover,
.hb-sec .apic-spotlight__more:focus {
        color: var(--akhbar-accent, #c9a227);
}

.hb-sec .apic-spotlight__item {
        background: var(--akhbar-card, #fff);
        border: 1px solid var(--akhbar-border, #e4e9ef);
        border-radius: var(--akhbar-radius, 10px);
        padding: 0.9rem 1rem;
}

.hb-sec .apic-spotlight__item h3 a {
        color: var(--akhbar-heading, #0e2a47);
}

/* شبكة أقسام مركز التحكم تحتاج عمودين عند وجود مدير الباني */
.apic-builder-table code.apic-muted {
        margin-inline-start: 0.5rem;
}
