
:root {
 --primary-color: #5E3449;
 --secondary-color: #222222;
 --accent-color: #8B5A7C;
 --accent-light: #A67394;
 --text-primary: #222222;
 --text-secondary: #666666;
 --text-light: #999999;
 --bg-light: #F8F9FA;
 --bg-white: #FFFFFF;
 --border-color: #E1E8ED;
 --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
 --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
 --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}


* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 font-family: 'Dubai', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
 direction: rtl;
 text-align: right;
 line-height: 1.8;
 color: var(--text-primary);
 background: var(--bg-light);
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}


.hero-section {
 background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
 color: white;
 padding: 100px 20px;
 text-align: center;
 position: relative;
 overflow: hidden;
}

.hero-section::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
 pointer-events: none;
}

.hero-section h1 {
 font-size: 3rem;
 margin-bottom: 1rem;
 font-weight: 700;
 position: relative;
 z-index: 1;
}

.hero-subtitle {
 font-size: 1.25rem;
 opacity: 0.95;
 position: relative;
 z-index: 1;
}


.featured-post {
 padding: 60px 0;
 background: white;
}

.featured-card {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 40px;
 align-items: center;
 box-shadow: var(--shadow-md);
 border-radius: 12px;
 overflow: hidden;
 background: white;
 transition: box-shadow 0.3s ease;
}

.featured-card:hover {
 box-shadow: var(--shadow-lg);
}

.featured-image {
 width: 100%;
 height: 400px;
 object-fit: cover;
}

.featured-content {
 padding: 40px;
}

.badge-special {
 display: inline-block;
 background: var(--primary-color);
 color: white;
 padding: 6px 18px;
 border-radius: 20px;
 font-size: 0.875rem;
 margin-bottom: 15px;
 font-weight: 500;
}

.featured-content h2 {
 color: var(--secondary-color);
 margin-bottom: 15px;
 line-height: 1.3;
}

.featured-meta {
 display: flex;
 gap: 20px;
 margin: 15px 0;
 font-size: 0.9rem;
 color: var(--text-secondary);
}

.btn-read-more {
 display: inline-block;
 background: var(--primary-color);
 color: white;
 padding: 12px 30px;
 border-radius: 6px;
 text-decoration: none;
 font-weight: 500;
 transition: all 0.3s ease;
 margin-top: 20px;
}

.btn-read-more:hover {
 background: var(--secondary-color);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}


.posts-grid {
 padding: 60px 0;
}

.grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
 gap: 30px;
}

.post-card {
 background: white;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: var(--shadow-sm);
 transition: all 0.3s ease;
}

.post-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

.post-link {
 text-decoration: none;
 color: inherit;
 display: block;
}

.post-image {
 width: 100%;
 height: 220px;
 object-fit: cover;
 transition: transform 0.3s ease;
}

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

.post-content {
 padding: 25px;
}

.post-content h3 {
 margin-bottom: 10px;
 font-size: 1.25rem;
 line-height: 1.4;
 color: var(--secondary-color);
 transition: color 0.3s ease;
}

.post-card:hover h3 {
 color: var(--primary-color);
}

.post-meta {
 display: flex;
 gap: 15px;
 margin-bottom: 15px;
 font-size: 0.875rem;
 color: var(--text-secondary);
}

.post-meta .author {
 color: var(--primary-color);
}

.link-read-more {
 color: var(--primary-color);
 font-weight: 500;
 display: inline-block;
 margin-top: 10px;
 transition: all 0.3s ease;
}

.post-card:hover .link-read-more {
 padding-right: 5px;
}


.cta-section {
 background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
 color: white;
 padding: 80px 20px;
 text-align: center;
 margin-top: 60px;
 position: relative;
}

.cta-section::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
 pointer-events: none;
}

.cta-section h2 {
 font-size: 2.5rem;
 margin-bottom: 15px;
 position: relative;
 z-index: 1;
}

.cta-section p {
 font-size: 1.125rem;
 margin-bottom: 30px;
 opacity: 0.95;
 position: relative;
 z-index: 1;
}

.btn-cta {
 display: inline-block;
 background: white;
 color: var(--primary-color);
 padding: 15px 40px;
 border-radius: 30px;
 text-decoration: none;
 font-size: 1.125rem;
 font-weight: 600;
 transition: all 0.3s ease;
 position: relative;
 z-index: 1;
}

.btn-cta:hover {
 transform: translateY(-3px);
 box-shadow: 0 10px 30px rgba(0,0,0,0.2);
 background: var(--bg-light);
}


.post-container {
 background: white;
 padding: 40px 0;
 min-height: 100vh;
}

.post-header {
 text-align: center;
 margin-bottom: 40px;
 padding: 0 20px;
}

.post-header h1 {
 font-size: 2.5rem;
 margin-bottom: 20px;
 line-height: 1.3;
 color: var(--primary-color);
}

