/* ============================================================
   فونت و متغیرهای گلوبال
   ============================================================ */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #e94560;
    --accent-light: #f06e84;
    --gold: #d4a853;
    --text-light: #f0f0f0;
    --text-muted: #a0a0a0;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirma', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--accent-light); }

img { max-width: 100%; }

/* ============================================================
   لودیং اسکرین
   ============================================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.loading-container { text-align: center; }
.loading-box {
    width: 60px; height: 60px;
    border: 4px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
.loading-text { color: var(--text-muted); font-size: 0.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   پیش نمایش بنر
   ============================================================ */
.preview-banner {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 9998;
}

/* ============================================================
   ناوگار
   ============================================================ */
#mainNavbar {
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(233,69,96,0.15);
    padding: 0.6rem 0;
    transition: all 0.3s ease;
}

    #mainNavbar.scrolled {
        background: rgba(15, 15, 26, 0.98);
        box-shadow: 0 2px 20px rgba(0,0,0,0.4);
        padding: 0.35rem 0;
    }

.navbar-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.navbar-logo {
    max-height: 42px;
}

/* ✅ اصلاح منوها برای وسط چین شدن */
.navbar-nav {
    align-items: center;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
}

    .nav-link i {
        margin-left: 4px;
    }

    /* ✅ اطمینان از وسط چین بودن متن‌های چند خطی */
    .nav-link .nav-text {
        display: inline-block;
        text-align: center;
        line-height: 1.3;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #fff !important;
        background: rgba(233,69,96,0.15);
    }

/* ✅ اصلاح search form */
.search-form {
    display: flex;
    align-items: center;
}

.search-group {
    direction: ltr;
    display: flex;
}

.search-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 0 20px 20px 0;
    font-size: 0.8rem;
    padding-right: 14px;
}

    .search-input::placeholder {
        color: var(--text-muted);
    }

    .search-input:focus {
        background: rgba(255,255,255,0.12);
        border-color: var(--accent);
        box-shadow: none;
        color: #fff;
    }

/* ✅ رنگ خاکستری خیلی روشن برای آیکون جستجو */
.btn-search {
    border-radius: 20px 0 0 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(200, 200, 200, 0.8); /* ✅ خاکستری خیلی روشن */
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.50rem; /* ✅ اندازه آیکون کوچکتر */
}

    .btn-search:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff !important;
    }

