:root {
    --primary: #0b2b83;       /* سرمه‌ای تیره و رسمی */
    --primary-light: #e0e7ff; 
    --secondary: #d4af37;     /* طلایی شیک برای هاور و اکتیو */
    --accent: #3b82f6;        
    --bg-body: #f8fafc;       
    --bg-card: #ffffff;
    --font-main: 'Vazirmatn', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(11, 43, 131, 0.05);
    --shadow-md: 0 8px 16px -4px rgba(11, 43, 131, 0.1);
    --shadow-hover: 0 25px 50px -12px rgba(11, 43, 131, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--bg-body); color: var(--primary); line-height: 1.6; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-container { padding-bottom: 60px; }

/* Header */
.modern-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226, 232, 240, 0.8); position: sticky; top: 0; z-index: 100; padding: 16px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-section { display: flex; align-items: center; gap: 16px; }
.logo-circle { width: 56px; height: 56px; background: var(--primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; border: 1px solid #c7d2fe; }
.logo-img { width: 36px; height: auto; }
.header-titles h1 { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 2px; }
.subtitle { font-size: 0.85rem; color: #64748b; font-weight: 400; }

/* Lang Switcher */
.language-switcher { background: #f1f5f9; padding: 4px; border-radius: var(--radius-full); display: flex; gap: 4px; }
.lang-btn { border: none; background: transparent; padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; color: #64748b; cursor: pointer; transition: 0.3s; }
.lang-btn:hover { color: var(--primary); }
.lang-btn.active { background: white; color: var(--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }

/* Search Box */
.search-section { margin: 40px 0; }
.search-box { background: white; border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-md); display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid #e2e8f0; }
.input-wrapper { flex: 2; display: flex; align-items: center; padding: 0 16px; min-width: 200px; position: relative; }
.search-icon { color: #94a3b8; margin-left: 12px; }
.search-box input { width: 100%; border: none; font-family: var(--font-main); font-size: 1rem; padding: 12px 0; outline: none; color: var(--primary); }
.select-wrapper { flex: 1; position: relative; min-width: 160px; border-left: 1px solid #e2e8f0; }
[dir="rtl"] .select-wrapper { border-left: none; border-right: 1px solid #e2e8f0; }
.select-wrapper select { width: 100%; appearance: none; background: #f8fafc; border: none; padding: 12px 16px; padding-left: 40px; border-radius: var(--radius-md); font-family: var(--font-main); font-size: 0.9rem; color: #475569; cursor: pointer; outline: none; }
.chevron-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #64748b; pointer-events: none; }

/* Cards */
.forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.form-card { background: white; border-radius: var(--radius-lg); padding: 24px; text-decoration: none; display: flex; flex-direction: column; border: 1px solid transparent; box-shadow: var(--shadow-sm); transition: 0.4s; position: relative; }
.form-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(11, 43, 131, 0.2); }
.card-icon-wrapper { width: 64px; height: 64px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: 0.3s; }
.form-card:hover .card-icon-wrapper { transform: scale(1.05) rotate(3deg); }
.card-icon { width: 32px; height: 32px; }
.card-content { flex: 1; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; width: 100%; }
.badge { font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 99px; display: inline-flex; align-items: center; }
.province-badge { background-color: #f1f1f1 !important; color: #64748b; border: 1px solid #e2e8f0; }
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.card-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Footer of Card */
.card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.cta-text { font-size: 0.9rem; font-weight: 600; color: var(--primary); transition: 0.3s; }
.cta-icon { width: 32px; height: 32px; border-radius: 50%; background: #f8fafc; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: 0.3s; }
.form-card:hover .cta-text { color: var(--secondary); }
.form-card:hover .cta-icon { background: var(--secondary); color: white; transform: translateX(-4px); }

/* Pagination */
.pagination-container { display: flex; justify-content: center; gap: 8px; margin-top: 40px; padding-top: 20px; }
.page-btn { min-width: 40px; height: 40px; border-radius: var(--radius-sm); background: white; border: 1px solid #e2e8f0; color: #64748b; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.page-btn:hover:not(:disabled) { border-color: var(--secondary); color: var(--secondary); background: #fefce8; transform: translateY(-2px); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.main-footer { text-align: center; padding: 40px 0; color: #94a3b8; font-size: 0.85rem; border-top: 1px solid #e2e8f0; }

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 16px; }
    .search-box { flex-direction: column; }
    .select-wrapper { width: 100%; border: none; border-top: 1px solid #e2e8f0; }
}