/* --- Minimalist Modern Blog Styles --- */

:root {
    --blog-card-radius: 1rem;
    --blog-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --blog-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
    --blog-transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-archive-section {
    padding: 4rem 0 8rem;
    background: transparent;
}

.container-large {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.blog-card-inner {
    background: #fff;
    border-radius: var(--blog-card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--blog-transition);
    border: 1px solid #eee;
    box-shadow: var(--blog-shadow);
}

.blog-card:hover .blog-card-inner {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-hover);
    border-color: #ddd;
}

/* Image Section */
.blog-card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    height: 220px;
    /* More compact */
    flex-shrink: 0;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

/* Minimal Badge */
.blog-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rtl-wrapper .blog-card-badge {
    left: auto;
    right: 1rem;
}

/* Content Area */
.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.blog-card-date svg {
    width: 14px;
    height: 14px;
    stroke: #bbb;
}

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #111;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

/* Minimalist Link */
.blog-card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-btn {
    color: var(--color-primary);
}

.blog-card:hover .btn-arrow {
    transform: translateX(5px);
}

.rtl-wrapper .blog-card:hover .btn-arrow {
    transform: translateX(-5px) scaleX(-1);
}

.rtl-wrapper .btn-arrow {
    transform: scaleX(-1);
}

/* Pagination */
.pagination-premium {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-premium .page-numbers {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    color: #111;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.pagination-premium .page-numbers.current,
.pagination-premium .page-numbers:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Reveal Animation */
.reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Single Post Modern Layout --- */
.single-post-premium {
    padding: 3rem 0 3rem;
    background: transparent;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a:not(.semantic-link) {
    color: #fb8c00;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.entry-content a:not(.semantic-link):hover {
    color: #e67e22;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #111;
    font-weight: 800;
}

.entry-content img {
    border-radius: 1.5rem;
    margin: 2.5rem 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

/* Map & Related Posts */
.post-map-wrapper {
    margin: 3rem auto;
    height: 350px;
}

.post-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 100% !important;
}

.related-posts-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #111;
}

/* --- Reading Time Badge --- */
.post-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Social Share Bar --- */
.post-share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.share-bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}

.rtl-wrapper .share-bar-label {
    margin-right: 0;
    margin-left: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.share-whatsapp {
    background: #25D366;
    color: #fff;
}

.share-facebook {
    background: #1877F2;
    color: #fff;
}

.share-twitter {
    background: #000;
    color: #fff;
}

.share-email {
    background: #e8e8e8;
    color: #444;
}

.share-email:hover {
    background: #ddd;
}

@media (max-width: 600px) {
    .post-share-bar {
        flex-wrap: wrap;
        padding: 0.8rem 1rem;
        gap: 8px;
    }

    .share-bar-label {
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
    }

    .share-btn span {
        display: none;
    }

    .share-btn {
        padding: 0.5rem;
        border-radius: 50%;
    }
}

/* --- Author Bio Card --- */
.author-bio-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #eee;
    margin: 3rem 0 2rem;
}

.author-bio-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-bio-info {
    flex: 1;
}

.author-bio-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.author-bio-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0.25rem 0 0.5rem;
}

.author-bio-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@media (max-width: 600px) {
    .author-bio-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
}

/* --- Tags Section --- */
.post-tags-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    margin-bottom: 2rem;
}

.tags-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    display: inline-flex;
    align-items: center;
}

.post-tags-section a {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    background: #f3f4f6;
    color: #444;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags-section a:hover {
    background: #111;
    color: #fff;
}

/* --- Blog CTA Banner --- */
.blog-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f563a 0%, #16a34a 100%);
    color: #fff;
    margin: 2rem 0 3rem;
}

.blog-cta-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #fff;
}

.blog-cta-content p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    background: #fff;
    color: #0f563a;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blog-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .blog-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .blog-cta-content h3 {
        font-size: 1.2rem;
    }
}

/* --- Blog Card Excerpt --- */
.blog-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BEGIN Alsharq article tables: shared RTL/LTR layout, 2026-10-09 */
.single-post-premium .entry-content,
.single-post-premium .entry-content .article-content {
    min-width: 0;
}

.single-post-premium .entry-content .alsharq-article-table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin-block: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    scrollbar-width: auto;
}

.single-post-premium .entry-content .alsharq-article-table:focus-visible {
    outline: 3px solid var(--color-primary, #ffcc00);
    outline-offset: 3px;
}

.single-post-premium .entry-content table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
    margin: 0;
    background: #fff;
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
}

.single-post-premium .entry-content table th,
.single-post-premium .entry-content table td {
    min-width: 8rem;
    padding: 0.85rem 1rem;
    border-block-end: 1px solid #eee;
    border-inline-end: 1px solid #eee;
    vertical-align: top;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.single-post-premium .entry-content table thead th {
    background: #111;
    color: #fff;
    font-weight: 700;
}

.single-post-premium .entry-content table tbody tr:nth-child(even) {
    background: #f4f4f4;
}

.single-post-premium .entry-content table tbody th {
    font-weight: 700;
    color: #111;
}

.single-post-premium .entry-content table tr > :last-child {
    border-inline-end: 0;
}

.single-post-premium .entry-content table tbody tr:last-child > * {
    border-block-end: 0;
}

.single-post-premium .entry-content table p:last-child {
    margin-bottom: 0;
}

.single-post-premium .entry-content table caption {
    padding: 0.85rem 1rem;
    text-align: start;
    color: #333;
    font-weight: 600;
}

@media (max-width: 600px) {
    .single-post-premium .entry-content table th,
    .single-post-premium .entry-content table td {
        padding: 0.75rem;
    }
}

@media print {
    .single-post-premium .entry-content .alsharq-article-table {
        overflow: visible;
    }
    .single-post-premium .entry-content table {
        min-width: 0;
        font-size: 10pt;
    }
}
/* END Alsharq article tables */
