/**
 * SoftPulse Design System v2.0
 * Modern, Professional, Premium Design
 * Brand: Primary #0037C2, Charcoal #373736
 */

:root {
    --primary: #0037C2;
    --primary-dark: #002590;
    --primary-light: #4d7dd8;
    --primary-bg: #f0f4ff;
    --charcoal: #373736;
    --dark: #0f172a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --gradient-primary: linear-gradient(135deg, #0037C2 0%, #4d7dd8 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, #0037C2 0%, #002590 50%, #0f172a 100%);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }
.lead { font-size: 1.25rem; color: var(--gray-500); }

/* Sections */
.section { padding: 5rem 0; }
.section-lg { padding: 7rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-header p { font-size: 1.125rem; color: var(--gray-500); }
.section-label { 
    display: inline-block; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    color: var(--primary); 
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary-bg);
    border-radius: var(--radius-full);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(0, 55, 194, 0.15); }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 55, 194, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 55, 194, 0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: var(--shadow);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; }

/* Cards */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Feature Cards */
.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray-500); margin-bottom: 0; font-size: 0.9375rem; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-success { background: #D1FAE5; color: var(--success); }
.badge-warning { background: #FEF3C7; color: var(--warning); }
.badge-live { background: #10b981; color: white; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 36px;
}

.logo img, .logo svg {
    height: 100%;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.lang-switcher-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    overflow: hidden;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.lang-dropdown a.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-bg);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1.5rem;
        background: var(--white);
        transform: translateX(-100%);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    [dir="rtl"] .nav-links { transform: translateX(100%); }
    .nav-links.active { transform: translateX(0); }
    .nav-links li { width: 100%; }
    
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-links a::after { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero::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-content {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.hero .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.hero .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}

.hero .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .stats { grid-template-columns: 1fr; gap: 2rem; }
}

.stat-item { text-align: center; }

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Stats on light background */
.stats-light .stat-value { color: var(--primary); }
.stats-light .stat-label { color: var(--gray-500); }
.stats-light { border-top-color: var(--gray-200); }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.product-card p {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-links {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    aspect-ratio: 16/10;
    background: var(--gradient-primary);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--dark);
    transition: var(--transition);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Contact Form */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 991px) { .contact-section { grid-template-columns: 1fr; } }

.contact-info h2 { margin-bottom: 1.5rem; }

.contact-info-list {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-info-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-list .icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    flex-shrink: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.contact-info-list h4 {
    font-size: 0.8125rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-info-list p {
    margin: 0;
    color: var(--dark);
    font-weight: 500;
}

/* Form Styles */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 55, 194, 0.1);
}

.form-control::placeholder { color: var(--gray-400); }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert-success {
    background: #D1FAE5;
    color: #065f46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #991b1b;
    border: 1px solid #FECACA;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 991px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { max-width: 300px; }

.footer-brand .logo {
    height: 32px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-column h4 {
    color: var(--white);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    font-size: 0.875rem;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-legal a:hover { color: var(--white); }

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: var(--gradient-hero);
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-header::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;
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
    margin-bottom: 1rem;
    color: var(--white);
}

.page-header p {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.blog-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-post-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.blog-post-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    max-width: none;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

[dir="rtl"] .blog-post-content ul,
[dir="rtl"] .blog-post-content ol {
    padding-left: 0;
    padding-right: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: calc(80px + 2rem);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: 1rem;
    font-weight: 600;
}

.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 0.5rem; }

.sidebar-links a {
    display: flex;
    justify-content: space-between;
    color: var(--gray-700);
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.sidebar-links a:hover { color: var(--primary); }

.sidebar-links .count {
    color: var(--gray-400);
    font-size: 0.75rem;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-cloud a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.tags-cloud a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a {
    background: var(--gray-100);
    color: var(--gray-700);
}

.pagination a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    position: relative;
}

.cta-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;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }
.mb-0 { margin-bottom: 0 !important; }
.mt-auto { margin-top: auto; }
.bg-light { background-color: var(--gray-50); }
.bg-white { background-color: var(--white); }
.bg-dark { background-color: var(--dark); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Geometric Pattern SVG Background */
.pattern-bg {
    background-image: 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='%230037C2' 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");
}

/* Hide scrollbar */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Grid utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Spacing utilities */
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
