/* ═══════════════════════════════════════════════════════════════════════════
   أنماط عرض متنوعة للبيانات - Display Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ===== Skeleton Loader ===== */
.skeleton-loader {
    padding: 20px;
}

.skeleton-header {
    height: 30px;
    width: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 20px;
}

.skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-item {
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Style Badge ===== */
.style-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 1: Hero Feature - عرض مميز كبير
   ═══════════════════════════════════════════════════════════════════════════ */
.hero-feature-container {
    margin-top: 20px;
}

.hero-feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-feature-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.hero-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-feature-card:hover .hero-feature-image img {
    transform: scale(1.05);
}

.hero-feature-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.hero-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
}

.hero-feature-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-feature-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-feature-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
}

.hero-feature-excerpt {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.hero-feature-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-feature-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-feature-meta i {
    color: var(--secondary-color);
}

@media (max-width: 900px) {
    .hero-feature-card {
        grid-template-columns: 1fr;
    }
    .hero-feature-image {
        height: 250px;
    }
    .hero-feature-content {
        padding: 25px;
    }
    .hero-feature-title {
        font-size: 1.4rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 2: Overlay Cards - بطاقات مع تراكب
   ═══════════════════════════════════════════════════════════════════════════ */
.overlay-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
    margin-top: 20px;
}

.overlay-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.overlay-card-large {
    grid-row: span 2;
}

.overlay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.overlay-card:hover img {
    transform: scale(1.1);
}

.overlay-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.overlay-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.overlay-card:hover .overlay-card-content {
    transform: translateY(0);
    opacity: 1;
}

.overlay-card-tag {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.overlay-card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.overlay-card-meta {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

@media (max-width: 768px) {
    .overlay-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .overlay-card {
        height: 200px;
    }
    .overlay-card-large {
        grid-row: span 1;
        height: 250px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 3: Carousel - عرض أفقي متحرك
   ═══════════════════════════════════════════════════════════════════════════ */
.carousel-container {
    position: relative;
    margin-top: 20px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 5px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.carousel-item-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.carousel-item:hover .carousel-play-btn {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.carousel-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.carousel-item-content {
    padding: 15px;
}

.carousel-item-content h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.carousel-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-btn-prev {
    right: -20px;
}

.carousel-btn-next {
    left: -20px;
}

@media (max-width: 768px) {
    .carousel-btn {
        display: none;
    }
    .carousel-item {
        flex: 0 0 260px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 4: Audio Waveform List - قائمة صوتية مع موجة
   ═══════════════════════════════════════════════════════════════════════════ */
.audio-waveform-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.audio-waveform-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.audio-waveform-item:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border-color: var(--secondary-color);
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.audio-waveform-cover {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.audio-waveform-info {
    flex: 1;
    min-width: 0;
}

.audio-waveform-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.audio-waveform-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0 0 12px 0;
}

.audio-waveform-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 25px;
}

.audio-waveform-bars span {
    width: 4px;
    background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.audio-waveform-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.audio-waveform-bars span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.audio-waveform-bars span:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.audio-waveform-bars span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.audio-waveform-bars span:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.audio-waveform-bars span:nth-child(6) { height: 80%; animation-delay: 0.5s; }
.audio-waveform-bars span:nth-child(7) { height: 45%; animation-delay: 0.6s; }
.audio-waveform-bars span:nth-child(8) { height: 75%; animation-delay: 0.7s; }
.audio-waveform-bars span:nth-child(9) { height: 55%; animation-delay: 0.8s; }
.audio-waveform-bars span:nth-child(10) { height: 85%; animation-delay: 0.9s; }
.audio-waveform-bars span:nth-child(11) { height: 40%; animation-delay: 1s; }
.audio-waveform-bars span:nth-child(12) { height: 65%; animation-delay: 0.15s; }
.audio-waveform-bars span:nth-child(13) { height: 50%; animation-delay: 0.25s; }
.audio-waveform-bars span:nth-child(14) { height: 95%; animation-delay: 0.35s; }
.audio-waveform-bars span:nth-child(15) { height: 55%; animation-delay: 0.45s; }
.audio-waveform-bars span:nth-child(16) { height: 70%; animation-delay: 0.55s; }
.audio-waveform-bars span:nth-child(17) { height: 45%; animation-delay: 0.65s; }
.audio-waveform-bars span:nth-child(18) { height: 80%; animation-delay: 0.75s; }
.audio-waveform-bars span:nth-child(19) { height: 60%; animation-delay: 0.85s; }
.audio-waveform-bars span:nth-child(20) { height: 50%; animation-delay: 0.95s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.audio-waveform-play {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audio-waveform-play:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(45, 95, 63, 0.3);
}

@media (max-width: 600px) {
    .audio-waveform-item {
        flex-wrap: wrap;
        gap: 15px;
    }
    .audio-waveform-bars {
        display: none;
    }
    .audio-waveform-play {
        margin-right: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 5: Timeline - عرض زمني
   ═══════════════════════════════════════════════════════════════════════════ */
.timeline-container {
    position: relative;
    margin-top: 30px;
    padding-right: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    right: 85px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    text-decoration: none;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.timeline-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.timeline-month {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--secondary-color);
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.timeline-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .timeline-container {
        padding-right: 20px;
    }
    .timeline-container::before {
        right: 30px;
    }
    .timeline-date {
        width: 50px;
    }
    .timeline-day {
        font-size: 1.5rem;
    }
    .timeline-content {
        padding: 15px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 6: Masonry Grid - شبكة غير متماثلة
   ═══════════════════════════════════════════════════════════════════════════ */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
    margin-top: 20px;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.masonry-item-tall {
    grid-row: span 2;
}

.masonry-item-wide {
    grid-column: span 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.masonry-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.masonry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
}

.masonry-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.masonry-content h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.masonry-content p {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    .masonry-item-wide {
        grid-column: span 1;
    }
}

@media (max-width: 500px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .masonry-item-tall {
        grid-row: span 1;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 7: Accordion - أكورديون للفتاوى
   ═══════════════════════════════════════════════════════════════════════════ */
.accordion-container {
    margin-top: 20px;
}

.accordion-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--secondary-color);
}

.accordion-item.active {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-question {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.accordion-question i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.accordion-question span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-icon {
    color: var(--text-light);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 0 25px 20px 75px;
}

.accordion-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 15px 0;
}

.accordion-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.accordion-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

@media (max-width: 600px) {
    .accordion-header {
        padding: 15px 20px;
    }
    .accordion-question span {
        font-size: 0.95rem;
    }
    .accordion-item.active .accordion-content {
        padding: 0 20px 15px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 8: List View - عرض قائمة عمودية (تشبه الجدول بدون خطوط)
   ═══════════════════════════════════════════════════════════════════════════ */
.list-view-container {
    margin-top: 20px;
}

.list-view-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: var(--white);
    margin-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-right: 4px solid transparent;
}

.list-view-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-right-color: var(--secondary-color);
    transform: translateX(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.list-view-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.list-view-content {
    min-width: 0;
}

.list-view-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.list-view-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-view-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.list-view-date {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-view-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .list-view-item {
        grid-template-columns: 50px 1fr;
        gap: 15px;
    }
    .list-view-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .list-view-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 9: Compact List - قائمة مضغوطة مع أيقونات
   ═══════════════════════════════════════════════════════════════════════════ */
.compact-list-container {
    margin-top: 20px;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
}

.compact-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.compact-list-item:last-child {
    border-bottom: none;
}

.compact-list-item:hover {
    background: linear-gradient(90deg, rgba(45, 95, 63, 0.05) 0%, transparent 100%);
    padding-right: 25px;
}

.compact-list-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.compact-list-content {
    flex: 1;
    min-width: 0;
}

.compact-list-content h5 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-list-content span {
    color: var(--text-light);
    font-size: 0.8rem;
}

.compact-list-arrow {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.compact-list-item:hover .compact-list-arrow {
    transform: translateX(-5px);
    color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 10: Striped Rows - صفوف متناوبة الألوان
   ═══════════════════════════════════════════════════════════════════════════ */
.striped-list-container {
    margin-top: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.striped-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 100px;
    gap: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.striped-list-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 100px;
    gap: 15px;
    padding: 18px 25px;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.striped-list-item:nth-child(odd) {
    background: var(--white);
}

.striped-list-item:nth-child(even) {
    background: #f8fdf9;
}

.striped-list-item:hover {
    background: #e8f5e9 !important;
    transform: scale(1.01);
}

.striped-list-title {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.striped-list-title i {
    color: var(--secondary-color);
}

.striped-list-category {
    color: var(--text-light);
    font-size: 0.9rem;
}

.striped-list-date {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.striped-list-action {
    display: flex;
    justify-content: center;
}

.striped-list-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.striped-list-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(45, 95, 63, 0.3);
}

@media (max-width: 900px) {
    .striped-list-header,
    .striped-list-item {
        grid-template-columns: 1fr 1fr;
    }
    .striped-list-header span:nth-child(3),
    .striped-list-header span:nth-child(4),
    .striped-list-date,
    .striped-list-action {
        display: none;
    }
}

@media (max-width: 600px) {
    .striped-list-header,
    .striped-list-item {
        grid-template-columns: 1fr;
    }
    .striped-list-header span:nth-child(2),
    .striped-list-category {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 11: Card List Hybrid - مزيج بطاقة وقائمة
   ═══════════════════════════════════════════════════════════════════════════ */
.card-list-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-list-image {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.card-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-list-item:hover .card-list-image img {
    transform: scale(1.1);
}

.card-list-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.card-list-body {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-list-category {
    display: inline-block;
    background: #e8f5e9;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 8px;
    width: fit-content;
}

.card-list-body h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.card-list-body p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-list-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-list-date {
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-list-views {
    color: var(--secondary-color);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 600px) {
    .card-list-item {
        grid-template-columns: 1fr;
    }
    .card-list-image {
        height: 180px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 12: Simple Text List - قائمة نصية بسيطة
   ═══════════════════════════════════════════════════════════════════════════ */
.simple-list-container {
    margin-top: 20px;
    background: var(--white);
    border-radius: 16px;
    padding: 10px 0;
}

.simple-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.simple-list-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.simple-list-item:hover::before {
    height: 60%;
}

.simple-list-item:hover {
    background: rgba(45, 95, 63, 0.03);
}

.simple-list-bullet {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.simple-list-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.simple-list-item:hover .simple-list-text {
    color: var(--primary-color);
}

.simple-list-date {
    color: var(--text-light);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 13: Numbered List - قائمة مرقمة أنيقة
   ═══════════════════════════════════════════════════════════════════════════ */
.numbered-list-container {
    margin-top: 20px;
    counter-reset: list-counter;
}

.numbered-list-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    margin-bottom: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    counter-increment: list-counter;
}

.numbered-list-item:hover {
    background: #f8fdf9;
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.numbered-list-item::before {
    content: counter(list-counter, arabic-indic);
    min-width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.numbered-list-content {
    flex: 1;
}

.numbered-list-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.numbered-list-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.numbered-list-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.numbered-list-meta span {
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive Adjustments
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .style-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 14: Card Grid - شبكة بطاقات (النمط الكلاسيكي)
   ═══════════════════════════════════════════════════════════════════════════ */
.card-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.card-grid-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-grid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-grid-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-grid-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-grid-item:hover .card-grid-image img {
    transform: scale(1.08);
}

.card-grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-grid-placeholder i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.card-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 1;
}

.card-grid-category {
    background: var(--primary-color, #2196F3);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-grid-body {
    padding: 20px;
}

.card-grid-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.card-grid-item:hover .card-grid-title {
    color: var(--primary-color, #2196F3);
}

.card-grid-excerpt {
    font-size: 0.9rem;
    color: var(--text-light, #6b7280);
    line-height: 1.7;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-grid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.card-grid-date,
.card-grid-views {
    font-size: 0.8rem;
    color: var(--text-light, #9ca3af);
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-grid-date i,
.card-grid-views i {
    font-size: 0.85rem;
    color: var(--primary-color, #2196F3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   النمط 14: Video Gallery - معرض فيديوهات مع مشغل
   ═══════════════════════════════════════════════════════════════════════════ */

.video-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.video-gallery-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Site Word Hero + Category Blocks
   ═══════════════════════════════════════════════════════════════════════════ */

.site-word-hero {
    margin-top: 30px;
}

.site-word-card {
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: right;
}

/* Site Word Hero Rich Text - Improved Visibility */
.site-word-hero-box {
    margin: 30px 0 50px 0;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    min-height: 200px;
}

.site-word-card {
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    text-align: center; /* Center for hero feel */
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.rich-text-content {
    font-size: 1.25rem;
    line-height: 1.8;
}

.rich-text-content p {
    margin-bottom: 1.2rem;
}

.rich-text-content h1, .rich-text-content h2, .rich-text-content h3 {
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.rich-text-content div, .rich-text-content span {
    background-color: transparent !important;
}

@media (max-width: 768px) {
    .site-word-card {
        padding: 40px 20px;
        border-radius: 12px;
    }
    .rich-text-content {
        font-size: 1.1rem;
    }
}

.site-word-content h1 {
    font-size: 2.8rem;
    margin: 0;
    letter-spacing: 0.03em;
}

.site-word-subtitle {
    margin-top: 12px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.category-link-grid,
.subcategory-card-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.category-link-card,
.subcategory-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-link-card:hover,
.subcategory-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.category-link-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-left: 15px;
}

.category-link-card-body h3,
.subcategory-card-body h3 {
    margin: 0;
    font-size: 1.3rem;
}

.category-link-card-meta,
.subcategory-card-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.subcategory-card-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .site-word-card {
        padding: 35px 25px;
    }
    .site-word-content h1 {
        font-size: 2rem;
    }
}
.video-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-gallery-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.video-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-gallery-item:hover .video-gallery-thumbnail img {
    transform: scale(1.05);
}

.video-gallery-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-gallery-item:hover .video-gallery-play-overlay {
    opacity: 1;
}

.video-gallery-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-gallery-play-button:hover {
    background: white;
    transform: scale(1.1);
}

.video-gallery-play-button i {
    color: #2d5f3f;
    font-size: 1.5rem;
    margin-left: 3px; /* لتعويض RTL */
}

.video-gallery-info {
    padding: 20px;
}

.video-gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5f3f;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.video-gallery-views,
.video-gallery-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-gallery-views i,
.video-gallery-date i {
    color: #97be5a;
}

.video-gallery-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Video Modal Styles */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.video-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.video-modal-header h3 {
    margin: 0;
    color: #2d5f3f;
    font-size: 1.25rem;
    font-weight: 600;
}

.video-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background: #eee;
    color: #333;
}

.video-modal-body {
    padding: 0;
}

.video-modal-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: scale(0.9) translateY(-20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Video Gallery Responsive */
@media (max-width: 768px) {
    .video-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 15px 0;
    }
    
    .video-gallery-thumbnail {
        height: 160px;
    }
    
    .video-gallery-info {
        padding: 15px;
    }
    
    .video-gallery-title {
        font-size: 1rem;
    }
    
    .video-gallery-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .video-gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-gallery-thumbnail {
        height: 200px;
    }
}
