/* ==========================================
   ROSHD AI BULLETIN - VISUAL REDESIGN
   Drupal 10 | Ruhi | RTL
========================================== */

.bulletin-container {
    --ai-blue: #0878F9;
    --ai-deep: #1747B5;
    --ai-purple: #8138D8;
    --ai-pink: #D83DBB;
    --ai-cyan: #18BFCB;
    --ai-orange: #FF9D27;
    --ai-coral: #F05268;
    --ai-green: #36B89B;
    --ai-cream: #FFFCF6;
    --ai-text: #26365A;

    
    direction: rtl;
    text-align: right;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
    color: var(--ai-text);
    overflow: hidden;
}

/* ==========================================
   SECTION TITLES
========================================== */

.bulletin-container .section-title {
    font-size: 1.65rem;
    font-weight: 900;
    color: #1747B5;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 0 0 12px;
    line-height: 1.8;
}

.bulletin-container .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    height: 4px;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        #FF9D27 0%,
        #E84BA7 40%,
        #0878F9 100%
    );
}

.bulletin-container .section-title i {
    color: #8138D8 !important;
    margin-left: 9px;
    filter: drop-shadow(0 3px 5px rgba(129,56,216,.25));
}

/* ==========================================
   EDITORIAL SECTION BACKGROUND
========================================== */

.bulletin-container > div:first-child {
    position: relative;
    padding: 32px 25px 38px;
    margin-bottom: 55px;
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 5% 5%,
            rgba(24,191,203,.15),
            transparent 28%
        ),
        radial-gradient(
            circle at 95% 90%,
            rgba(216,61,187,.12),
            transparent 30%
        ),
        linear-gradient(135deg,#F0F7FF,#F9F1FF 55%,#FFF8ED);
    border: 1px solid rgba(129,56,216,.12);
}

.bulletin-container > div:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    right: 8%;
    width: 90px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg,#18BFCB,#0878F9,#8138D8);
}

/* ==========================================
   SPEECH CARDS
========================================== */

.bulletin-container .speech-card {
    background: #FFFFFF;
    border: 1px solid rgba(129,56,216,.12);
    border-radius: 22px;
    padding: 28px;
    box-shadow:
        0 10px 30px rgba(39,83,171,.09),
        0 3px 8px rgba(129,56,216,.04);
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.bulletin-container .speech-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,#18BFCB,#0878F9,#8138D8);
}

.bulletin-container .speech-card::after {
    content: '✦';
    position: absolute;
    left: 15px;
    bottom: -35px;
    font-size: 130px;
    line-height: 1;
    color: rgba(129,56,216,.045);
    z-index: -1;
    pointer-events: none;
}

.bulletin-container .speech-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(8,120,249,.15),
        0 8px 20px rgba(129,56,216,.08);
    border-color: rgba(8,120,249,.3);
}

/* Different speech card identities */

.bulletin-container .speech-card:first-child {
    border-top: 5px solid #18BFCB;
}

.bulletin-container .speech-card:last-child {
    border-top: 5px solid #8138D8;
}

