/* بطاقات المواضيع / النشرات — عرض كامل للعمود ومتجاوبة */

.post-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-card > a {
    display: block;
    width: 100%;
}

.post-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background-color: #f5f5f5;
    border-radius: 12px 12px 0 0;
    display: block;
}

.post-image-hover {
    transition: filter 0.35s ease, transform 0.35s ease;
    cursor: pointer;
}

.post-image-hover:hover {
    filter: brightness(0.88);
    transform: scale(1.02);
}

.post-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 0.75rem 1rem;
}

.post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 15px;
}

.filter-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-posts i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.post-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 80%;
    line-height: 1.3;
}

.post-card:hover .post-title-overlay {
    opacity: 1;
}

.post-title {
    font-size: 14px;
    font-weight: bold;
    margin: 29px 12px;
    line-height: 1.4;
    min-height: 3.5em;
    display: flex;
    align-items: flex-start;
    text-align: right;
    border: 1px dashed #e9640a;
    border-radius: 10px;
    padding: 40px 27px;
    justify-content: center;
}

.post-title-arcive {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.45;
    min-height: 0;
    display: block;
    text-align: center;
}

.post-title-arcive a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nashra-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0.35rem 0.25rem 0.2rem;
}

.nashra-card-subtitle {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 20px;
    margin-top: 20px;
}

.breadcrumb-item a {
    color: #e9640a;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgb(33 51 115);
}

.language-switcher {
    margin-left: 15px;
}

.language-switcher a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.language-switcher a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.language-switcher a.active {
    background: rgba(255, 255, 255, 0.3);
}

.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    margin-top: 50px;
}

/* شبكة البطاقات: نفس الارتفاع داخل الصف */
.row > [class*="col-"] > .post-card {
    height: 100%;
}

@media (max-width: 991px) {
    .post-image {
        aspect-ratio: 4 / 5;
    }

    .post-title-arcive {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-header {
        padding: 28px 0 12px;
    }

    .post-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 12px 12px 0 0;
    }

    .post-card {
        border-radius: 12px;
        margin-inline: 0;
    }

    .post-card .card-body {
        padding: 0.75rem 0.65rem 0.9rem;
    }

    .post-image-hover:hover {
        transform: none;
        filter: brightness(1);
    }

    .post-hero {
        min-height: 220px !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    .post-hero-title {
        font-size: 1.45rem !important;
    }
}

@media (max-width: 575px) {
    .post-image {
        aspect-ratio: 4 / 5;
    }

    .post-title-arcive {
        font-size: 1rem;
    }
}

@media (hover: none) {
    .post-card:hover {
        transform: none;
    }

    .post-image-hover:hover {
        transform: none;
        filter: brightness(1);
    }
}
