/*
Theme Name: mizbar
Theme URI: https://mizbar.com
Author: Your Name
Author URI: https://mizbar.com
Description: A minimalist Arabic WordPress theme with RTL support
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mizbar
Tags: rtl-language-support, blog, minimal, arabic, clean
*/

/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    --primary-color: #029365;
    --primary-hover: #027a54;
    --dark-bg: #1a2332;
    --light-bg: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --footer-bg: #1a2332;
    --transition: all 0.3s ease;
    
    /* Tailwind color mappings for gradients */
    --secondary-400: #029365;
    --secondary-500: #029365;
    --secondary-600: #029365;
    --secondary-700: #027a54;
    --secondary-800: #016143;
    --secondary-100: #e8f5f5;
    --secondary-50: #f0f9f8;
    --main-100: #f5f5f5;
    --main-400: #999999;
    --main-500: #666666;
    --main-600: #4d4d4d;
    --main-700: #333333;
    --main-800: #202B38;
    --main-900: #1a1f28;
    --accent: #FEF7F1;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===========================
   Container & Layout
   =========================== */

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

.site-content {
    min-height: calc(100vh - 200px);
    padding: 120px 0 80px;
    background-color: var(--white);
}

.blog-post-content {
    padding-top: 48px;
    padding-bottom: 48px;
    background-color: var(--white);
}

/* ===========================
   Custom Animations
   =========================== */

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(2, 147, 101, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(31, 41, 55, 0.4);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Modern glassmorphism effect */
.glass-effect {
    backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(254, 247, 240, 0.95);
    border: 1px solid rgba(2, 147, 101, 0.3);
}

/* ===========================
   Header Styles
   =========================== */

.site-header {
    background-color: rgba(254, 247, 240, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(2, 147, 101, 0.1);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 50;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .header-container {
        padding: 24px 24px;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding: 24px 32px;
    }
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img,
.site-logo-img {
    max-height: 32px;
    height: 32px;
    width: auto;
    display: block;
}

.site-logo a,
.logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.site-logo a:hover,
.logo-link:hover {
    opacity: 0.8;
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--primary-color);
}

/* CTA Button */
.cta-button,
.header-cta {
    background: linear-gradient(to right, var(--secondary-600), var(--main-800));
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cta-button:hover,
.header-cta:hover {
    background: linear-gradient(to right, var(--secondary-700), var(--main-900));
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--main-600);
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: var(--main-900);
    background-color: var(--secondary-100);
}

.menu-toggle .menu-icon,
.menu-toggle .close-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.menu-toggle.active .menu-icon {
    display: none;
}

.menu-toggle.active .close-icon {
    display: block !important;
}

.menu-toggle:not(.active) .close-icon {
    display: none !important;
}

/* Mobile Navigation */
.mobile-navigation {
    display: none;
    background-color: rgba(254, 247, 240, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(2, 147, 101, 0.1);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-top: -1px;
}

.mobile-navigation.active {
    display: block;
}

.mobile-nav-menu {
    padding: 16px 8px 24px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-list li {
    width: 100%;
}

.mobile-nav-list a {
    display: block;
    width: 100%;
    text-align: right;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--main-600);
}

.mobile-nav-list a:hover,
.mobile-nav-list .current-menu-item a {
    color: var(--secondary-600);
    background-color: var(--secondary-50);
}

.mobile-cta {
    width: 100%;
    text-align: center;
    margin-top: 16px;
}

/* ===========================
   Footer Styles
   =========================== */

.site-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
    width: 100%;
}

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

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 70px;
    max-width: 250px;
    width: auto;
    height: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===========================
   Blog & Post Styles
   =========================== */

.content-area {
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .content-area {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .content-area {
        padding: 0 40px;
    }
}

.main-content {
    background-color: var(--white);
}

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

@media (min-width: 640px) {
    .page-content {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .page-content {
        padding: 0 40px;
    }
}

/* Post List */
.post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .post-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .post-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.post-thumbnail img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content-wrapper {
    padding: 35px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-meta .category {
    background-color: #e8f5f5;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.post-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}



.single-post .post-thumbnail {
    border-radius: 12px;
    margin-bottom: 30px;
}

.single-post .post-thumbnail img {
    height: 400px;
    border-radius: 12px;
}

.single-post .post-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--light-bg);
}

.single-post .post-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.single-post .post-meta {
    font-size: 15px;
}

.single-post .entry-content {
    font-size: 18px;
    line-height: 1.9;
    color: #444;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin-top: 35px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.single-post .entry-content h2 {
    font-size: 28px;
}

.single-post .entry-content h3 {
    font-size: 24px;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 20px;
    padding-right: 25px;
}

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

/* ===========================
   Blog Post Layout
   =========================== */

.blog-post-content {
    background-color: var(--white);
    min-height: 100vh;
}

.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 640px) {
    .blog-post-layout {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .blog-post-layout {
        padding: 0 40px;
        grid-template-columns: 2fr 1fr;
        gap: 32px;
    }
}

.blog-post-main {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-600);
    font-weight: 500;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: var(--secondary-700);
    gap: 12px;
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(4px);
}

/* Article Header */
.article-header {
    margin-bottom: 32px;
    padding: 0;
}

.article-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--main-900);
    margin: 0 0 24px 0;
    padding: 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 32px;
    }
}