.bulletin-container .speech-card:first-child::before {
    background: linear-gradient(90deg,#18BFCB,#0878F9);
}

.bulletin-container .speech-card:last-child::before {
    background: linear-gradient(90deg,#D83DBB,#8138D8);
}

/* Speech avatars */

.bulletin-container .speech-card .rounded-full {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    background: linear-gradient(135deg,#D9F8F7,#C9E8FF) !important;
    border: 3px solid #18BFCB !important;
    box-shadow: 0 5px 15px rgba(24,191,203,.18);
}

.bulletin-container .speech-card:last-child .rounded-full {
    background: linear-gradient(135deg,#F6E1FF,#E4D5FF) !important;
    border-color: #B17AEF !important;
}

.bulletin-container .speech-card .rounded-full i {
    color: #0878F9 !important;
}

.bulletin-container .speech-card:last-child .rounded-full i {
    color: #8138D8 !important;
}

/* Speech typography */

.bulletin-container .speech-card h3 {
    color: #203D83 !important;
    font-size: 1.1rem;
    font-weight: 900;
}

.bulletin-container .speech-card p {
    line-height: 2.15;
}

.bulletin-container .speech-card p.text-blue-600 {
    color: #0878F9 !important;
    font-weight: 800;
}

.bulletin-container .speech-card p.text-purple-600 {
    color: #8138D8 !important;
    font-weight: 800;
}

.bulletin-container .speech-card p.text-gray-500 {
    color: #79859B !important;
}

.bulletin-container .speech-card p.text-gray-600 {
    color: #52617B !important;
}

.bulletin-container .speech-card .text-left {
    border-top: 1px dashed #DCDDF1;
    padding-top: 14px;
}

.bulletin-container .speech-card .text-left a {
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .25s ease;
}

.bulletin-container .speech-card .text-left a:hover {
    transform: translateX(-5px);
}

/* ==========================================
   ARTICLE SECTION
========================================== */

.bulletin-container > div:last-child {
    position: relative;
    padding: 32px 25px 38px;
    border-radius: 26px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(129,56,216,.09),
            transparent 25%
        ),
        radial-gradient(
            circle at 0% 100%,
            rgba(24,191,203,.10),
            transparent 25%
        ),
        #F5F4FF;
    border: 1px solid rgba(129,56,216,.10);
}

/* ==========================================
   ARTICLE CARDS
========================================== */

.bulletin-container .article-card {
    background: #FFFFFF;
    border: 1px solid #E8E5F5;
    border-radius: 20px;
    padding: 25px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 235px;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    box-shadow:
        0 6px 18px rgba(55,65,120,.07);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.bulletin-container .article-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg,#0878F9,#8138D8);
}

.bulletin-container .article-card::after {
    content: '';
    position: absolute;
    left: -28px;
    bottom: -45px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: rgba(129,56,216,.045);
    z-index: -1;
    transition: all .4s ease;
}

.bulletin-container .article-card:hover {
    transform: translateY(-9px);
    border-color: #B9A4F0;
    box-shadow:
        0 18px 35px rgba(74,75,160,.14),
        0 5px 12px rgba(8,120,249,.07);
}

.bulletin-container .article-card:hover::after {
    transform: scale(1.8);
    background: rgba(129,56,216,.08);
}

/* Individual article colors */

.bulletin-container .article-card:nth-child(6n+1)::before {
    background: linear-gradient(90deg,#0878F9,#18BFCB);
}

.bulletin-container .article-card:nth-child(6n+2)::before {
    background: linear-gradient(90deg,#8138D8,#D83DBB);
}

.bulletin-container .article-card:nth-child(6n+3)::before {
    background: linear-gradient(90deg,#16A889,#65CC8C);
}

.bulletin-container .article-card:nth-child(6n+4)::before {
    background: linear-gradient(90deg,#FF9D27,#F05268);
}

.bulletin-container .article-card:nth-child(6n+5)::before {
    background: linear-gradient(90deg,#F05268,#D83DBB);
}

.bulletin-container .article-card:nth-child(6n+6)::before {
    background: linear-gradient(90deg,#18BFCB,#0878F9);
}

/* Article category labels */

.bulletin-container .article-card span.inline-block {
    border-radius: 30px;
    padding: 6px 13px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(129,56,216,.08);
    box-shadow: 0 3px 8px rgba(50,60,120,.04);
}

/* Article titles */

.bulletin-container .article-card h3 {
    color: #263D76 !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 2;
    transition: color .25s ease;
}

.bulletin-container .article-card:hover h3 {
    color: #713BC2 !important;
}

/* Author */

.bulletin-container .article-card p {
    color: #768198 !important;
    font-size: 12px;
}

.bulletin-container .article-card p i {
    color: #8138D8 !important;
}

/* Article separator */

.bulletin-container .article-card .border-t {
    border-color: #EAE7F5 !important;
}

/* ==========================================
   PDF BUTTON
========================================== */

.bulletin-container .btn-pdf {
    background: linear-gradient(135deg,#FF596F,#E73556);
    color: #FFFFFF !important;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.2);

    box-shadow: 0 5px 12px rgba(231,53,86,.20);

    transition: all .3s ease;
}

.bulletin-container .btn-pdf:hover {
    background: linear-gradient(135deg,#E73556,#C91F45);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 9px 18px rgba(231,53,86,.28);
}

/* ==========================================
   PODCAST BUTTON
========================================== */

.bulletin-container .btn-podcast {
    background: linear-gradient(135deg,#9147E9,#642BC2);
    color: #FFFFFF !important;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow: 0 5px 12px rgba(129,56,216,.22);

    transition: all .3s ease;
}

.bulletin-container .btn-podcast:hover {
    background: linear-gradient(135deg,#7134D1,#4E1FA8);
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 9px 18px rgba(129,56,216,.3);
}

/* Button icons */

.bulletin-container .btn-pdf i,
.bulletin-container .btn-podcast i {
    font-size: 15px;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes aiFloat {
    0%,100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.bulletin-container .speech-card .rounded-full i {
    animation: aiFloat 3.5s ease-in-out infinite;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .bulletin-container {
        padding: 18px 12px 35px;
    }

    .bulletin-container > div:first-child,
    .bulletin-container > div:last-child {
        padding: 25px 15px;
        border-radius: 19px;
    }

    .bulletin-container .section-title {
        font-size: 1.35rem;
    }

    .bulletin-container .speech-card {
        padding: 22px 18px;
    }

    .bulletin-container .article-card {
        min-height: auto;
        padding: 23px 18px;
    }

    .bulletin-container .article-card h3 {
        font-size: 15px;
    }

    .bulletin-container .article-card .flex.gap-2 {
        gap: 8px;
    }

    .bulletin-container .btn-pdf,
    .bulletin-container .btn-podcast {
        flex: 1;
        padding: 10px 8px;
    }
}

@media (max-width: 420px) {

    .bulletin-container {
        padding: 12px 8px 25px;
    }

    .bulletin-container .section-title {
        font-size: 1.2rem;
    }

    .bulletin-container .speech-card {
        padding: 19px 15px;
    }

    .bulletin-container .speech-card .w-16 {
        width: 55px;
        height: 55px;
    }

    .bulletin-container .article-card {
        padding: 20px 15px;
    }

    .bulletin-container .btn-pdf,
    .bulletin-container .btn-podcast {
        font-size: 11px;
    }
}

/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {
    .bulletin-container *,
    .bulletin-container *::before,
    .bulletin-container *::after {
        animation: none !important;
        transition: none !important;
    }
}
/* ==========================================
   FIX 1: SPEECH CARDS - FULL WIDTH LAYOUT
========================================== */

.bulletin-container .speech-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
    min-width: 0;
}

/* ردیف مشخصات سخنران */
.bulletin-container .speech-card > .flex.items-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    gap: 15px !important;
    margin-bottom: 18px !important;
}

/* ستون عنوان، نام و سمت */
.bulletin-container .speech-card > .flex.items-center > div:last-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}

/* عنوان سخن */
.bulletin-container .speech-card h3 {
    width: 100%;
    margin-bottom: 5px !important;
    font-size: 19px !important;
    line-height: 1.8 !important;
}

/* نام سخنران */
.bulletin-container .speech-card > .flex.items-center p {
    width: 100%;
    margin: 2px 0 !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
}

/* متن خلاصه - تمام عرض کارت */
.bulletin-container .speech-card > p {
    display: block !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 2.25 !important;
    text-align: justify;
}

/* لینک مطالعه کامل */
.bulletin-container .speech-card > .text-left {
    display: flex !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin-top: 20px !important;
    padding-top: 15px !important;
    text-align: right !important;
}

.bulletin-container .speech-card > .text-left a {
    display: inline-flex !important;
    width: auto !important;
    padding: 9px 17px !important;
    border-radius: 9px;
    background: #EAF2FF;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #0878F9 !important;
}

.bulletin-container .speech-card:last-child > .text-left a {
    background: #F2E9FF;
    color: #8138D8 !important;
}

/* ==========================================
   FIX 2: ARTICLE TYPOGRAPHY
========================================== */

/* عنوان مقاله */
.bulletin-container .article-card h3 {
    font-size: 18px !important;
    line-height: 2 !important;
    font-weight: 900 !important;
    margin-bottom: 12px !important;
}

/* نام نویسنده */
.bulletin-container .article-card p {
    font-size: 14px !important;
    line-height: 1.9 !important;
}

/* برچسب موضوع مقاله */
.bulletin-container .article-card span.inline-block {
    font-size: 13px !important;
    padding: 7px 15px !important;
    margin-bottom: 12px !important;
}

/* ==========================================
   FIX 3: BIGGER DOWNLOAD BUTTONS
========================================== */

.bulletin-container .article-card .flex.gap-2 {
    gap: 12px !important;
    margin-top: 18px !important;
    padding-top: 17px !important;
}

/* دکمه دانلود PDF و پادکست */
.bulletin-container .article-card .btn-pdf,
.bulletin-container .article-card .btn-podcast {
    min-height: 48px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    border-radius: 12px !important;
    gap: 10px !important;
}

/* آیکون دکمه‌ها */
.bulletin-container .article-card .btn-pdf i,
.bulletin-container .article-card .btn-podcast i {
    font-size: 19px !important;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .bulletin-container .speech-card {
        padding: 22px 17px !important;
    }

    .bulletin-container .speech-card h3 {
        font-size: 17px !important;
    }

    .bulletin-container .speech-card > p {
        font-size: 14px !important;
        line-height: 2.1 !important;
    }

    .bulletin-container .article-card h3 {
        font-size: 16px !important;
    }

    .bulletin-container .article-card p {
        font-size: 13px !important;
    }

    .bulletin-container .article-card .btn-pdf,
    .bulletin-container .article-card .btn-podcast {
        min-height: 46px !important;
        font-size: 13px !important;
        padding: 10px 8px !important;
    }
}