/* ✅ دکمه پنل مدیریت - مخفی */
.admin-link {
    font-size: 0.78rem;
    border-color: rgba(255,255,255,0.2);
    color: var(--text-muted) !important;
    margin-right: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .admin-link.visible {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-link:hover {
        border-color: var(--accent);
        color: var(--accent) !important;
    }

/* ============================================================
   هیرو سکشن
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(233,69,96,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212,168,83,0.06) 0%, transparent 60%);
}
.hero-particles {
    position: absolute; inset: 0;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-subtitle {
    display: block;
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}
.highlight-text { color: var(--accent); }
.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 32px;
}
.hero-buttons .hero-btn {
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    margin-left: 10px;
    transition: all 0.3s ease;
}
.hero-buttons .btn-primary { background: var(--accent); border-color: var(--accent); }
.hero-buttons .btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,0.4); }
.hero-buttons .btn-outline-light:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
.stat-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-arrow {
    width: 24px; height: 24px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0,0); opacity:1; }
    50% { transform: rotate(45deg) translate(6px,6px); opacity:0.4; }
}

/* ============================================================
   سکشن بادی / about
   ============================================================ */
.about-section { background: var(--bg-dark); }
.section-badge {
    display: inline-block;
    background: rgba(233,69,96,0.12);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    margin-bottom: 14px;
    border: 1px solid rgba(233,69,96,0.2);
}
.section-title { font-size: 1.9rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 30px; }
.section-text { color: var(--text-muted); margin-bottom: 14px; font-size: 0.95rem; }

/* About Features */
.about-features { display: flex; flex-direction: column; gap: 18px; }
.feature-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.feature-item:hover { border-color: var(--accent); background: rgba(233,69,96,0.05); }
.feature-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.feature-content h5 { font-size: 0.95rem; color: #fff; margin-bottom: 4px; }
.feature-content p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; }

/* ============================================================
   پروژه کارتها و گالری
   ============================================================ */
.project-card-link { text-decoration: none; }
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.3s ease;
}
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card-image { position: relative; overflow: hidden; aspect-ratio: 1; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-card-image img { transform: scale(1.08); }
.project-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 16px;
    opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay i { color: #fff; font-size: 1.4rem; }
.project-card-body { padding: 14px 16px; }
.project-card-title { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.project-card-location { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0; }
.project-card-location i { color: var(--accent); }

/* ============================================================
   گالری گریدی (صفحات Index)
   ============================================================ */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 992px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .project-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.project-grid-item { transition: all 0.5s ease; }
.project-grid-item.hidden-item { display: none; }
.project-grid-item.newly-loaded { animation: fadeInUp 0.6s ease; }
@keyframes fadeInUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }

.project-grid-link { text-decoration: none; display: block; }
.project-grid-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.3s ease;
}
.project-grid-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.project-grid-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}
.project-grid-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-grid-card:hover .project-grid-image img { transform: scale(1.06); }
.project-grid-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 50%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 12px;
    opacity: 0; transition: opacity 0.3s ease;
}
.project-grid-card:hover .project-grid-overlay { opacity: 1; }
.project-grid-overlay .overlay-icon { color: #fff; font-size: 1.2rem; }
.project-grid-info { padding: 12px 14px; }
.project-grid-title { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-grid-location { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0; }

/* Load More Button */
.load-more-btn {
    background: var(--accent);
    border-color: var(--accent);
    border-radius: 30px;
    padding: 10px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.load-more-btn:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ============================================================
   مازونری گالری (صفحات Detail)
   ============================================================ */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 768px) { .masonry-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 480px) { .masonry-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.masonry-item { border-radius: 10px; overflow: hidden; }
.masonry-image-wrapper {
    position: relative;
    width: 100%; height: 100%;
    overflow: hidden;
    cursor: pointer;
}
.masonry-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.masonry-image-wrapper:hover .masonry-image { transform: scale(1.06); }
.masonry-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 10px;
    opacity: 0; transition: opacity 0.3s ease;
}
.masonry-image-wrapper:hover .masonry-overlay { opacity: 1; }
.masonry-overlay i { color: #fff; font-size: 1.2rem; }

/* Image Protection */
.protected-image {
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    pointer-events: auto;
}

/* ============================================================
   لایت بکس
   ============================================================ */
.lightbox-content {
    background: #000;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
}
.lightbox-close {
    position: absolute; top: 16px; right: 16px;
    z-index: 10; font-size: 1.5rem;
}
.lightbox-image-container {
    max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
}
.lightbox-image {
    max-width: 100%; max-height: 85vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.lightbox-caption {
    color: #fff; margin-top: 10px; font-size: 0.9rem;
    text-align: center; padding: 0 20px;
}

/* ============================================================
   مقالات
   ============================================================ */
.article-card-link { text-decoration: none; }
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    height: 100%;
    transition: all 0.3s ease;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card-image { overflow: hidden; }
.article-card-image img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .article-card-image img { transform: scale(1.06); }
.article-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.article-category-badge {
    display: inline-block;
    background: rgba(233,69,96,0.15); color: var(--accent);
    padding: 3px 10px; border-radius: 12px;
    font-size: 0.72rem; margin-bottom: 8px; width: fit-content;
}
.article-card-title { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.article-card-summary { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; flex: 1; }
.article-card-meta { font-size: 0.7rem; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.article-card-meta i { color: var(--accent); }

/* Article List (صفحات لیست مقالات) */
.article-list-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.article-list-item:hover { border-color: var(--accent); }
.article-list-link { text-decoration: none; display: block; padding: 18px; }
.article-list-image { border-radius: 8px; overflow: hidden; }
.article-list-image img { width: 100%; height: 160px; object-fit: cover; }
.article-list-badges { margin-bottom: 8px; }
.article-list-title { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.article-list-summary { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.article-list-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.article-list-meta i { color: var(--accent); }

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 20px;
    margin-bottom: 20px;
}
.widget-title { font-size: 0.95rem; color: #fff; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.category-list { list-style: none; padding: 0; }
.category-list li { margin-bottom: 4px; }
.category-list a {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); padding: 8px 12px; border-radius: 8px;
    font-size: 0.85rem; transition: all 0.3s ease;
}
.category-list a:hover, .category-list a.active {
    background: rgba(233,69,96,0.1); color: var(--accent);
}

/* Article Detail Page */
.article-detail-header { margin-bottom: 24px; }
.article-detail-badges { margin-bottom: 12px; }
.article-detail-title { font-size: 1.9rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.article-detail-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.article-detail-meta i { color: var(--accent); }
.article-detail-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.article-detail-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.article-detail-content {
    font-size: 0.95rem; color: var(--text-muted); line-height: 1.9;
}
.article-detail-content h1,.article-detail-content h2,.article-detail-content h3,.article-detail-content h4 { color: #fff; margin: 20px 0 10px; }
.article-detail-content p { margin-bottom: 14px; }
.article-detail-content blockquote {
    border-right: 3px solid var(--accent); padding: 12px 18px;
    background: rgba(233,69,96,0.08); border-radius: 0 8px 8px 0; margin: 18px 0;
}
.article-tags { margin-top: 20px; }
.tag {
    display: inline-block; background: rgba(233,69,96,0.12); color: var(--accent);
    padding: 4px 12px; border-radius: 14px; font-size: 0.75rem; margin-left: 6px; margin-bottom: 6px;
}

/* Comments */
.comments-section { margin-top: 40px; }
.comments-title { font-size: 1.3rem; color: #fff; margin-bottom: 24px; }
.comment-form-wrapper {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius); padding: 24px; margin-bottom: 30px;
}
.comment-form-wrapper .form-label { color: var(--text-muted); font-size: 0.85rem; }
.comment-form-wrapper .form-control {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 8px;
}
.comment-form-wrapper .form-control:focus { border-color: var(--accent); background: rgba(255,255,255,0.08); box-shadow: none; color: #fff; }
.comment-item {
    display: flex; gap: 14px; margin-bottom: 20px;
    padding: 18px; background: rgba(255,255,255,0.03);
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.06);
}
.comment-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment-author { font-size: 0.88rem; font-weight: 600; color: #fff; }
.comment-date { font-size: 0.72rem; color: var(--text-muted); }
.comment-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.reply-btn { color: var(--accent) !important; font-size: 0.78rem; padding: 2px 0; }

/* Replies */
.replies-list { margin-top: 14px; padding-right: 28px; border-right: 2px solid rgba(233,69,96,0.3); }
.reply-item { display: flex; gap: 10px; margin-bottom: 12px; }
.reply-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(233,69,96,0.2); display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 0.75rem; flex-shrink: 0;
}
.reply-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.reply-author { font-size: 0.82rem; font-weight: 600; color: #fff; }
.reply-date { font-size: 0.68rem; color: var(--text-muted); }
.reply-text { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; }

.reply-form-wrapper { margin-top: 12px; }
.reply-form .form-control {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 6px; font-size: 0.8rem;
}
.reply-form .form-control:focus { border-color: var(--accent); box-shadow: none; color: #fff; background: rgba(255,255,255,0.08); }

/* ============================================================
   پروژه جزئیات
   ============================================================ */
.project-info-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07); overflow: hidden;
}
.project-info-cover { overflow: hidden; }
.project-info-cover img { width: 100%; height: 220px; object-fit: cover; }
.project-info-body { padding: 20px; }
.project-details-table td { padding: 8px 4px; font-size: 0.85rem; vertical-align: middle; }
.detail-label { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.detail-value { color: #fff; font-weight: 600; }
.project-description { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.description-title { color: #fff; font-size: 0.9rem; margin-bottom: 8px; }
.project-description p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0; }
.gallery-heading { color: #fff; font-size: 1rem; }

/* ============================================================
   تماس صفحه
   ============================================================ */
.contact-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07); padding: 24px;
    display: flex; gap: 18px; align-items: flex-start;
    transition: all 0.3s ease;
}
.contact-card:hover { border-color: var(--accent); }
.contact-card-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; flex-shrink: 0;
}
.contact-card-title { font-size: 0.9rem; color: #fff; margin-bottom: 6px; }
.contact-card-value { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0; }
.contact-card-value a { color: var(--accent); }
.contact-social-links { display: flex; flex-direction: column; gap: 4px; }
.contact-social-link { color: var(--accent); font-size: 0.8rem; }
.working-hours-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07); padding: 24px;
}
.working-hours-title { color: #fff; margin-bottom: 14px; }
.working-hours-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; }

/* ============================================================
   درباره ما صفحه
   ============================================================ */
.about-stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.about-stat-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 24px; text-align: center;
    transition: all 0.3s ease;
}
.about-stat-card:hover { border-color: var(--accent); }
.about-stat-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.about-stat-number { font-size: 1.8rem; font-weight: 700; color: #fff; }
.about-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

.value-card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 28px 22px; text-align: center;
    transition: all 0.3s ease; height: 100%;
}
.value-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.value-icon {
    width: 60px; height: 60px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; margin: 0 auto 16px;
}
.value-title { color: #fff; font-size: 0.95rem; margin-bottom: 8px; }
.value-text { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================================
   صفحه هدر / پیج هیدر
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative; overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(233,69,96,0.08) 0%, transparent 70%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header-title { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.page-header-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0; }
.breadcrumb-nav { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb-nav a { color: var(--text-muted); }
.breadcrumb-nav a:hover { color: var(--accent); }
.breadcrumb-nav span { color: var(--accent); }

/* Search Bar Large */
.search-bar-large .form-control {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; border-radius: 30px 0 0 30px;
}


.search-bar-large .form-control::placeholder { color: var(--text-muted); }
.search-bar-large .form-control:focus { border-color: var(--accent); background: rgba(255,255,255,0.1); box-shadow: none; color: #fff; }
.search-bar-large .btn-primary { border-radius: 0 30px 30px 0; background: var(--accent); border-color: var(--accent); }

/* ============================================================
   CTA سکشن
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--accent), #c73652);
    padding: 80px 0; position: relative; overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-text { color: rgba(255,255,255,0.85); margin-bottom: 24px; font-size: 1rem; }
.cta-section .btn-primary { background: #fff; color: var(--accent); border-color: #fff; border-radius: 30px; padding: 12px 32px; font-weight: 600; }
.cta-section .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* ============================================================
   فوتر
   ============================================================ */
.footer { background: #0a0a14; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { padding: 50px 0 30px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.footer-text { color: var(--text-muted); font-size: 0.82rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--text-muted); font-size: 0.82rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.9rem; transition: all 0.3s ease;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom {
    background: rgba(0,0,0,0.3); padding: 16px 0; text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.75rem; margin-bottom: 0; }

/* ============================================================
   بازگشت به بالا
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 30px; left: 30px; z-index: 999;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-light); color: #fff; transform: translateY(-3px); }

/* ============================================================
   الرت بالای صفحه
   ============================================================ */
.top-alert { top: 20px; left: 50%; transform: translateX(-50%); min-width: 320px; max-width: 500px; }

/* ============================================================
   رسپانسیو
   ============================================================ */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat-number { font-size: 1.3rem; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .section-title { font-size: 1.5rem; }
    .article-detail-title { font-size: 1.4rem; }
}
@media (max-width: 480px) {
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .stat-item { padding: 14px 8px; }
    .hero-buttons .hero-btn { width: 100%; text-align: center; margin-left: 0; }
}





/* ✅ اصلاح منوها برای وسط چین شدن */
.navbar-nav {
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; /* ارتفاع ثابت */
    padding: 0.5rem 0.7rem;
}

    .nav-link .nav-text {
        display: inline-block;
        text-align: center;
    }

/* ✅ اصلاح دکمه جستجو - چرخش 180 درجه */
.search-group {
    direction: ltr;
}

.search-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 0 20px 20px 0; /* معکوس شد */
    font-size: 0.8rem;
    padding-right: 14px;
}

    .search-input::placeholder {
        color: var(--text-muted);
    }

    .search-input:focus {
        background: rgba(255,255,255,0.12);
        border-color: var(--accent);
        box-shadow: none;
        color: #fff;
    }

.btn-search {
    border-radius: 20px 0 0 20px; /* معکوس شد */
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.375rem 0.75rem;
}

    .btn-search:hover {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }

/* ✅ فاصله بین دکمه جستجو و پنل مدیریت */
.admin-link {
    margin-right: 15px !important;
}







/* ✅ اصلاح کارت‌های پروژه و مقاله */
.project-card,
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

    .project-card:hover,
    .article-card:hover {
        border-color: var(--accent);
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

.project-info,
.article-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title,
.article-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

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

        .project-title a:hover,
        .article-title a:hover {
            color: var(--accent);
        }

.project-summary,
.article-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.6;
}

.project-meta,
.article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

    .project-meta i,
    .article-meta i {
        color: var(--accent);
        margin-left: 4px;
    }

/* ✅ Placeholder برای تصاویر خالی */
.project-placeholder,
.article-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

    .project-placeholder i,
    .article-placeholder i {
        font-size: 4rem;
        opacity: 0.3;
    }

/* Article Read More Link */
.article-read-more {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.3s ease;
}

    .article-read-more:hover {
        color: var(--accent-light);
        transform: translateX(-3px);
    }

    .article-read-more i {
        transition: transform 0.3s ease;
    }

    .article-read-more:hover i {
        transform: translateX(-3px);
    }

/* Section Divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 16px auto 0;
    border-radius: 2px;
}









/* ✅ فاصله بیشتر برای آیکون‌های فوتر */
.footer-links a i {
    margin-left: 8px; /* قبلاً فاصله نداشت */
}

.article-card-meta i,
.project-meta i {
    margin-left: 6px; /* افزایش فاصله */
}











/* ✅ دکمه مخفی ادمین */
.btn-admin-secret {
    border-radius: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-left: none;
    color: rgba(100, 100, 100, 0.3); /* خیلی کم رنگ */
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    opacity: 0.3;
}

    .btn-admin-secret:hover {
        background: rgba(212, 168, 83, 0.2);
        color: var(--gold);
        opacity: 1;
    }

    .btn-admin-secret:active {
        background: var(--gold);
        color: #fff;
    }




/* ✅ رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .search-group {
        width: 100%;
    }

    .search-input {
        flex: 1;
    }

    .btn-search,
    .btn-admin-secret {
        padding: 0.3rem 0.6rem;
    }

    .btn-admin-secret {
        opacity: 0.5; /* در موبایل کمی واضح‌تر */
    }
}




.navbar-brand i.fa-building {
    margin-left: 12px !important;
}



/* ✅ راه حل ساده‌تر */
.navbar-brand {
    margin-left: 2.5rem;
}