/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333;
    --accent-color: #d4af37;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
    --link-color: #0066cc;
    --link-hover: #004499;
    --max-width: 1200px;
    --spacing: 1rem;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-family-fa: 'Vazirmatn', var(--font-family);
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn-v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations'),
         url('../fonts/vazirmatn-v33.003/fonts/variable/Vazirmatn[wght].ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
    unicode-range: U+0020-007E, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

html[lang="fa"] body,
[dir="rtl"] body {
    font-family: var(--font-family-fa);
}

/* RTL Support for Persian */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .header-content,
[dir="rtl"] .main-nav ul,
[dir="rtl"] .footer-content,
[dir="rtl"] .two-column,
[dir="rtl"] .article-grid,
[dir="rtl"] .article-card-content,
[dir="rtl"] .article-card-footer,
[dir="rtl"] .article-tags,
[dir="rtl"] .pagination,
[dir="rtl"] .admin-table th,
[dir="rtl"] .admin-table td {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

/* [dir="rtl"] .main-nav ul {
    /* Keep normal direction for RTL - items will appear right-to-left naturally */


[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-actions .theme-toggle {
    order: -1;
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .logo {
    order: 3;
}

[dir="rtl"] .main-nav {
    order: 2;
}

[dir="rtl"] .header-actions {
    order: 1;
}

[dir="rtl"] .mobile-menu-toggle {
    order: 1;
}

[dir="rtl"] .article-card-meta {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .article-card-footer {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

[dir="rtl"] .pagination {
    flex-direction: row-reverse;
}

[dir="rtl"] .sidebar-widget a::before {
    content: '←';
    right: 0;
    left: auto;
}

[dir="rtl"] .sidebar-widget a {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .sidebar-widget a:hover {
    padding-left: 0;
    padding-right: 1.8rem;
}

[dir="rtl"] .sidebar-widget ul li:hover {
    padding-left: 0;
    padding-right: 0.5rem;
    margin-left: 0;
    margin-right: -0.5rem;
}

[dir="rtl"] .admin-table a::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .value-item {
    border-left: none;
}

[dir="rtl"] .about-section h2::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .social-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .cta-buttons {
    flex-direction: row-reverse;
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.lang-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-link:hover {
    background: rgba(212, 175, 55, 0.3);
    color: var(--accent-color);
}

.lang-link.active {
    background: rgba(212, 175, 55, 0.5);
    color: var(--accent-color);
    cursor: default;
}

/* Language switcher in navbar */
.language-switcher-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
}

.language-switcher-nav form {
    display: inline;
    margin: 0;
}

.language-switcher-nav .lang-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .language-switcher-nav {
    margin-left: 0;
    margin-right: 1rem;
    padding-left: 0;
    padding-right: 1rem;
    border-left: none;
}

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

/* Header */
.header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    border-bottom: 3px solid var(--accent-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.logo a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    line-height: 1.5;
    height: 100%;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu-toggle:hover span {
    background-color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 40px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
    line-height: 1;
    box-sizing: border-box;
    /* Match search form button height */
    height: auto;
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.theme-toggle:active {
    transform: translateY(0);
}


.search-form input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-form button {
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.search-form button:hover {
    background-color: #b8941f;
}

/* Messages */
.messages {
    padding: 1rem 0;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Article/Post Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    letter-spacing: 0.01em;
    position: relative;
}

.article-card-meta span {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
}

.article-card-meta a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.125rem 0;
}

.article-card-meta a:hover {
    color: var(--accent-color);
}

.article-card-meta a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.article-card-meta a:hover::after {
    width: 100%;
}

.article-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.article-card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.article-card-title a:hover {
    color: var(--link-color);
}

.article-card-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.article-card-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    width: 100%;
}

.article-card-footer .views-pill {
    margin-inline-start: auto;
}

[dir="rtl"] .article-card-footer .views-pill {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.views-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-weight: 600;
    color: var(--primary-color);
}

[dir="rtl"] .views-pill {
    flex-direction: row-reverse;
}

.views-number {
    font-variant-numeric: tabular-nums;
}

.views-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Article Detail */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    margin-top: 1rem;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    letter-spacing: 0.01em;
    position: relative;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
}

.article-meta a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.125rem 0;
}

.article-meta a:hover {
    color: var(--accent-color);
}

.article-meta a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.article-meta a:hover::after {
    width: 100%;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

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

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

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-color);
}

.tag:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b8941f;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #222;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
}

.pagination .current {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.pagination a:hover {
    background-color: var(--bg-light);
}

/* Comments */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-content {
    margin-top: 0.5rem;
}

.comment-replies {
    margin-left: 2rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section .quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    height: min-content;
    margin-top: 2rem;
}

.sidebar-widget {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    margin: 0 0 1.5rem 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
    text-align: right;
}

[dir="rtl"] .sidebar-widget h3 {
    text-align: right;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

[dir="rtl"] .sidebar-widget h3::after {
    left: auto;
    right: 0;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.sidebar-widget ul li:hover {
    padding-left: 0.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 4px;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.sidebar-widget a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    padding-left: 1.5rem;
}

.sidebar-widget a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.sidebar-widget a:hover {
    color: var(--accent-color);
    padding-left: 1.8rem;
}

.sidebar-widget a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-widget .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
    align-items: center;
}

[dir="rtl"] .sidebar-widget .article-tags {
    justify-content: flex-start;
    text-align: right;
}

.sidebar-widget .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.sidebar-widget .tag:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.sidebar-widget .tag .tag-count {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    margin-left: 0.25rem;
    margin-right: 0;
}

[dir="rtl"] .sidebar-widget .tag .tag-count {
    margin-left: 0;
    margin-right: 0.25rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Single Column Center Layout */
.single-column-center {
    max-width: 900px;
    margin: 0 auto;
}

/* Rating Stars */
.rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        position: relative;
        gap: 1rem;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    
    [dir="rtl"] .mobile-menu-toggle {
        margin-left: 0;
        margin-right: auto;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 4rem 2rem 2rem;
        border-left: 3px solid var(--accent-color);
    }
    
    [dir="rtl"] .main-nav {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 3px solid var(--accent-color);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    [dir="rtl"] .main-nav.active {
        right: auto;
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav ul li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .main-nav a:hover {
        color: var(--accent-color);
        padding-left: 1rem;
    }
    
    [dir="rtl"] .main-nav a:hover {
        padding-left: 0;
        padding-right: 1rem;
    }
    
    .main-nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: width 0.3s ease;
    }
    
    [dir="rtl"] .main-nav a::before {
        left: auto;
        right: 0;
    }
    
    .main-nav a:hover::before {
        width: 4px;
    }
    
    .header-actions {
        order: 3;
        width: 100%;
        margin-top: 0;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form input {
        flex: 1;
    }
    
    /* Overlay when menu is open */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.3rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section .quick-links {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* CKEditor Content Styles */
.article-content .ck-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content .ck-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content .ck-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.article-content .ck-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

