﻿/* تنظیمات پایه و فونت */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* چیدمان راست‌چین برای زبان فارسی */
body {
    margin-bottom: 0;
    padding-bottom: 60px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* استایل فوکوس برای دسترسی پذیری (منطبق با تم آبی) */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0d47a1;
}

/* تایپوگرافی و تیترها */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* استایل هدر (منوی بالا) - تم آبی صنعتی */
.navbar-custom {
    background-color: #1a237e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .navbar-custom .navbar-brand {
        color: white !important;
        font-weight: bold;
    }

    .navbar-custom .nav-link {
        color: #ddd !important;
        transition: color 0.3s;
    }

        .navbar-custom .nav-link:hover {
            color: white !important;
        }

/* استایل دکمه‌ها */
.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d47a1;
    border-color: #0d47a1;
}

    .btn-primary:hover {
        background-color: #1565c0;
        border-color: #1565c0;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.btn-outline-light {
    border-radius: 8px;
}

/* استایل کارت‌ها و بخش‌های سایت */
.card {
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

/* استایل بنر اصلی صفحه خانه (Hero Section) */
.hero-section {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 30px;
}

/* استایل فوتر (پایین سایت) */
.footer {
    background-color: #212121;
    color: #aaa;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 3px solid #0d47a1;
}

    .footer a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer a:hover {
            color: white;
        }

/* تنظیمات اسکرول نرم */
html {
    scroll-behavior: smooth;
}

/* پخش‌کننده ویدئوی معرفی */
.sspc-video-wrap {
    background: #0d1b3a;
    aspect-ratio: 16 / 9;
    max-height: 420px;
}

.sspc-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

@media (max-width: 575.98px) {
    .sspc-video-wrap {
        max-height: none;
    }
}

