/*!
 * qrcodsaaz
 * Copyright 2023-2025 qrcodsaaz.ir
 * Designed and Persianized in https://qrcodsaaz.ir/
 * version   5.3.8
*/

/* ==========================================================================
   1. CSS Variables 
   ========================================================================== */
:root {
    --primary-color: #1e2939;
    --secondary-color: #0e5e78;
    --accent-color: #ffc107;
    --accent-hover-color: #feb207;
    --text-color: #202935;
    --text-light: #c7c7c7;
    --white: #ffffff;
    --black: #000000;
}

/* ==========================================================================
   2. Font Face & Typography
   ========================================================================== */
@font-face {
    font-family: 'Persia';
    src: url('fonts/Persia.eot?#') format('eot'), url('fonts/Persia.woff') format('woff'), url('fonts/Persia.ttf') format('truetype');
    font-display: swap;
}

html:lang(fa) :not(i) {
    font-family: Persia;
}

.display-1 {
    color: var(--secondary-color);
    letter-spacing: -.2rem;
    font-family: 'Persia Bold';
}

h1 { font-size: 2.1rem; }
.display-4 { font-size: 2.5rem; }
.display-3 { font-size: 3rem; }
.display-2 { font-size: 3.5rem; }
.display-1 { font-size: 4rem; }

.slogan {
    font-size: 1.3rem;
    margin: 1rem 0 0;
    line-height: 1.7;
}

/* ==========================================================================
   3. Forms, Inputs & Buttons
   ========================================================================== */
input[name=link], input[name=vurl], input[name=mailto],
input[name=ssid], input[name=networktype], input[name=wifipass],
input[name=vemail], select[name=countrycodesms], input[name=sms],
input[name=tel], select[name=countrycodetel], input[name=backcolor],
input[name=frontcolor], input[name=vcap], input[name=vfax],
input[name=vphone], input[name=vmobile] {
    direction: ltr;
}

.form-control {
    background-color: var(--white);
}

textarea.form-control {
    margin-bottom: 1rem;
}

.btn:disabled {
    opacity: .2;
}

.btn.btn-primary {
    background: var(--primary-color);
}

.btn, .form-control, .placeresult, .lnk, .bg-warning {
    border-radius: 0.25rem !important;
}

/* Custom File Input */
.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin-bottom: 0;
}

.custom-file-label {
    border: none;
}

label.custom-file-label:after {
    content: "\f093" !important;
    font-family: 'FontAwesome';
    width: 100%;
    border: none;
    text-align: center;
    border-radius: .25rem;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + .75rem);
    padding: .375rem .75rem;
    line-height: 1.5;
    color: var(--white);
    background-color: var(--accent-color);
}

.custom-file-input.form-control {
    cursor: pointer;
}

.custom-file:hover label.custom-file-label:after {
    color: var(--white);
}

/* ==========================================================================
   4. Links & Navigation
   ========================================================================== */
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover, a:focus, a:active {
    color: var(--primary-color);
    text-decoration: none;
}

hr {
    border-color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
}

.lnk {
    display: inline-block;
    margin: 10px 0 0;
    padding: 8px 10px;
    font-size: 16px;
    color: var(--white);
    letter-spacing: -0.5px;
    background: #1c2835;
    box-shadow: #0003 0 0 10px 0;
    transition: 0.2s ease-out;
    text-decoration: none;
}

.lnk:hover {
    background: #50585d;
    color: var(--white);
}

.answer a {
    color: var(--primary-color);
}

.nav-pills>li>a span {
    font-size: .9em;
}

.navbar-dark .navbar-toggler {
    border-color: transparent;
}

.logoselecta img {
    min-height: 2em;
    min-width: 2em;
    max-width: 2em;
    max-height: 2em;
}

.btn.custom-watermark {
    padding: 0;
}

.custom-watermark img {
    max-width: 100%;
    height: 2em;
    margin: .375rem .75rem;
}

.styleselecta img {
    width: 2.5em;
}

.styleselecta label {
    min-width: 2.5em;
}

.btn-group-toggle .btn {
    border-radius: 0;
}

[lang="fa"] .nav .fa {
    transform: rotateY(180deg);
}

.navbar-nav .dropdown-menu {
    text-align: left;
    text-transform: capitalize;
}

