/* الصفحة الرئيسية */
.hero {
    padding: 60px 0 30px;
    background: linear-gradient(145deg, var(--primary-soft), var(--card-bg));
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 32px;
    font-weight: 500;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-alt {
    background: #fff;
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.hero-btn-alt:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.hijri-date-wrap {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.hijri-date-badge {
    background: var(--primary-soft);
    padding: 10px 20px;
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
    font-weight: 700;
}

.message-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(1,87,155,0.12);
    margin: 0 0 20px;
    position: relative;
    border-right: 8px solid var(--primary-dark);
    border-left: 8px solid var(--primary-dark);
}

.message-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-card h2 i {
    font-size: 2rem;
    color: var(--primary);
}

.message-text {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.9;
}

.message-text .ayah {
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-soft);
    display: inline-block;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 1.3rem;
}

.message-text .ayah-number {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 5px;
}

.signature {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px dashed var(--border-light);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.signature i {
    color: var(--primary);
    font-size: 1.8rem;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    padding: 5px 0;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

.extra-content {
    display: none;
}

.extra-content.show {
    display: block;
}

.academy-card {
    background: linear-gradient(145deg, var(--card-bg), #f6fbfe);
    border-radius: var(--radius-lg);
    padding: 45px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-soft);
    margin: 30px 0 50px;
    text-align: center;
}

.academy-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.academy-card h2 i {
    font-size: 2.8rem;
    color: var(--primary);
}

.academy-quote {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0 20px;
    line-height: 1.4;
}

.academy-quote small {
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.academy-description {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 800px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.academy-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    font-size: 1.08rem;
    background: var(--primary-dark);
    color: white;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(1,87,155,0.3);
    transition: var(--transition);
    border: 2px solid transparent;
}

.academy-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(1,111,174,0.4);
}

.video-slider-section {
    margin: 60px 0;
}

.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.slider-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.slider-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 4px;
}

.slider-hint {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pause-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 0.9rem;
    padding: 5px 15px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.pause-btn:hover {
    background: var(--primary);
    color: white;
}

.marquee-container {
    width: 100%;
    background: white;
    padding: 20px 0;
    border-top: 20px solid var(--primary-dark);
    border-bottom: 20px solid var(--primary-dark);
    overflow: hidden;
    position: relative;
    margin: 0;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-smooth 110s linear infinite;
}

.marquee-part {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 100px;
}

.marquee-part span {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.marquee-part img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 10px #ffaa00);
}

@keyframes scroll-smooth {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

.single-card-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    min-height: 380px;
}

.single-card-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
}

.single-card-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.single-card-track::-webkit-scrollbar {
    height: 8px;
}

.single-card-track::-webkit-scrollbar-thumb {
    background: rgba(15,76,129,.25);
    border-radius: 999px;
}

.card-single {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    box-sizing: border-box;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: 0.3s;
    border: 1px solid var(--border-light);
}

.card-single:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.card-single img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.card-single h3 {
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.7;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 20;
    flex-shrink: 0;
}

.slider-nav:hover {
    background: var(--primary);
    color: white;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.book-cover {
    height: 200px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 15px;
}

.book-cover i {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.7;
}

.fatwa-icon-cover {
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.fatwa-icon-cover i {
    color: var(--primary);
    font-size: 5rem;
}

.quote-box {
    text-align: center;
    background: var(--primary-soft);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.quote-icon {
    color: var(--primary);
    font-size: 2rem;
}

.quote-text {
    font-size: 1.3rem;
    margin: 20px 0;
    line-height: 2;
    color: var(--text-main);
}

.quote-source {
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0;
}

/* ===== أحدث المقالات - تصميم جديد ===== */
.latest-posts-section {
    margin: 35px 0 50px;
}

.latest-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.latest-posts-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.latest-posts-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 85px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.latest-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--primary-light);
    color: var(--primary);
    background: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.latest-posts-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.post-featured-card {
    background: linear-gradient(145deg, #ffffff, #f8fbfe);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(1,87,155,0.10);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.post-featured-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(52,152,219,0.12), transparent 70%);
    pointer-events: none;
}

.post-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: 18px;
}

.post-featured-body h3 {
    font-size: 1.65rem;
    line-height: 1.65;
    color: var(--primary-dark);
    margin: 0 0 18px;
    font-weight: 800;
}

.post-featured-excerpt {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-featured-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.post-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .92rem;
    font-weight: 700;
}

.post-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(1,87,155,0.24);
}

.post-read-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.posts-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.post-mini-card {
    background: #fff;
    border-radius: 22px;
    padding: 20px 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(1,87,155,0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 188px;
}

.post-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.post-mini-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.post-mini-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--primary-soft), #eef8fd);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.post-mini-card h3 {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--primary-dark);
    margin: 0;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-mini-excerpt {
    color: var(--text-soft);
    font-size: .95rem;
    line-height: 1.9;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-mini-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}

.post-mini-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-mini-link:hover {
    color: var(--primary-dark);
}

.latest-posts-empty {
    background: #fff;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.latest-posts-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--primary);
    display: block;
}

.error-message {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    width: 100%;
}

@media (max-width: 992px) {
    .latest-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .message-card {
        padding: 30px 20px;
    }

    .message-card h2 {
        font-size: 1.8rem;
    }

    .academy-card {
        padding: 30px 20px;
    }

    .academy-card h2 {
        font-size: 2rem;
    }

    .academy-quote {
        font-size: 1.3rem;
    }

    .slider-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .marquee-part span {
        font-size: 1.2rem;
    }

    .marquee-part img {
        width: 35px;
        margin: 0 10px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-nav.prev {
        left: 5px;
    }

    .slider-nav.next {
        right: 5px;
    }

    .latest-posts-header h2 {
        font-size: 1.65rem;
    }

    .post-featured-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .post-featured-body h3 {
        font-size: 1.35rem;
    }

    .post-mini-card {
        min-height: auto;
    }

    .quote-text {
        font-size: 1.08rem;
    }
}
/* ===== أحدث المقالات - قائمة جانبية أنيقة ===== */
.articles-sidebar-widget{
    margin:30px 0 40px;
    background:linear-gradient(145deg,#ffffff,#f8fbfe);
    border-radius:28px;
    border:1px solid rgba(1,87,155,.10);
    box-shadow:var(--shadow-md);
    overflow:hidden;
    position:relative;
}

.articles-sidebar-widget::before{
    content:'';
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:5px;
    background:linear-gradient(90deg,var(--primary-dark),var(--primary),var(--primary-light));
}

.articles-sidebar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    padding:22px 24px 16px;
    border-bottom:1px solid rgba(1,87,155,.08);
    background:linear-gradient(145deg,rgba(227,242,253,.55),rgba(255,255,255,.75));
}

.articles-sidebar-head h3{
    margin:0;
    font-size:1.65rem;
    font-weight:800;
    color:var(--primary-dark);
    display:inline-flex;
    align-items:center;
    gap:10px;
}

.articles-sidebar-head h3 i{
    color:var(--primary);
    font-size:1.35rem;
}

.articles-sidebar-more{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 16px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--primary-light);
    color:var(--primary);
    font-weight:700;
    text-decoration:none;
    transition:var(--transition);
    box-shadow:var(--shadow-sm);
}

.articles-sidebar-more:hover{
    background:var(--primary);
    color:#fff;
}

.articles-sidebar-list{
    padding:10px 14px 14px;
    max-height:520px;
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:var(--primary-light) #edf4fa;
}

.articles-sidebar-list::-webkit-scrollbar{
    width:8px;
}

.articles-sidebar-list::-webkit-scrollbar-track{
    background:#edf4fa;
    border-radius:999px;
}

.articles-sidebar-list::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,var(--primary-light),var(--primary));
    border-radius:999px;
}

.articles-sidebar-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 12px;
    margin-bottom:8px;
    border-radius:18px;
    text-decoration:none;
    color:var(--text-main);
    transition:var(--transition);
    border:1px solid transparent;
    background:transparent;
}