/* Author Info Card */
.author-info-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--secondary-100);
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.author-info-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(to bottom right, var(--secondary-500), var(--main-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--main-900);
    margin: 0 0 4px 0;
}

.author-slug {
    font-size: 14px;
    color: var(--main-600);
    margin: 0 0 4px 0;
}

.author-description {
    font-size: 12px;
    color: var(--main-500);
    margin: 0;
}

.article-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--main-600);
}

.meta-item svg {
    color: var(--secondary-600);
}

/* Featured Image */
.featured-image-wrapper {
    aspect-ratio: 16 / 9;
    background: linear-gradient(to bottom right, var(--secondary-100), var(--main-100));
    border-radius: 24px;
    margin-bottom: 32px;
    overflow: hidden;
    position: relative;
}

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

.featured-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(2, 147, 101, 0.2), rgba(32, 43, 56, 0.2));
}

.featured-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom right, var(--secondary-500), var(--main-600));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 16px;
}

.placeholder-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

/* ===========================
   Prose Styles
   =========================== */

.prose {
    color: var(--main-700);
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--main-900);
    font-weight: 700;
    scroll-margin-top: 96px;
}

.prose h1 {
    font-size: 36px;
    margin-bottom: 24px;
    margin-top: 0;
}

.prose h2 {
    font-size: 28px;
    margin-bottom: 16px;
    margin-top: 32px;
}

.prose h3 {
    font-size: 24px;
    margin-bottom: 12px;
    margin-top: 24px;
}

.prose p {
    margin-bottom: 16px;
    line-height: 1.75;
}

.prose ul,
.prose ol {
    margin-bottom: 16px;
    padding-right: 24px;
}

.prose li {
    line-height: 1.75;
    margin-bottom: 8px;
}

.prose strong {
    font-weight: 700;
    color: var(--main-900);
}

.prose a {
    color: var(--secondary-600);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: var(--secondary-700);
}

.prose blockquote {
    border-right: 4px solid var(--secondary-300);
    padding-right: 16px;
    font-style: italic;
    color: var(--main-600);
    margin: 24px 0;
}

.prose code {
    background-color: var(--secondary-100);
    color: var(--secondary-800);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.prose pre {
    background-color: var(--main-100);
    border: 1px solid var(--secondary-200);
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
    margin: 24px 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
}

.article-content {
    margin-bottom: 48px;
    padding: 0;
}

.article-content.prose {
    padding: 0;
    margin: 0 0 48px 0;
}

/* Article CTA Section */
.article-cta-section {
    background: linear-gradient(to bottom right, var(--secondary-50), var(--white), var(--main-100));
    border-radius: 32px;
    padding: 32px;
    border: 1px solid var(--secondary-100);
    margin-bottom: 48px;
    text-align: center;
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(to bottom right, var(--secondary-500), var(--main-600));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 auto 24px;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-900);
    margin-bottom: 16px;
}

.cta-description {
    color: var(--main-600);
    margin-bottom: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to right, var(--secondary-600), var(--main-700));
    color: var(--white);
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta-button-link:hover {
    background: linear-gradient(to right, var(--secondary-700), var(--main-800));
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Post Sidebar */
.blog-post-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--secondary-100);
    margin-bottom: 24px;
}

.toc-title {
    font-weight: 700;
    color: var(--main-900);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary-600);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-link {
    display: block;
    color: var(--main-600);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.toc-link:hover,
.toc-link.active {
    color: var(--secondary-600);
    background-color: var(--secondary-50);
}

.toc-link-nested {
    margin-right: 16px;
    font-size: 14px;
}

.toc-sublist {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Article Stats */
.article-stats-card {
    background: linear-gradient(to bottom right, var(--secondary-50), var(--main-100));
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--secondary-100);
}

.stats-title {
    font-weight: 700;
    color: var(--main-900);
    margin-bottom: 16px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    color: var(--main-600);
}

.stat-value {
    font-weight: 500;
    color: var(--main-900);
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--light-bg);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    flex: 1;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.post-navigation a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background-color: var(--white);
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-bg);
    color: var(--text-dark);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-bg);
}

.widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-dark);
    transition: var(--transition);
    display: block;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background-color: var(--white);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pagination a:hover,
.pagination .current {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===========================
   Search Component
   =========================== */

.search-component {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}

.search-component-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    background-color: var(--white);
    border: 2px solid var(--secondary-100);
    border-radius: 1rem;
    padding: 20px 80px 20px 32px;
    font-size: 18px;
    font-weight: 500;
    color: var(--main-800);
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    direction: rtl;
}

.search-input::placeholder {
    color: var(--main-400);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-400);
    box-shadow: 0 0 0 4px rgba(2, 147, 101, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, var(--secondary-600), var(--secondary-700));
    color: var(--white);
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: linear-gradient(to right, var(--secondary-700), var(--secondary-800));
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.search-button svg {
    width: 20px;
    height: 20px;
}

.search-component-wrapper:focus-within .search-button {
    transform: translateY(-50%) scale(1.05);
}

/* ===========================
   Article Card Component
   =========================== */

.article-card {
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(2, 147, 101, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(2, 147, 101, 0.2);
    transform: translateY(-4px);
}

.article-card-image {
    height: 192px;
    background: linear-gradient(to bottom right, var(--secondary-100), var(--main-100));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.article-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(to bottom right, var(--secondary-600), var(--main-800));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.article-card-content {
    padding: 24px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.article-card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--main-500);
}

.article-card-date-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-400);
    border-radius: 50%;
}

.article-card-category {
    background-color: var(--secondary-100);
    color: var(--secondary-700);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.article-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-900);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.article-card:hover .article-card-title {
    color: var(--secondary-600);
}

.article-card-excerpt {
    color: var(--main-600);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-600);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-card:hover .article-card-link {
    color: var(--secondary-700);
    gap: 12px;
}

.article-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-link svg {
    transform: translateX(4px);
}

/* Article card with thumbnail */
.article-card .post-thumbnail {
    height: 192px;
    overflow: hidden;
    background: linear-gradient(to bottom right, var(--secondary-100), var(--main-100));
    border-radius: 24px 24px 0 0;
}

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

.article-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container,
    .header-container,
    .footer-container {
        padding: 0 20px;
    }
    
    .content-area {
        padding: 0 20px;
    }
    
    .blog-post-layout {
        padding: 0 20px;
    }
    
    .site-content {
        padding: 100px 0 60px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .blog-post-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-sticky {
        position: static;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a {
        padding: 15px 0;
    }
    
    .cta-button,
    .header-cta {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .site-logo img {
        max-height: 50px;
        max-width: 150px;
    }
    
    .footer-logo img {
        max-height: 60px;
        max-width: 200px;
    }
    
    .search-component {
        max-width: 100%;
    }
    
    .search-input {
        padding: 16px 70px 16px 28px;
        font-size: 16px;
    }
    
    .search-button {
        padding: 12px;
    }
    
    .search-button svg {
        width: 18px;
        height: 18px;
    }
    
    .single-post {
        padding: 40px 30px;
    }
    
    .single-post .post-title {
        font-size: 28px;
    }
    
    .single-post .post-thumbnail img {
        height: 250px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .article-card-content {
        padding: 20px;
    }
    
    .article-card-title {
        font-size: 18px;
    }
    
    .article-card-image,
    .article-card .post-thumbnail {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .site-logo img {
        max-height: 45px;
        max-width: 120px;
    }
    
    .footer-logo img {
        max-height: 50px;
        max-width: 180px;
    }
    
    .site-content {
        padding: 90px 0 50px;
    }
    
    .content-area {
        gap: 40px;
    }
    
    .post-list {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .article-card-title {
        font-size: 16px;
    }
    
    .article-card-excerpt {
        font-size: 13px;
    }
    
    .article-card-image,
    .article-card .post-thumbnail {
        height: 140px;
    }
    
    .article-card-content {
        padding: 16px;
    }
    
    .search-input {
        padding: 14px 60px 14px 24px;
        font-size: 15px;
    }
    
    .search-button {
        padding: 10px;
    }
    
    .search-button svg {
        width: 16px;
        height: 16px;
    }
    
    .single-post {
        padding: 30px 20px;
    }
    
    .single-post .post-title {
        font-size: 24px;
    }
    
    .single-post .entry-content {
        font-size: 16px;
    }
    
    .cta-button,
    .header-cta {
        padding: 10px 20px;
        font-size: 14px;
    }
}
