@font-face {
    font-family: vazir;
    src: url("./font/Vazir.ttf") format("truetype");
}

/* تنظیمات لازم برای فول سایز شدن در خالت موبایل */
html, body {
    overflow-x: hidden;
    font-family: vazir;
}

@media (max-width: 576px) {
    body, html {
        margin: 0 !important;
        padding: 0 !important;
    }

    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin: 0 !important;
    }

    section,
    nav,
    footer {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/*  پایان تنظیمات لازم برای فول سایز شدن در خالت موبایل */
/* پس‌زمینه و فونت */
.custom-navbar {
    background-color: #00345b;

}

/* لوگو */
.navbar-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

/* نام سایت */
.site-name {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

/* دکمه ثبت‌نام */
.signup-btn {
    white-space: normal !important; /* اجازه رپ‌شدن متن */
    text-align: center;
    line-height: 1.3;
    min-width: 80px;
    max-width: 100px;
    font-size: 14px;
    padding: 6px 12px;
}

/* موقعیت و استایل badge روی دکمه */
.badge-on-button {
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
    z-index: 2;
}


/*تنظیمات برای اسلایدر */
.carousel-item img,
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* یا contain اگر نمی‌خوای برش بخوره */
    aspect-ratio: 16 / 9;
    max-height: 70vh
}


/* بخش دکمه خدمات   */
.services-section {
    background: linear-gradient(to bottom, #e3f2fd, #ffffff);
    padding-top: 60px;
    padding-bottom: 60px;
}

.service-box {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* محتوا وسط چین عمودی */
    align-items: center; /* محتوا وسط چین افقی */
}


.service-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.icon-blue {
    color: #004080;
    display: block;
}

.soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ دکمه پخش زنده موبایل */
.live-btn-mobile {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
    position: relative;
}

.live-btn-mobile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.live-btn-mobile i {
    animation: pulse 1.5s infinite;
    color: #fff700;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}


/* بخش دکمه خدمات پایان */


html {
    scroll-behavior: smooth;
}


footer {
    background-color: #00345b;
}

/*دکمه های مسیر یابی*/
.route-btn {
    background-color: transparent;
    border: 2px solid #28a745;
    color: #28a745;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: 50px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
}

.route-btn i,
.route-btn img {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.route-btn:hover {
    background-color: #28a745;
    color: white;
    text-decoration: none;
}

.route-btn:hover i,
.route-btn:hover img {
    transform: translateX(4px);
}

/*ساید بار ارشیو مراسمات*/
/* پس‌زمینه تار */
.sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1040;
}

/* سایدبار */
.sidebar {
    position: fixed;
    top: 0;
    right: -200px; /* پیش‌فرض بیرون از صفحه */
    height: 100%;
    background-color: #1f1f28;
    width: 200px; /* عرض منو */
    transition: right 0.3s ease;
    z-index: 1045;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    padding: 20px;
    overflow-y: auto;
}

/* وقتی فعال شد */
.sidebar.show {
    right: 0;
}

/* دکمه بستن */
.close-sidebar-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    border: none;
    background: none;
    font-size: 24px;
    color: white;
}

/* عکس‌ها داخل منو */
.sidebar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 15px;
}


/* css های صفحه report */

.report-body-page {
    background: url("../../static/assets/img/live_back.jpg");
}

img {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 10px;
}

.announcement-box {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
}

.announcement-box img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/*css برای صفحه live */

/*background for live page*/

.live-body-page {
    background: url("../../static/assets/img/live_back.jpg");
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* صفحه ارشیو مراسمات */
.categori-body {
    background-image: url("img/backgrond2.jpg");
    background-size:cover;
    background-repeat: no-repeat;
    /* خاکستری تیره و ملایم */
    color: #fff;
}

.header-categori-page {
    position: relative;
    background: linear-gradient(45deg, #000, #1e1d24); /* گرادیانت برای حرفه‌ای‌تر شدن */
    padding: 60px 0;
    border-bottom: 4px solid #e63946;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    text-align: center;
    overflow: hidden;
}

.header-categori-page img {
    max-width: 100%;
    transition: transform 0.3s ease;
}

.header-categori-page img:hover {
    transform: scale(1.05); /* زوم نرم هنگام هاور */
}

.header-categori-page .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* لایه تیره برای کنتراست */
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.section-title p {
    font-size: 1rem;
}

.media-card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.3s ease;
}

.media-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.info-cards .card {
    border: none;
    transition: transform 0.2s ease;
}

.info-cards .card:hover {
    transform: translateY(-5px);
    background-color: #f1f3f5; /* رنگ روشن‌تر برای هاور */
}

@media (max-width: 768px) {
    .header-categori-page {
        padding: 40px 0;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .media-card {
        padding: 2rem;
    }
}


/* اسکرول نرم و مخفی‌سازی نوار در موبایل */
.overflow-auto::-webkit-scrollbar {
    display: none;
}