﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
* {
    font-family: Vazirmatn FD;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    direction: rtl;
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}


/* Mehdi Custom Styles */
.ltr {
    direction: ltr;
    text-align: left;
}

/* ── GLightbox overrides ───────────────────────────────────────────────────
   All buttons are hard-positioned with explicit physical coordinates so the
   RTL bidi algorithm of the surrounding page cannot push them off-screen.
──────────────────────────────────────────────────────────────────────────── */

/* Force LTR on the overlay so GLightbox's own JS/CSS coordinates are sane */
.glightbox-container {
    direction: ltr !important;
}

/* Always visible — no hover needed on any device */
.glightbox-container .gnext,
.glightbox-container .gnext,
.glightbox-container .gprev,
.glightbox-container .gclose {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Hard-pin close button: top-right corner of the viewport */
.glightbox-container .gclose {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    left: auto !important;
    z-index: 99999 !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hard-pin previous (left) arrow */
.glightbox-container .gprev {
    position: fixed !important;
    top: 50% !important;
    left: 15px !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hard-pin next (right) arrow */
.glightbox-container .gnext {
    position: fixed !important;
    top: 50% !important;
    right: 15px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide GLightbox's hardcoded SVG icons */
.glightbox-container .gprev svg,
.glightbox-container .gnext svg,
.glightbox-container .gclose svg {
    display: none !important;
}

/* Inject Font Awesome icons via pseudo-elements */
.glightbox-container .gprev::before,
.glightbox-container .gnext::before,
.glightbox-container .gclose::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    color: #000 !important;
    opacity: 1 !important;
}

.glightbox-container .gprev::before {
    content: "\f053"; /* fa-chevron-left */
}

.glightbox-container .gnext::before {
    content: "\f054"; /* fa-chevron-right */
}

.glightbox-container .gclose::before {
    content: "\f00d"; /* fa-times */
}

/* Style Font Awesome icons inside GLightbox nav/close buttons */
.glightbox-container .gnext i,
.glightbox-container .gprev i,
.glightbox-container .gclose i {
    font-size: 18px !important;
    color: #000 !important;
    opacity: 1 !important;
}

/* GLightbox button size and hover effect (desktop) */
@media (min-width: 992px) {
    .glightbox-container .gbtn {
        background-color: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .glightbox-container .gbtn:hover,
    .glightbox-container .gbtn:focus {
        background-color: rgba(255, 255, 255, 1) !important;
        transform: scale(1.05);
    }
}

/* Hide the description / caption bar completely */
.glightbox-container .gdesc-inner,
.glightbox-container .gslide-description {
    display: none !important;
}