* {
    padding: 0;
    margin: 0;
    font-family: YekanBakh, "Arial";
    box-sizing: border-box;
}

body {
    font-family: YekanBakh, "Arial";
    background-color: #f8f9fc;
    color: #1e2a3e;
}

/* تنظیمات رایت‌تو‌لفت برای منو برعکس (دکمه‌ها سمت راست) */
.navbar-nav {
    margin-right: auto;
    margin-left: 0 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd !important;
}

/* هدر جومباترون (Hero) */
.hero-section {
    background: linear-gradient(135deg, #0a2b4e 0%, #1e3a5f 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 2rem;
}

/* کارت پست‌ها */
.card-blog {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.card-blog:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.card-blog img {
    height: 200px;
    object-fit: cover;
}

.badge-category {
    background-color: #0d6efd;
    color: white;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-outline-custom {
    border-radius: 50px;
    padding: 6px 20px;
    font-weight: 500;
}

.sidebar-card {
    background: white;
    border-radius: 1rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.list-group-flush-custom .list-group-item {
    border-right: 3px solid transparent;
    transition: 0.2s;
}

.list-group-flush-custom .list-group-item:hover {
    border-right-color: #0d6efd;
    background-color: #f1f5f9;
    padding-right: 1.2rem;
}

footer {
    background: #111827;
    color: #cbd5e1;
    margin-top: 3rem;
    padding: 2rem 0 1rem;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: 0.2s;
}

footer a:hover {
    color: white;
}

.search-bar {
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
}

.btn-search {
    border-radius: 50px;
    padding: 6px 20px;
}

.popular_blog-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3.5em;
    font-size: 14px;
    line-height: 1.7em;
    word-break: break-word;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
}

.hero-glass {
    min-height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

/* دایره‌های تزئینی */
.glass-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    pointer-events: none;
    z-index: 1 !important;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -150px;
    background: rgba(255, 255, 255, 0.05);
    animation: float 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
    background: rgba(255, 255, 255, 0.08);
    animation: pulse 4s ease-in-out infinite;
}

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

/* Badge شیشه‌ای */
.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* عنوان اصلی */
.glass-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #e0c3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    z-index: 2 !important;
}

.gradient-text {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* توضیحات */
.glass-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* دکمه‌ها */
.btn-glass-primary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #667eea;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-glass-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #764ba2;
}

.btn-glass-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .glass-title {
        font-size: 2.5rem;
    }

    .glass-description {
        font-size: 1rem;
    }

    .hero-glass {
        min-height: 300px;
    }
}

@media (max-width: 970px) {
    .glass-circle {
        display: none;
    }
}

@media (max-width: 1600px) {
    .circle-2 {
        display: none;
    }
}

/* static/css/search.css */
.search-form .input-group {
    position: relative;
}

.search-suggestions .suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.search-result-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

.no-results i {
    opacity: 0.5;
}