﻿html {
    font-size: 14px;
    direction: rtl; /* Set the text direction to right-to-left */
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
html, body {
    margin: 0;
    padding: 0;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 60px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: #ccc #0000;
    animation: l16 1s infinite linear;
}

    .loader::before,
    .loader::after {
        content: "";
        grid-area: 1/1;
        margin: 2px;
        border: inherit;
        border-radius: 50%;
    }

    .loader::before {
        border-color: #007bff #0000;
        animation: inherit;
        animation-duration: .5s;
        animation-direction: reverse;
    }

    .loader::after {
        margin: 8px;
    }

@keyframes l16 {
    100% {
        transform: rotate(1turn)
    }
}
.logout-form {
    margin: 0;
}

.logout-button {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

    /* هاور شیک بدون رنگ آبی */
    .logout-button:hover {
        border-color: #aaa;
        color: #000;
    }

    /* حذف افکت فوکوس */
    .logout-button:focus {
        outline: none;
        box-shadow: none;
    }

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    transition: border 0.3s ease;
    width: 200px;
    height: 36px;
}

.search-input {
    border: none;
    outline: none;
    padding: 6px 10px;
    font-size: 14px;
    flex-grow: 1;
    background-color: transparent;
}

.search-button {
    background-color: transparent;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    color: #555;
    font-size: 16px;
}

.search-form:hover {
    border-color: #aaa; /* رنگ hover (نه آبی) */
}

/* حذف باکس آبی هنگام فوکوس */
.search-input:focus,
.search-button:focus {
    outline: none;
    box-shadow: none;
}

.logo-link {
    display: inline-block !important;
    max-width: 120px !important;
}

.logo-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .logo-link {
        max-width: 100px !important;
    }

}

@media (max-width: 480px) {
    .logo-link {
        max-width: 80px !important;
    }

    .logo-img {
        max-width: 50px !important;
    }
}

.seo-about {
    background-color: #f8f9fa;
}

.section-title {
    padding-right: 1rem;
    z-index: 2;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        right: 0;
        width: 60px;
        height: 3px;
        background-color: #007bff;
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .section-title:hover::after {
        width: 80px;
    }

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: right;
    border: none;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
}

    .card:hover {
        transform: translateY(-5px) translateX(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }

.image-wrapper {
    overflow: visible;
    border-radius: 0.5rem;
    z-index: 2;
}

    .image-wrapper img {
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        position: relative;
        z-index: 3;
    }

    .image-wrapper:hover img {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        transform: scale(1.05);
    }

.bg-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(1px);
    z-index: 1;
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.bg-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.bg-shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 20%;
    animation: float 5s ease-in-out infinite 2s;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
    z-index: 1;
}

.bg-bubble-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -200px;
    animation: pulse 6s infinite alternate;
}

.bg-bubble-2 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    left: 10%;
    animation: pulse 5s infinite alternate-reverse 1s;
}

.img-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 15px;
    right: 15px;
    border: 2px dashed rgba(0, 123, 255, 0.3);
    border-radius: 0.5rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.image-wrapper:hover .img-decoration {
    top: 10px;
    right: 10px;
}

/* انیمیشن‌ها */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.bg-blur {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}