.articles-sidebar-item:hover{
    background:#f2f9fe;
    border-color:rgba(1,111,174,.14);
    transform:translateX(-3px);
    box-shadow:0 8px 18px rgba(1,87,155,.08);
}

.articles-bullet{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:12px;
    background:linear-gradient(145deg,var(--primary-soft),#eef8fd);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--primary);
    font-size:.95rem;
    box-shadow:inset 0 0 0 1px rgba(1,87,155,.08);
}

.articles-title{
    font-size:1.08rem;
    line-height:1.95;
    font-weight:700;
    color:var(--primary-dark);
    display:block;
    transition:var(--transition);
}

.articles-sidebar-item:hover .articles-title{
    color:var(--primary);
}

.articles-sidebar-empty{
    padding:28px 18px;
    text-align:center;
    color:var(--text-muted);
    font-weight:700;
}

@media (max-width: 768px){
    .articles-sidebar-widget{
        border-radius:22px;
    }

    .articles-sidebar-head{
        padding:18px 18px 14px;
    }

    .articles-sidebar-head h3{
        font-size:1.35rem;
    }

    .articles-sidebar-list{
        max-height:420px;
        padding:10px 10px 12px;
    }

    .articles-sidebar-item{
        padding:12px 10px;
        border-radius:16px;
    }

    .articles-title{
        font-size:1rem;
        line-height:1.85;
    }

    .articles-bullet{
        width:34px;
        height:34px;
        min-width:34px;
        border-radius:10px;
    }
}


/* ===== تحديث تخطيط المستحدثات في أسفل الرئيسية ===== */
.home-updates-intro{
    margin-bottom:18px;
}

.home-updates-head{
    background:linear-gradient(145deg,#fff,#f8fbfe);
    border:1px solid rgba(1,87,155,.1);
    border-radius:26px;
    box-shadow:var(--shadow-sm);
    padding:24px 26px;
}

.home-updates-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:24px;
    align-items:start;
    margin-bottom:56px;
}

.home-updates-main{
    min-width:0;
}

.home-updates-sidebar{
    min-width:0;
}

html[dir="rtl"] .home-updates-sidebar{
    grid-column:2;
    position:sticky;
    top:96px;
}

html[dir="rtl"] .home-updates-main{
    grid-column:1;
}

html[dir="ltr"] .home-updates-sidebar{
    grid-column:1;
    position:sticky;
    top:96px;
}

html[dir="ltr"] .home-updates-main{
    grid-column:2;
}

.home-update-section{
    margin-top:0;
    background:linear-gradient(145deg,#fff,#fbfdff);
    border:1px solid rgba(1,87,155,.08);
    border-radius:28px;
    padding:24px;
    box-shadow:var(--shadow-sm);
}

.home-update-section + .home-update-section{
    margin-top:24px;
}

.home-updates-sidebar .articles-sidebar-widget{
    margin:0;
}

.home-updates-sidebar .articles-sidebar-head{
    padding-bottom:18px;
}

.home-updates-sidebar .articles-sidebar-list,
.home-updates-sidebar .ui-list-items{
    max-height:none;
    overflow:visible;
}

.home-updates-sidebar .ui-list-item,
.home-updates-sidebar .articles-sidebar-item{
    align-items:flex-start;
}

.home-updates-sidebar .ui-list-item-meta{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:4px;
    color:var(--text-muted);
    font-size:.85rem;
    font-weight:700;
}

.home-updates-sidebar .ui-list-item-title,
.home-updates-sidebar .articles-title{
    line-height:1.85;
}

.home-updates-sidebar .ui-list-item-icon,
.home-updates-sidebar .articles-bullet{
    background:linear-gradient(145deg,var(--primary-soft),#eef8fd);
}

@media (max-width: 1100px){
    .home-updates-layout{
        grid-template-columns:1fr;
    }

    html[dir="rtl"] .home-updates-sidebar,
    html[dir="ltr"] .home-updates-sidebar,
    html[dir="rtl"] .home-updates-main,
    html[dir="ltr"] .home-updates-main{
        grid-column:auto;
        position:static;
    }
}

@media (max-width: 768px){
    .home-updates-head,
    .home-update-section{
        border-radius:22px;
        padding:18px;
    }

    .home-updates-layout{
        gap:18px;
        margin-bottom:40px;
    }
}

/* ===== إعادة تنسيق الرئيسية بعد نقل المستحدثات والمقالات والاقتباسات ===== */
.home-updates-layout{
    display:block;
}

.home-updates-main--full{
    width:100%;
}

.home-article-marquee-wrap{
    margin-top:18px;
}

.home-article-marquee{
    border:1px solid rgba(15,76,129,.10);
    border-radius:22px;
    background:linear-gradient(180deg,#ffffff,#f8fbff);
    padding:12px;
}

.home-article-marquee .ui-list-items{
    display:flex;
    flex-direction:column;
    gap:12px;
    max-height:420px;
    overflow-y:auto;
    overflow-x:hidden;
    padding-inline-end:6px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
}

.home-article-marquee .ui-list-item{
    align-items:flex-start;
}

.home-article-marquee .ui-list-item-meta{
    display:block;
    margin-top:4px;
    font-size:.84rem;
    color:var(--text-muted);
    font-weight:700;
}

.home-quotes-end{
    margin-top:60px;
    margin-bottom:40px;
}

.home-quotes-head{
    margin-bottom:18px;
}

.home-quotes-scroll{
    overflow-x:auto;
    overflow-y:hidden;
    padding:6px 2px 14px;
    scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;
}

.home-quotes-row{
    display:flex;
    gap:16px;
    width:max-content;
}

.home-quote-card{
    width:min(420px,82vw);
    min-width:300px;
    background:linear-gradient(145deg,#fff,#fbfdff);
    border:1px solid rgba(1,87,155,.1);
    border-radius:24px;
    padding:22px;
    box-shadow:var(--shadow-sm);
}

.home-quote-text{
    margin:0 0 12px;
    line-height:2;
    color:var(--text-main);
}

.home-quote-source{
    color:var(--text-muted);
    font-weight:700;
}

@media (max-width: 768px){
    .home-updates-head,
    .home-update-section{
        border-radius:22px;
        padding:18px;
    }

    .home-updates-layout{
        gap:18px;
        margin-bottom:40px;
    }

    .home-article-marquee .ui-list-items{
        max-height:340px;
    }

    .home-quote-card{
        width:86vw;
        min-width:86vw;
    }
}


.home-article-marquee .ui-list-item,
.home-article-marquee .ui-list-item:visited{
    text-decoration:none;
}


/* Pass 30: autoplay cards and full-bleed quote rail */
.home-page-main{
    overflow-x:hidden;
}

.home-quotes-end{
    width:100vw;
    max-width:100vw;
    margin-inline:calc(50% - 50vw);
    padding-inline:clamp(14px, 3vw, 32px);
}

.home-quotes-scroll{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
}

.home-quotes-row{
    display:flex;
    gap:18px;
    width:max-content;
    min-width:100%;
}

.home-quote-card{
    width:min(92vw, 620px);
    min-width:min(92vw, 620px);
    min-height:220px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.single-card-track{
    scroll-behavior:smooth;
}

.single-card-track .card-single,
.single-card-track .ui-rail-card{
    scroll-snap-align:start;
}


/* Pass 31: fuller sliders and richer quote rail */
.home-update-section{
    width:100%;
}

.home-update-section .single-card-slider,
.home-update-section .ui-slider-shell{
    width:100vw;
    max-width:100vw;
    margin-inline:calc(50% - 50vw);
    padding-inline:clamp(12px, 3vw, 28px);
}

.home-update-section .single-card-container,
.home-update-section .ui-slider-frame{
    width:100%;
    max-width:100%;
    border-radius:26px;
}

.home-update-section .single-card-track,
.home-update-section .ui-slider-track{
    scrollbar-width:none;
}

.home-update-section .single-card-track::-webkit-scrollbar,
.home-update-section .ui-slider-track::-webkit-scrollbar{
    display:none;
}

.home-update-section .card-single,
.home-update-section .ui-rail-card{
    flex:0 0 100%;
    width:100%;
    min-height:clamp(300px, 56vh, 620px);
    padding:clamp(18px, 3.4vw, 34px);
    border-radius:28px;
}

.home-update-section .card-single img,
.home-update-section .ui-rail-card-media img{
    width:100%;
    max-height:min(56vh, 460px);
    object-fit:contain;
}

.home-update-section .card-single h3,
.home-update-section .ui-rail-card h3{
    font-size:clamp(1.15rem, 3.2vw, 1.75rem);
}

.ui-rail-card-badge{
    min-height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, rgba(15,76,129,.08), rgba(15,111,174,.18));
    border-radius:22px;
    margin-bottom:14px;
}

.ui-rail-card-badge .ui-pill{
    font-size:clamp(1rem, 2.6vw, 1.25rem);
    padding:12px 18px;
}

.home-quotes-end{
    min-height:unset;
}

.home-quotes-scroll{
    width:100vw;
    max-width:100vw;
    margin-inline:calc(50% - 50vw);
    padding-inline:clamp(12px, 3vw, 28px);
    scrollbar-width:none;
}

.home-quotes-scroll::-webkit-scrollbar{ display:none; }

.home-quote-card{
    width:min(96vw, 980px);
    min-width:min(96vw, 980px);
    min-height:clamp(260px, 48vh, 520px);
    padding:clamp(22px, 4vw, 42px);
    border-radius:30px;
}

.home-quote-text{
    font-size:clamp(1.1rem, 2.8vw, 1.65rem);
    line-height:2.05;
}

.home-quote-source{
    font-size:clamp(.95rem, 2vw, 1.1rem);
}

@media (max-width: 768px){
    .home-update-section .slider-nav,
    .home-update-section .ui-slider-nav{
        width:44px;
        height:44px;
    }

    .home-update-section .card-single,
    .home-update-section .ui-rail-card,
    .home-quote-card{
        border-radius:24px;
    }
}