/* ==========================================================================
   5. Main Content Sections
   ========================================================================== */
body {
    flex-direction: column;
}

.qrcodsaz {
    border-radius: 0.25rem !important;
    background-color: var(--primary-color) !important;
    color: var(--white);
    padding: 18px 20px;
    margin-top: 12px;
}

.qrcodsaz a {
    color: var(--accent-color);
}

.qrcodsaz a:hover, .qrcodsaz a:focus {
    color: var(--accent-hover-color);
}

.footer {
    text-align: center;
    font-weight: bold;
}

.footer a {
    color: var(--primary-color);
}

.footer p {
    direction: ltr;
    font-weight: normal;
    font-size: smaller;
    margin-top: 0.5rem;
}

.py-3 p {
    font-size: 15px;
}

/* ==========================================================================
   6. Banner (تبلیغات)
   ========================================================================== */
.banner {
    width: 130px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    text-align: center;
}

.banner > span {
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    top: -25px;
    right: 0;
}

a.banner {
    max-height: 200px;
    display: block;
    border: 2px var(--white) solid;
    background: var(--white);
    border-radius: 6px;
    text-decoration: none;
}

.banner img {
    width: 100%;
    vertical-align: middle;
    border-radius: 6px;
}

.banner p {
    direction: rtl;
    line-height: 24px;
    padding: 10px 4px 4px;
    background: var(--white);
    font-size: 14px;
    color: var(--text-color);
}

.banner p span {
    color: var(--white);
    text-shadow: 1px 1px 0 var(--black);
    margin-top: 10px;
    display: block;
    border-radius: 6px;
    padding: 4px 15px;
    transition: 0.2s ease-out;
    background: var(--accent-color);
    box-shadow: rgba(0,0,0,0.2) 0 0 5px 0;
}

a.banner:hover p span {
    box-shadow: none;
    background: var(--accent-hover-color);
}

.blt {
    left: 20px;
    right: inherit;
}

.banner:hover {
    filter: brightness(95%) saturate(80%) contrast(115%);
    box-shadow: none;
}

/* ==========================================================================
   7. Color Palette Buttons
   ========================================================================== */
.content a.ngrn {
    color: var(--white);
    text-shadow: 1px 1px 0 var(--black);
    margin: 10px 0;
    box-sizing: border-box;
    border-radius: 6px;
    height: 48px;
    line-height: 44px;
    padding: 0 10px;
    font-size: 15px;
    font-weight: bold;
    background: var(--accent-color);
    display: block;
    border: solid var(--white);
    border-width: 2px;
    text-decoration: none;
    text-align: center;
}

.ngrn.inst {
    padding: 0 20px;
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d) !important;
    color: var(--white);
    text-shadow: 1px 1px 0 var(--black);
}

