/* فایل استایل جامع پورتال بیم لند - سازگار با شبکه ملی اطلاعات */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

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

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: linear-gradient(135deg, #0F172A, #1E3A8A, #0EA5E9);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: white;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ناوبری بالای صفحات داخلی */
.top-nav-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-mini-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-mini-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 155px;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.4)); 
}

.brand {
    font-size: 38px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.brand-sub {
    font-size: 14px;
    color: #64ffda;
    font-weight: 700;
    margin-top: 2px;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 13px;
    transition: .2s;
}

.eitaa { background: #e65100; box-shadow: 0 4px 12px rgba(230, 81, 0, 0.3); }
.eitaa:hover { background: #b73e00; transform: translateY(-2px); }

.telegram { background: #0088cc; box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3); }
.telegram:hover { background: #0077b3; transform: translateY(-2px); }

.hero {
    text-align: center;
    margin-top: 15px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: 700;
}

.hero h2 {
    font-size: 18px;
    font-weight: normal;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.notice {
    background: rgba(15, 23, 42, 0.65);
    padding: 20px 25px;
    border-radius: 16px;
    line-height: 1.9;
    font-size: 15.5px;
    text-align: justify;
    border-right: 4px solid #00C897;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
    max-width: 1050px;
    margin: 0 auto;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: .2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #00C897;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 200, 151, 0.3);
}
.btn-primary:hover { background: #00a87e; transform: translateY(-2px); }

.btn-secondary { background: white; color: #1E3A8A; }
.btn-secondary:hover { background: #f8fafc; transform: translateY(-2px); }

/* ساختار شبکه خدمات و دپارتمان‌ها */
.services-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.category-section {
    margin-top: 30px;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-title {
    font-size: 18px;
    color: #64ffda;
    border-bottom: 2px solid rgba(100, 255, 218, 0.2);
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-weight: bold;
}

.card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    transition: .2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: white;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #00C897;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #64ffda;
    font-weight: 700;
}

.card p {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

/* لیست لینک‌های داخل دسته‌بندی‌های جنرال */
.insurance-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.insurance-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.insurance-item:hover {
    background: #00C897;
    color: white;
    transform: translateX(-3px);
}

.footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    text-align: center;
    font-size: 13px;
    color: #cbd5e1;
}

.footer-brand {
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
}

/* بهینه‌سازی نسخه چاپ اختصاصی صفحات بعدی */
@media print {
    body { background: white !important; color: black !important; }
    .container { background: transparent !important; box-shadow: none !important; border: none !important; backdrop-filter: none !important; color: black !important; }
    .top-nav-actions, .social-buttons, .buttons { display: none !important; }
    .notice { background: #f8fafc !important; color: #000 !important; border: 1px solid #ccc !important; }
    .card, .insurance-item { background: #f1f5f9 !important; border: 1px solid #cbd5e1 !important; color: black !important; }
    .footer { border-top: 1px solid #000 !important; color: black !important; }
}

@media(max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 20px; }
    .hero h1 { font-size: 24px; }
    .hero h2 { font-size: 14px; }
    .brand { font-size: 30px; }
    .header { flex-direction: column; text-align: center; }
    .logo-area { flex-direction: column; gap: 10px; }
    .logo { width: 140px; height: 140px; }
    .social-buttons { justify-content: center; width: 100%; }
    .buttons { flex-direction: column; gap: 10px; width: 100%; }
    .btn { width: 100%; text-align: center; }
}