/**
 * WASLA SINGLE ARTICLE STYLES
 * Beautiful styling for individual blog posts/articles
 * Maintains consistent design with other Wasla pages
 */

/* ===== MAIN ARTICLE CONTAINER ===== */
.wasla-single-article {
    direction: rtl;
    font-family: 'Cairo', 'Tajawal', Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    background: #ffffff;
    min-height: 100vh;
}

/* ===== ARTICLE HERO SECTION ===== */
.article-hero {
    background: linear-gradient(135deg, #000B58 0%, #006A67 100%);
    color: white;
    padding: 140px 0 60px; /* Account for fixed header */
    margin: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 244, 183, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Breadcrumb Navigation */
.article-breadcrumb {
    margin-bottom: 2rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
}

.article-breadcrumb a {
    color: rgba(255, 244, 183, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: #FFF4B7;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.75rem;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

/* Article Title */
.article-title {
    font-size: 3.2rem;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    line-height: 1.3;
    font-family: 'Cairo', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    font-family: 'Tajawal', sans-serif;
    opacity: 0.95;
}

.article-meta-item {]
    margin:0 10px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.article-meta-item i {
    font-size: 1.1rem;
    color: #FFF4B7;
}

.article-meta-item .author-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.article-meta-item .author-link:hover {
    color: #FFF4B7;
    text-decoration: underline;
}

.article-meta-item.article-category {
    background: #FFF4B7;
    color: #000B58;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.article-meta-item.article-category i {
    color: #000B58;
}

/* ===== ARTICLE CONTENT SECTION ===== */
.article-content {
    padding: 80px 0;
    background: #ffffff;
    width: 100%;
    margin: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Main Article Column */
.article-main {
    width: 100%;
    min-width: 0;
}

/* Featured Image */
.article-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 11, 88, 0.1);
    position: relative;
}

.article-featured-image.placeholder {
    background: linear-gradient(135deg, #000B58 0%, #006A67 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFF4B7;
    gap: 1rem;
}

.article-featured-image.placeholder i {
    font-size: 4rem;
}

.placeholder-text {
    font-size: 1.2rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== ARTICLE AUDIO PLAYER ===== */
.article-audio-player {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 11, 88, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.article-audio-player:hover {
    box-shadow: 0 6px 20px rgba(0, 11, 88, 0.12);
}

.audio-player-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audio-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #006A67 0%, #005852 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.audio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 106, 103, 0.3);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.audio-play-btn.playing {
    background: linear-gradient(135deg, #000B58 0%, #003161 100%);
}

.audio-play-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.audio-info {
    flex: 1;
    min-width: 0;
}

.audio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #000B58;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.audio-label i {
    font-size: 1.1rem;
    color: #006A67;
}

.audio-status {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-speed-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.audio-speed-btn:hover {
    border-color: #006A67;
    color: #006A67;
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
}

.audio-progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
    cursor: pointer;
    direction: ltr;
}

.audio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #006A67 0%, #005852 100%);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
    float: right;
}

.audio-progress-bar:hover .audio-progress-fill {
    background: linear-gradient(90deg, #000B58 0%, #006A67 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-audio-player {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .audio-play-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .audio-label {
        font-size: 0.95rem;
    }
    
    .audio-status {
        font-size: 0.75rem;
    }
    
    .audio-speed-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* ===== ARTICLE BODY CONTENT ===== */
.article-body {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-family: 'Cairo', sans-serif;
    color: #000B58;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    scroll-margin-top: 100px; /* For smooth scrolling with fixed header */
}

.article-body h2 {
    font-size: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #FFF4B7;
    position: relative;
}

.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #006A67;
}

.article-body h3 {
    font-size: 1.6rem;
    color: #006A67;
}

.article-body h4 {
    font-size: 1.4rem;
    color: #333;
}

.article-body p {
    margin: 0 0 1.5rem 0;
    text-align: justify;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem 2rem;
    padding: 0;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-body blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 4px solid #006A67;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    font-style: italic;
    color: #555;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 11, 88, 0.05);
}

.article-body blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 4rem;
    color: #006A67;
    opacity: 0.3;
    font-family: serif;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 8px 25px rgba(0, 11, 88, 0.1);
    transition: transform 0.3s ease;
}

.article-body img:hover {
    transform: scale(1.02);
}

.article-body pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-body code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #006A67;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 11, 88, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.article-body th {
    background: #000B58;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.article-body tbody tr:hover {
    background: #f8f9fa;
}

/* Page Navigation for Paginated Posts */
.page-navigation {
    margin: 2rem 0;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.page-links-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: #000B58;
    margin-left: 1rem;
}

.page-number {
    display: inline-block;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.current {
    background: #006A67;
    border-color: #006A67;
    color: white;
}

/* ===== ARTICLE FOOTER ===== */
.article-footer {
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin: 3rem 0;
}

/* Tags Section */
.article-tags {
    margin-bottom: 2.5rem;
}

.tags-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    color: #000B58;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    border: 1px solid #e9ecef;
}

.tag-item:hover {
    background: linear-gradient(135deg, #006A67 0%, #000B58 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 106, 103, 0.2);
}

/* Social Sharing */
.article-sharing {
    text-align: center;
}

.sharing-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.3rem;
    color: #000B58;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-facebook { background: linear-gradient(135deg, #1877f2, #166fe5); }
.share-twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.share-whatsapp { background: linear-gradient(135deg, #25d366, #1ebe57); }
.share-telegram { background: linear-gradient(135deg, #0088cc, #006bb3); }
.share-linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.share-copy { 
    background: linear-gradient(135deg, #6c757d, #495057); 
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
}

/* ===== AUTHOR BOX ===== */
.author-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 20px rgba(0, 11, 88, 0.05);
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #000B58 0%, #006A67 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF4B7;
    font-size: 2.5rem;
    border: 3px solid #FFF4B7;
}

.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.author-name-link {
    color: #000B58;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.author-name-link:hover {
    color: #006A67;
}

.author-bio {
    color: #666;
    margin: 0 0 1rem 0;
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

.author-website {
    color: #006A67;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.author-website:hover {
    color: #000B58;
}

/* ===== POST NAVIGATION ===== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.nav-previous,
.nav-next {
    display: flex;
}

.nav-post {
    background: linear-gradient(135deg, #000B58 0%, #003161 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 1.25rem 3rem !important;
    text-decoration: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: none !important;
    min-width: 160px !important;
    width: 100% !important;
}

.nav-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 106, 103, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-post:hover::before {
    left: 100%;
}

.nav-post:hover {
    transform: translateY(-2px) !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #006A67 0%, #005852 100%) !important;
    color: white !important;
}

.nav-post:active {
    transform: translateY(0) !important;
}

.nav-post i {
    font-size: 1.4rem !important;
    font-weight: bold !important;
    color: white !important;
}

.nav-post span {
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    color: white !important;
}

.nav-previous {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
}

/* ===== ARTICLE SIDEBAR ===== */
.article-sidebar {
    width: 100%;
    max-width: 350px;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-widget {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 11, 88, 0.08);
    border: 1px solid #f0f0f0;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #000B58;
    font-family: 'Cairo', sans-serif;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #FFF4B7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table of Contents */
.sidebar-toc .toc-placeholder {
    color: #666;
    font-style: italic;
    margin: 0;
}

#table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#table-of-contents li {
    margin-bottom: 0.5rem;
}

#table-of-contents a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Tajawal', sans-serif;
    padding: 0.25rem 0;
    display: block;
    transition: color 0.3s ease;
    border-right: 2px solid transparent;
    padding-right: 0.75rem;
}

#table-of-contents a:hover,
#table-of-contents a.active {
    color: #006A67;
    border-right-color: #006A67;
}

/* Related Posts in Sidebar */
.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-post-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.related-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.related-post-link:hover {
    transform: translateX(5px);
}

.related-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    flex: 1;
    min-width: 0;
}

.related-post-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.related-post-link:hover .related-post-title {
    color: #006A67;
}

.related-post-date {
    font-size: 0.8rem;
    color: #999;
    font-family: 'Tajawal', sans-serif;
}

.no-related {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Categories List */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.75rem;
}

.categories-list li:last-child {
    margin-bottom: 0;
}

.category-link {
    color: #666;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #006A67;
}

.category-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-count {
    background: #e9ecef;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

.category-link:hover .category-count {
    background: #006A67;
    color: white;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    color: #666;
    text-decoration: none;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-item:hover {
    color: #006A67;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    transform: translateX(5px);
    border-color: #006A67;
}

.contact-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ===== RELATED ARTICLES SECTION ===== */
.related-articles {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #000B58;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.related-article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 11, 88, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f5f5f5;
}

.related-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 11, 88, 0.15);
}

.related-article-card.placeholder {
    opacity: 0.7;
}

.related-article-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.placeholder-link {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000B58 0%, #006A67 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF4B7;
    font-size: 3rem;
    text-decoration: none;
}

.article-category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 11, 88, 0.9);
    color: #FFF4B7;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    backdrop-filter: blur(10px);
}

.related-article-content {
    padding: 2rem;
}

.related-article-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Cairo', sans-serif;
}

.related-article-title a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article-title a:hover {
    color: #006A67;
}

.related-article-excerpt {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 1.5rem;
}

.related-article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #999;
    font-family: 'Tajawal', sans-serif;
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-date i,
.article-read-time i {
    font-size: 0.9rem;
    color: #006A67;
}

/* ===== NO CONTENT SECTION ===== */
.no-content {
    padding: 100px 0;
    text-align: center;
    background: #f8f9fa;
}

.no-content-message {
    max-width: 500px;
    margin: 0 auto;
}

.no-content-message i {
    font-size: 4rem;
    color: #006A67;
    margin-bottom: 2rem;
}

.no-content-message h2 {
    font-size: 2rem;
    color: #000B58;
    margin-bottom: 1rem;
    font-family: 'Cairo', sans-serif;
}

.no-content-message p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Tajawal', sans-serif;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #000B58 0%, #006A67 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 11, 88, 0.2);
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 11, 88, 0.3);
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .wasla-container {
        padding: 0 20px;
    }
    
    .article-hero {
        padding: 100px 0 25px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    /* Article Meta - Two Rows Grid Layout */
    .article-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        row-gap: 0.75rem;
    }
    
    /* Row 1: Category badge with flexible width for mobile */
    .article-meta-item.article-category {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        white-space: nowrap;
        margin-bottom: 0.9rem;
    }
    
    /* Row 2: Author (left) and Date (right) */
    .article-meta-item:nth-child(3) { /* Author */
        grid-column: 1;
        grid-row: 2;
    }
    
    .article-meta-item:nth-child(2) { /* Date */
        grid-column: 2;
        grid-row: 2;
    }
    
    /* Row 3: Reading time (left) and Views (right) */
    .article-meta-item:nth-child(4) { /* Reading time */
        grid-column: 1;
        grid-row: 3;
    }
    
    .article-meta-item:nth-child(5) { /* Views */
        grid-column: 2;
        grid-row: 3;
    }
    
    .article-content {
        padding: 60px 0;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .article-sidebar {
        position: relative;
        top: auto;
        max-width: 100%;
        order: -1; /* Show sidebar first on mobile */
    }
    
    .article-featured-image {
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .author-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        margin: 2rem 0 !important;
    }
    
    .nav-previous,
    .nav-next {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .nav-post {
        padding: 1.1rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        min-width: auto !important;
        max-width: 100% !important;
        box-shadow: none !important;
        flex: 1 !important;
    }
    
    .nav-post:hover {
        box-shadow: none !important;
    }
    
    .nav-post i {
        font-size: 1.2rem !important;
    }
    
    .nav-post span {
        font-size: 0.95rem !important;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 20px;
    }
    
    .social-share-buttons {
        gap: 0.75rem;
    }
    
    .share-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tags-list {
        gap: 0.5rem;
    }
    
    .tag-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-featured-image {
        height: 200px;
        margin-bottom: 1.5rem;
    }
    
    .article-body {
        font-size: 0.95rem;
    }
    
    .author-box {
        padding: 1.5rem;
    }
    
    .related-article-card {
        margin: 0 -10px;
    }
    
    .related-article-content {
        padding: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .related-post-link {
        gap: 0.75rem;
    }
    
    .related-post-thumb {
        width: 50px;
        height: 50px;
    }
    
    .contact-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.screen-reader-text {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Focus styles for better keyboard navigation */
.nav-post:focus,
.share-btn:focus,
.tag-item:focus,
.category-link:focus,
.contact-item:focus {
    outline: 2px solid #006A67;
    outline-offset: 2px;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* ===== GUTENBERG BLOCK PATTERNS STYLES ===== */

/* Article Introduction Box */
.article-body .article-introduction {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%) !important;
    border: none !important;
    border-right: 5px solid #006A67 !important;
    box-shadow: 0 5px 20px rgba(0, 106, 103, 0.1) !important;
    margin: 2rem 0 !important;
}

.article-body .wasla-section-title {
    color: #000B58 !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.article-body .article-intro-text {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: #333 !important;
    margin-bottom: 1.5rem !important;
}

.article-body .key-points-list {
    margin: 1rem 0 0 2rem !important;
}

.article-body .key-points-list li {
    margin-bottom: 1rem !important;
    line-height: 1.7 !important;
}

.article-body .key-points-list li strong {
    color: #006A67 !important;
    font-weight: 700 !important;
}

/* Main and Sub Headings with Icons */
.article-body .wasla-main-heading {
    color: #000B58 !important;
    font-size: 2rem !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 3px solid #FFF4B7 !important;
    position: relative !important;
    font-family: 'Cairo', sans-serif !important;
}

.article-body .wasla-main-heading::before {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    width: 80px !important;
    height: 3px !important;
    background: #006A67 !important;
}

.article-body .wasla-sub-heading {
    color: #006A67 !important;
    font-size: 1.5rem !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Golden Tip Box */
.article-body .wasla-tip-box {
    background: linear-gradient(135deg, #FFF4B7 0%, #fff9d9 100%) !important;
    border: none !important;
    border-right: 5px solid #006A67 !important;
    border-radius: 12px !important;
    padding: 1.5rem 2rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 4px 15px rgba(255, 244, 183, 0.3) !important;
}

.article-body .tip-icon-text {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #000B58 !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Comparison Table Styling */
.article-body .wasla-comparison-table table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 2rem 0 !important;
    box-shadow: 0 8px 25px rgba(0, 11, 88, 0.1) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.article-body .wasla-comparison-table th {
    background: linear-gradient(135deg, #000B58 0%, #006A67 100%) !important;
    color: white !important;
    padding: 1.25rem !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-align: right !important;
}

.article-body .wasla-comparison-table td {
    padding: 1.25rem !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-align: right !important;
    vertical-align: top !important;
}

.article-body .wasla-comparison-table td strong {
    color: #000B58 !important;
    font-family: 'Cairo', sans-serif !important;
}

.article-body .wasla-comparison-table tbody tr:last-child td {
    border-bottom: none !important;
}

.article-body .wasla-comparison-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* FAQ Section */
.article-body .wasla-faq-item {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 1.5rem 2rem !important;
    margin: 1rem 0 !important;
    transition: all 0.3s ease !important;
}

.article-body .wasla-faq-item:hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #f8f9fa 100%) !important;
    border-color: #006A67 !important;
    box-shadow: 0 4px 15px rgba(0, 106, 103, 0.1) !important;
}

.article-body .faq-question {
    color: #000B58 !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
}

.article-body .faq-answer {
    color: #555 !important;
    line-height: 1.7 !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

/* Action/CTA Box */
.article-body .wasla-action-box {
    background: linear-gradient(135deg, #000B58 0%, #006A67 100%) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 11, 88, 0.2) !important;
}

.article-body .action-heading {
    color: #FFF4B7 !important;
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
    font-family: 'Cairo', sans-serif !important;
}

.article-body .action-description {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    margin-bottom: 2rem !important;
    line-height: 1.7 !important;
}

.article-body .wasla-cta-button .wp-block-button__link {
    background: #FFF4B7 !important;
    color: #000B58 !important;
    padding: 1rem 2.5rem !important;
    border-radius: 30px !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: 2px solid #FFF4B7 !important;
}

.article-body .wasla-cta-button .wp-block-button__link:hover {
    background: transparent !important;
    color: #FFF4B7 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(255, 244, 183, 0.3) !important;
}

/* Step-by-Step Guide Container */
.article-body .step-container {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%) !important;
    border: none !important;
    border-right: 5px solid #006A67 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 4px 15px rgba(0, 106, 103, 0.08) !important;
    transition: all 0.3s ease !important;
}

.article-body .step-container:hover {
    box-shadow: 0 8px 25px rgba(0, 106, 103, 0.15) !important;
    transform: translateX(5px) !important;
}

.article-body .step-number {
    color: #000B58 !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
}

.article-body .step-details {
    margin: 1rem 0 0 2rem !important;
}

.article-body .step-details li {
    margin-bottom: 0.75rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

/* Completion Box */
.article-body .completion-box {
    background: linear-gradient(135deg, #006A67 0%, #005852 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    text-align: center !important;
    margin: 2rem 0 !important;
    box-shadow: 0 8px 25px rgba(0, 106, 103, 0.2) !important;
}

.article-body .completion-box p {
    color: white !important;
    margin: 0 !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Comparison Columns */
.article-body .wasla-comparison-columns {
    margin: 2rem 0 !important;
}

.article-body .option-column {
    background: white !important;
    border: 2px solid #e9ecef !important;
    border-radius: 15px !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
}

.article-body .option-column:hover {
    border-color: #006A67 !important;
    box-shadow: 0 8px 25px rgba(0, 106, 103, 0.15) !important;
    transform: translateY(-5px) !important;
}

.article-body .option-icon {
    font-size: 3rem !important;
    margin: 1rem 0 !important;
}

.article-body .pros-title {
    color: #006A67 !important;
    font-size: 1.2rem !important;
    margin: 1.5rem 0 1rem 0 !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
}

.article-body .cons-title {
    color: #c70000 !important;
    font-size: 1.2rem !important;
    margin: 1.5rem 0 1rem 0 !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700 !important;
}

/* Final Recommendation Box */
.article-body .final-recommendation {
    background: linear-gradient(135deg, #FFF4B7 0%, #fff9d9 100%) !important;
    border: none !important;
    border-right: 5px solid #006A67 !important;
    border-radius: 15px !important;
    padding: 2rem 2.5rem !important;
    margin: 2rem 0 !important;
    box-shadow: 0 8px 25px rgba(255, 244, 183, 0.3) !important;
}

.article-body .final-recommendation h3 {
    color: #000B58 !important;
    font-size: 1.6rem !important;
    margin-bottom: 1rem !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Quick Tips List */
.article-body .tip-item {
    background: #f9f9f9 !important;
    border: none !important;
    border-right: 4px solid #FFF4B7 !important;
    border-radius: 10px !important;
    padding: 1.25rem 1.75rem !important;
    margin: 0.75rem 0 !important;
    transition: all 0.3s ease !important;
}

.article-body .tip-item:hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #f9f9f9 100%) !important;
    border-right-color: #006A67 !important;
    box-shadow: 0 4px 15px rgba(0, 106, 103, 0.1) !important;
    transform: translateX(5px) !important;
}

/* Article Tags Styling */
.article-body .article-tags {
    color: #666 !important;
    font-style: italic !important;
    font-size: 0.95rem !important;
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid #e9ecef !important;
}

.article-body .article-tags em {
    color: #999 !important;
}

/* Wide Images in Patterns */
.article-body .alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2.5rem 0 !important;
}

.article-body .wasla-article-image {
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 11, 88, 0.12) !important;
}

.article-body .wasla-article-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.article-body .wasla-article-image figcaption {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 1rem 1.5rem !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    font-style: italic !important;
    text-align: center !important;
    font-family: 'Tajawal', sans-serif !important;
}

/* Numbered Lists in Patterns */
.article-body .wasla-numbered-list {
    counter-reset: wasla-counter !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 1.5rem 0 !important;
}

.article-body .wasla-numbered-list li {
    position: relative !important;
    padding-right: 3rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.7 !important;
}

.article-body .wasla-numbered-list li::before {
    counter-increment: wasla-counter !important;
    content: counter(wasla-counter) !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 2rem !important;
    height: 2rem !important;
    background: linear-gradient(135deg, #006A67 0%, #005852 100%) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    font-family: 'Cairo', sans-serif !important;
}

.article-body .wasla-numbered-list li strong {
    color: #000B58 !important;
    font-weight: 700 !important;
}

/* Responsive Patterns Styling */
@media (max-width: 768px) {
    .article-body .wasla-section-title,
    .article-body .wasla-main-heading {
        font-size: 1.5rem !important;
    }
    
    .article-body .wasla-sub-heading {
        font-size: 1.3rem !important;
    }
    
    .article-body .article-introduction,
    .article-body .wasla-tip-box,
    .article-body .step-container,
    .article-body .wasla-faq-item,
    .article-body .option-column {
        padding: 1.25rem !important;
    }
    
    .article-body .wasla-action-box {
        padding: 2rem 1.5rem !important;
    }
    
    .article-body .action-heading {
        font-size: 1.5rem !important;
    }
    
    .article-body .wasla-comparison-columns {
        display: block !important;
    }
    
    .article-body .option-column {
        margin-bottom: 1.5rem !important;
    }
    
    .article-body .wasla-numbered-list li {
        padding-right: 2.5rem !important;
    }
    
    .article-body .wasla-numbered-list li::before {
        width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.85rem !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .article-sidebar,
    .social-share-buttons,
    .post-navigation,
    .related-articles {
        display: none;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-title {
        font-size: 20pt;
        color: black;
    }
}