.post-header .post-meta {
 display: flex;
 justify-content: center;
 align-items: center;
 flex-direction: row;
 flex-wrap: nowrap;
 gap: 20px;
 font-size: 1rem;
}

.post-container .featured-image {
 width: 100%;
 max-width: 900px;
 height: auto;
 margin: 0 auto 40px;
 display: block;
 border-radius: 12px;
 box-shadow: var(--shadow-md);
}

.post-content {
 max-width: 800px;
 margin: 40px auto;
 font-size: 1.125rem;
 line-height: 1.8;
 color: var(--text-primary);
}

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

.post-content h2 {
 margin: 40px 0 20px;
 font-size: 1.875rem;
 color: var(--primary-color);
}

.post-content h3 {
 margin: 30px 0 15px;
 font-size: 1.5rem;
 color: var(--secondary-color);
}

.post-content ul, .post-content ol {
 margin: 20px 0;
 padding-right: 30px;
}

.post-content li {
 margin-bottom: 10px;
}

.post-content blockquote {
 margin: 30px 0;
 padding: 20px 30px;
 border-right: 4px solid var(--primary-color);
 background: var(--bg-light);
 font-style: italic;
}

.post-content img {
 max-width: 100%;
 height: auto;
 border-radius: 8px;
 margin: 20px 0;
}


.related-posts {
 margin-top: 60px;
 padding-top: 40px;
 border-top: 1px solid var(--border-color);
}

.related-posts h3 {
 font-size: 1.75rem;
 margin-bottom: 30px;
 color: var(--primary-color);
}

.related-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
 gap: 20px;
}

.related-card {
 text-decoration: none;
 color: inherit;
 transition: all 0.3s ease;
 display: block;
}

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

.related-card img {
 width: 100%;
 height: 150px;
 object-fit: cover;
 border-radius: 8px;
 box-shadow: var(--shadow-sm);
 transition: box-shadow 0.3s ease;
}

.related-card:hover img {
 box-shadow: var(--shadow-md);
}

.related-card h4 {
 margin-top: 10px;
 font-size: 1rem;
 line-height: 1.4;
 color: var(--secondary-color);
 transition: color 0.3s ease;
}

.related-card:hover h4 {
 color: var(--primary-color);
}


.post-cta {
 background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
 color: white;
 padding: 40px;
 border-radius: 12px;
 text-align: center;
 margin-top: 60px;
 box-shadow: var(--shadow-md);
}

.post-cta h3 {
 font-size: 1.875rem;
 margin-bottom: 15px;
 color: white;
}

.post-cta p {
 margin-bottom: 25px;
 opacity: 0.95;
}


@keyframes fadeInUp {
 from {
 opacity: 0;
 transform: translateY(20px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

.post-card {
 animation: fadeInUp 0.6s ease-out;
 animation-fill-mode: both;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }


@media (max-width: 768px) {
 .hero-section h1 {
 font-size: 2rem;
 }
 
 .hero-subtitle {
 font-size: 1rem;
 }
 
 .featured-card {
 grid-template-columns: 1fr;
 }
 
 .featured-image {
 height: 250px;
 }
 
 .featured-content {
 padding: 25px;
 }
 
 .grid {
 grid-template-columns: 1fr;
 gap: 20px;
 }
 
 .post-header h1 {
 font-size: 1.875rem;
 }
 
 .post-header .post-meta {
 flex-wrap: nowrap;
 gap: 15px;
 }
 
 .cta-section h2 {
 font-size: 1.875rem;
 }
 
 .post-content {
 padding: 0 20px;
 font-size: 1rem;
 }
 
 .related-grid {
 grid-template-columns: 1fr;
 }
}


img.lazy {
 opacity: 0;
 transition: opacity 0.3s;
}

img.lazy.loaded {
 opacity: 1;
}


:focus {
 outline: 2px solid var(--primary-color);
 outline-offset: 2px;
}

.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0,0,0,0);
 white-space: nowrap;
 border: 0;
}


@media print {
 .hero-section,
 .cta-section,
 .related-posts,
 .post-cta,
 header,
 footer {
 display: none;
 }
 
 .post-content {
 max-width: 100%;
 color: black;
 }
 
 a {
 text-decoration: none;
 color: black;
 }
}


.skeleton {
 background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
 background-size: 200% 100%;
 animation: loading 1.5s infinite;
}

@keyframes loading {
 0% {
 background-position: 200% 0;
 }
 100% {
 background-position: -200% 0;
 }
}

/* Ensure meta (author, date, views) align on one line */
.post-meta {
 display: flex;
 align-items: center;
}
.post-meta span,
.post-meta time {
 display: inline-flex;
 align-items: center;
 gap: 8px;
}
.post-header .post-meta {
 align-items: center;
 flex-wrap: nowrap;
}