.cbio, .c-green { background: #007c7c !important; }
.capd, .c-red2 { background: #9b2c21 !important; }
.cham, .c-orange { background: #ad5317 !important; }
.cqrc { background-image: linear-gradient(45deg, #480089, #007ca3) !important; }
.cnhb, .c-blue1 { background: #00a9d3 !important; }
.cbit, .c-blue2 { background: #0072ff !important; }
.cngn, .c-purple1 { background: #87009b !important; }
.cgsm, .c-purple2 { background: #340dc5 !important; }
.cdgt, .purpleblue { background: #215192 !important; }
.cvrk { background: #2ba5c1 !important; }
.cbox { background: #391b08 !important; color: #fbbd0f !important; }
.cins { background-image: linear-gradient(45deg, #833ab4, #fd1d1d) !important; }
.cads { background: var(--primary-color) !important; }

.content a.ngrn.cads {
    border-style: dashed;
    border-width: 2px;
}

.ctab {
    background-image: linear-gradient(45deg, #FACC15, #F59E0B) !important;
    color: var(--text-color) !important;
    text-shadow: 1px 1px var(--white) !important;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
}

.banner p span.ctab {
    box-shadow: inset #1b1c20 0 0 0 1px !important;
}

.banner:hover p span.ctab {
    box-shadow: inset #1b1c20 0 0 0 1px !important;
}

/* ==========================================================================
   8. Accordion
   ========================================================================== */
.accordion-item {
    background-color: transparent; /* *** این تغییر جدید برای حذف پس‌زمینه سفید است *** */
}

/* ==========================================================================
   9. Utilities & Other Components
   ========================================================================== */
.no-gutters {
    direction: ltr;
}

.venomap {
    width: 100%;
    height: 400px;
}

.form-control.no-validate:valid, .form-control.no-validate:invalid {
    border-color: #ced4da;
    padding-right: .75rem;
    background: none;
}

#map-canvas img {
    max-width: none;
}

#map-canvas {
    width: 100%;
    height: 350px;
    padding: 0;
    float: left;
}

.controls {
    margin-top: 16px;
    border: 1px solid transparent;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    height: 32px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

#pac-input, #latlong input {
    background-color: var(--white);
    padding: 0 11px 0 13px;
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    text-overflow: ellipsis;
}

#pac-input {
    width: 50%;
}

#latbox, #lngbox {
    width: 20%;
}

#pac-input:focus, #latlong input:focus {
    border-color: #4d90fe;
}

.wrapresult, .resultholder {
    position: relative;
    text-align: center;
}

.resultholder svg {
    max-width: 100%;
    height: auto;
}

.placeresult {
    float: left;
    width: 100%;
    padding: 10px;
    position: relative;
}

.placeresult .linksholder .btn {
    font-size: 2.5rem;
}

.preloader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    font-size: 36px;
    display: none;
}

.preloader .fa-cog {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -18px;
    margin-top: -18px;
}

.was-validated .form-control:valid {
    background-image: none;
    border-color: #ced4da;
}

.was-validated .custom-select:valid {
    border-color: #ced4da;
}

.custom-control-input.is-valid ~ .custom-control-label, .was-validated .custom-control-input:valid ~ .custom-control-label {
    color: inherit;
}

.form-group {
    margin-bottom: 1rem;
}

.overlay-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .2);
    background: -moz-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 100%);
    background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(255, 255, 255, .2)), color-stop(100%, rgba(255, 255, 255, 0)));
    background: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(-45deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(135deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 50%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffffff', GradientType=1);
}

.vertical-middle {
    vertical-align: middle;
}

#infomarker_admin {
    width: 24px;
    height: 24px;
    border: 2px solid #950000;
    border-radius: 3em;
    background-color: #0FF;
    opacity: .5;
    cursor: move;
}

#footer a:hover {
    color: var(--white);
}

.bg-primary {
    background-image: url('images/bg.png');
}

.qrcdr {
    background-image: url('images/bg2.jpg');
}

/* --- CHANGE START --- */
.container {
    width: 90%;
    max-width: 1100px; /* Reduced from 1200px */
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
/* --- CHANGE END --- */

.blue-headers h2, .blue-headers h3, .blue-headers h4 {
    color: var(--primary-color);
}

section h3 {
    padding: 5px 0 5px;
    line-height: 1.4;
}

.h3, h3 {
    font-size: 1.75rem;
}

.col-md-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

a {
    transition-duration: .3s;
    transition-property: border, background-color;
}

a, .btn-link {
    color: var(--primary-color);
}

.image-editor {
    width: 248px;
}

.cropit-preview img {
    max-width: none;
}

.cropit-preview {
    background-size: cover;
    width: 200px;
    height: 200px;
    margin: 25px;
    border: 1px solid #E4E1E6;
}

.cropit-preview-image-container {
    cursor: move;
}

input.cropit-image-input {
    visibility: hidden;
    display: none;
}

.cropit-preview-background {
    opacity: .2;
}

input.cropit-image-zoom-input {
    position: relative;
}

.cropit-image-zoom-input, .cropit-preview {
    display: none;
}

.cropit-preview.cropit-image-loaded {
    display: block;
}

.cropit-image-loaded.cropit-image-zoom-input:not([disabled]) {
    display: inline-block;
}

.accordion {
    --bs-accordion-border-width: 0;
}

.ltr {
    direction: ltr;
}

#dataTabs .active {
    width: 100%;
    background-color: #eee;
    border: 1px solid #d0d0d0;
    padding: 12px 15px 0px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.floating-notification {
    inset: auto 20px 20px auto;
    width: 300px;
    position: fixed;
    z-index: 99999;
}

#floating-notification-close-link {
    cursor: not-allowed;
}

/* ==========================================================================
   10. Responsive Design
   ========================================================================== */
@media (min-width: 576px) {
    h1 { font-size: 2.2rem; }
    .display-4 { font-size: 3rem; }
    .display-3 { font-size: 3.5rem; }
    .display-2 { font-size: 4rem; }
    .display-1 { font-size: 3.5rem; }
}

@media (min-width: 768px) {
    h1 { font-size: 2.3rem; }
    .display-4 { font-size: 3.5rem; }
    .display-3 { font-size: 4rem; }
    .display-2 { font-size: 4.5rem; }
    .display-1 { font-size: 3rem; }
    .mbl { display: none !important; }
}

@media (min-width: 992px) {
    h1 { font-size: 2.4rem; }
    .display-4 { font-size: 4rem; }
    .display-3 { font-size: 4.5rem; }
    .display-2 { font-size: 5rem; }
    .display-1 { font-size: 3.5rem; margin-top: -50px; }
    .slogan { width: 60%; }
    .col-lg-4.order-last { margin-top: -165px; }
}

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    .display-4 { font-size: 4.5rem; }
    .display-3 { font-size: 5rem; }
    .display-2 { font-size: 5.5rem; }
    .display-1 { font-size: 3rem; }
}

@media only screen and (min-width: 481px) and (max-width: 767px) {
    .content { width: 449px !important; }
    .statform .url_btn { width: inherit; margin-top: 0; }
}

@media only screen and (max-width: 767px) {
    .content a.ngrn { margin: 8px 0; }
    .content.note { min-height: 60vh; }
    .dsktp, .arrow { display: none !important; }
    .content, h2 {
        font-size: 20px;
        margin: 0 auto;
        line-height: 38px;
        width: auto;
        background: none;
    }
}

@media only screen and (min-width: 768px) {
    .mbl { display: none !important; }
}

@media only screen and (max-height: 500px) and (min-width: 768px) and (max-width: 1130px) {
    .banner.dsktp { display: none !important; }
}

@media (max-width: 1465px) {
    .dsktp { display: none !important; }
    .floating-notification { display: none !important; }
}

@media (max-width: 575px) {
    .row.py-5 { padding: 1rem !important; }
    .display-1 { font-size: 2.4rem; letter-spacing: -0.1rem; }
    .slogan { font-size: 0.8rem; }
    .ml-auto, .mx-auto { margin-right: 0 !important; }
    .qrcodsaz { font-size: 14px; line-height: 24px; }
}


/* ==========================================================================
   11. Content container main style
   ========================================================================== */

        .qr-code-card {
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            padding: 30px;
            max-width: 1150px; /* Reduced from 1600px */
            margin: 0 auto;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .qr-code-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }

        /* استایل عنوان اصلی */
        .qr-code-card h2 {
            color: #1a1a1a;
            font-weight: 700;
            font-size: 1.8rem;
            margin-bottom: 20px;
        }

        /* استایل پاراگراف‌ها */
        .qr-code-card p {
            color: #4a4a4a;
            line-height: 1.8;
            text-align: justify;
            font-size: 1.05rem;
        }

        /* استایل لینک‌های داخل متن */
        .qrcodsa {
            background-color: #e7f5ff;
            color: #136cb4;
            border-radius: 5px;
            padding: 3px 8px;
            text-decoration: none;
            font-weight: 500;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .qrcodsa:hover {
            background-color: #136cb4;
            color: #ffffff;
        }

        /* استایل دکمه "مشاهده بیشتر" */
        .read-more-btn {
            background: linear-gradient(45deg, #136cb4, #2fb3f0);
            color: #ffffff;
            border: none;
            outline: none;
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            margin-top: 20px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .read-more-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(19, 108, 180, 0.3);
        }
        
        /* استایل‌های مربوط به عملکرد "بیشتر/کمتر" */
        #more {display: none;}

        /* استایل برای بخش کلمات کلیدی جهت جداسازی از متن اصلی */
        .keywords-section {
            background-color: #f8f9fa;
            border-right: 3px solid #136cb4;
            padding: 15px 20px;
            margin-top: 20px;
            border-radius: 5px;
        }

        .keywords-section h4 {
            font-size: 1.1rem;
            color: #136cb4;
            margin-bottom: 10px;
        }

        .keywords-section p {
            font-size: 0.95rem;
            line-height: 1.7;
            color: #555;
        }