/* Article Page Styles */
.article-page {
    background-color: var(--white);
}

.article-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: #000;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    margin: 0;
    /* Remove old margin */
    max-width: none;
    /* Remove old max-width */
    border-radius: 0;
    /* Remove old border-radius */
    box-shadow: none;
    /* Remove old box-shadow */
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.article-hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.article-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.article-category {
    color: var(--primary-400);
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.article-content {
    padding-top: 8rem;
    /* Space for the overlapping image */
    padding-bottom: 4rem;
    background: var(--white);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--secondary-500);
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-size: 1.4rem;
    color: var(--secondary-500);
    margin: 2rem 0 1rem;
}

.article-body ul {
    margin-bottom: 1.5rem;
    padding-inline-start: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

/* Share Section */
.share-section {
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

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

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button.linkedin {
    background: #0a66c2;
}

.share-button.copy {
    background: var(--gray-500);
}

.share-button.print {
    background: var(--gray-700);
}

/* Related Articles */
.related-articles {
    background: var(--gray-50);
    padding: 4rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 200px;
    overflow: hidden;
}

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

.related-content {
    padding: 1.5rem;
}

.related-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

.related-category {
    color: var(--primary-500);
    font-weight: 600;
}

.related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-content h4 a {
    color: var(--secondary-500);
    text-decoration: none;
}

.related-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

/* RTL Adjustments */
[dir="rtl"] .article-body ul {
    padding-inline-start: 1.5rem;
}