/* ========== CSS Variables & Reset ========== */
:root {
    /* Colors */
    --primary: #5B6FB5;
    --secondary: #E87461;
    --accent: #F5A5A0;
    --dark: #2C3E50;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #E0E0E0;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[dir="ltr"] {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    gap: var(--space-sm);
}

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

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-body {
    padding: var(--space-xl);
}

.card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.card-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
    background: var(--light);
}

/* Forms */
.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 111, 181, 0.1);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-dark);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary);
    color: var(--white);
}

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

.badge-light {
    background: var(--light);
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== Language Toggle ========== */
.lang-toggle {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-lg);
    z-index: var(--z-fixed);
}

body[dir="ltr"] .lang-toggle {
    left: auto;
    right: var(--space-lg);
}

.lang-toggle .btn {
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow);
}

.lang-toggle .btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========== Navigation ========== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    padding: var(--space-md) 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
    margin: 0;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-size-base);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-menu a:not(.btn):hover {
    color: var(--primary);
}

.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:not(.btn):hover::after,
.nav-menu a:not(.btn).active::after {
    width: 100%;
}

.nav-menu .btn {
    margin-left: var(--space-md);
}

body[dir="ltr"] .nav-menu .btn {
    margin-left: 0;
    margin-right: var(--space-md);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border: none;
    background: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== Mobile Controls ========== */
.mobile-controls {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

.lang-toggle-mobile {
    display: none;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 60px;
    justify-content: center;
}

.btn-lang:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lang:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-lang i {
    font-size: var(--font-size-sm);
}

/* ========== Blog Styles ========== */
.blog-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.blog-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.blog-title-link {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.blog-title-link:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    flex: 1;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: auto;
}

.blog-tag {
    background: var(--light);
    color: var(--text-dark);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    text-decoration: none;
    transition: var(--transition);
}

.blog-tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* Blog Single Post */
.blog-post-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.blog-post-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.blog-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
}

.blog-post-content {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.blog-post-content p {
    margin-bottom: var(--space-lg);
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: var(--space-lg) 0;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    background: var(--light);
    border-radius: var(--radius);
    font-style: italic;
}

.blog-post-content code {
    background: var(--light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
}

.blog-post-content pre {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Blog Sidebar */
.blog-sidebar {
    background: var(--light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: var(--space-2xl);
}

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

.sidebar-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.sidebar-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.sidebar-post-content h6 {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.sidebar-post-content h6 a {
    color: var(--text-dark);
}

.sidebar-post-content h6 a:hover {
    color: var(--primary);
}

.sidebar-post-meta {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* Category & Tag Pages */
.category-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--space-2xl) 0;
    text-align: center;
    position: relative;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.category-title {
    font-size: var(--font-size-4xl);
    font-weight: 900;
    margin-bottom: var(--space-md);
}

.category-description {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.category-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: inline-block;
    backdrop-filter: blur(10px);
}

.category-count {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    margin-bottom: var(--space-xs);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    margin: 0 var(--space-sm);
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
}

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

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* Search & Filter */
.blog-filters {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-2xl);
}

.filter-row {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.search-input {
    min-width: 250px;
}

.sort-select {
    min-width: 150px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-2xl);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.empty-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.empty-description {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
/* ========== Footer ========== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}

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

.footer-logo {
    height: 50px;
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: var(--space-md);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-section ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

body[dir="ltr"] .footer-section ul li a:hover {
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: var(--font-size-lg);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
}

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

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ========== Scroll to Top Button ========== */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    left: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: var(--font-size-lg);
    transition: var(--transition);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

body[dir="ltr"] .scroll-top {
    left: auto;
    right: var(--space-xl);
}

.scroll-top:hover {
    background: var(--secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-lg);
    }

    .blog-sidebar {
        position: static;
        margin-top: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed !important;
        right: -100% !important;
        top: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        padding: var(--space-2xl) var(--space-lg) !important;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1) !important;
        z-index: 1035 !important;
        overflow-y: auto !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-left: 1px solid #e0e0e0 !important;
    }

    body[dir="ltr"] .nav-menu {
        right: auto !important;
        left: -100% !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-left: none !important;
        border-right: 1px solid #e0e0e0 !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1) !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    body[dir="ltr"] .nav-menu.active {
        right: auto !important;
        left: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
        margin-bottom: var(--space-md) !important;
    }

    .nav-menu a {
        display: block !important;
        padding: var(--space-md) !important;
        border-radius: var(--radius) !important;
        transition: var(--transition) !important;
        text-align: center !important;
        color: #333333 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
    }

    .nav-menu a:not(.btn):hover {
        background: #f8f9fa !important;
        color: var(--primary) !important;
    }

    .nav-menu a.active {
        background: var(--primary) !important;
        color: white !important;
    }

    .nav-menu .btn {
        margin: var(--space-lg) 0 0 0 !important;
        justify-content: center !important;
        background: var(--primary) !important;
        color: white !important;
        border: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    /* Hide desktop language toggle on mobile */
    .lang-toggle {
        display: none !important;
    }

    /* Show mobile controls */
    .mobile-controls {
        display: flex !important;
    }

    .lang-toggle-mobile {
        display: flex !important;
    }

    .blog-title {
        font-size: var(--font-size-3xl);
    }

    .blog-post-title {
        font-size: var(--font-size-3xl);
    }

    .category-title {
        font-size: var(--font-size-3xl);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input,
    .sort-select {
        min-width: auto;
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        height: 50px;
        border-radius: var(--radius-full);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .lang-toggle {
        display: none !important;
    }

    .navbar {
        padding: var(--space-sm) 0;
    }

    .nav-wrapper {
        position: relative;
        gap: var(--space-md);
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        height: 35px;
    }

    .mobile-controls {
        display: flex !important;
        align-items: center;
        gap: var(--space-sm);
        flex-shrink: 0;
    }

    .lang-toggle-mobile {
        display: flex;
    }

    .btn-lang {
        padding: var(--space-xs) var(--space-sm);
        min-width: 50px;
        font-size: var(--font-size-xs);
    }

    .hamburger {
        display: flex !important;
        width: 25px;
        height: 25px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;

        gap: var(--space-sm);
    }

    .lang-toggle-mobile {
        display: flex;
    }

    .btn-lang {
        padding: var(--space-xs) var(--space-sm);
        min-width: 50px;
        font-size: var(--font-size-xs);
    }

    .hamburger {
        display: flex !important;
    }

    .blog-header,
    .category-header {
        padding: var(--space-xl) 0;
    }

    .blog-title,
    .blog-post-title,
    .category-title {
        font-size: var(--font-size-2xl);
    }

    .blog-content {
        padding: var(--space-lg);
    }

    .blog-sidebar {
        padding: var(--space-lg);
    }

    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }

    .scroll-top {
        bottom: var(--space-lg);
        left: var(--space-lg);
        width: 45px;
        height: 45px;
    }

    body[dir="ltr"] .scroll-top {
        left: auto;
        right: var(--space-lg);
    }

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }

    .btn-lg {
        padding: var(--space-md) var(--space-lg);
    }
}

/* ========== Print Styles ========== */
@media print {
    .navbar,
    .lang-toggle,
    .scroll-top,
    .blog-sidebar,
    .footer {
        display: none !important;
    }

    .blog-post-content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .blog-post-title {
        font-size: 18pt;
        margin-bottom: 12pt;
    }

    .blog-post-meta {
        font-size: 10pt;
        margin-bottom: 18pt;
    }
}

/* Icon Fixes - Simple */
.fas, .fab, .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-style: normal;
    line-height: 1;
}

.fab {
    font-weight: 400;
}

.fas, .far {
    font-weight: 900;
}

/* Force Light Mode Only */
html {
    color-scheme: light only;
}

body {
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}

/* Ensure all elements stay in light mode */
* {
    color-scheme: light;
}

/* Override any system dark mode preferences */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light !important;
    }

    body {
        background-color: #FFFFFF !important;
        color: #333333 !important;
    }
}

/* Dark mode disabled - Light mode only */

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

.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;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 0 0 1px var(--border);
        --shadow-lg: 0 0 0 2px var(--border);
        --shadow-xl: 0 0 0 3px var(--border);
    }
}

