/*
 * Version: 1.0
 * Author: Hosein Bahmani
 * Website: https://notary-service.net
 */
:root{
    --navy:#15304f;
    --navy2:#1d3f68;
    --gold:#c9973f;
    --brand:#1d3f68;
    --ink:#182333;
    --bg:#f4f6fa;
    --radius:18px;
    --shadow:0 10px 28px rgba(20,40,70,.08);
}
body{
    font-family:Vazirmatn,Tahoma,sans-serif;
    background:var(--bg);
    color:var(--ink)
}
a{
    text-decoration:none
}
::selection{
    background:var(--navy);
    color:#fff
}

/* ---- Navbar ---- */
.navbar{
    background:#fff;
    box-shadow:0 2px 14px rgba(20,40,70,.06);
    position:sticky;
    top:0;
    z-index:1030;
    padding:14px 0
}
.navbar-brand{
    font-weight:800;
    color:var(--navy)!important;
    font-size:1.2rem;
    display:flex;
    align-items:center;
    gap:10px
}
.navbar-brand .brand-icon{
    width:38px;
    height:38px;
    border-radius:10px;
    background:linear-gradient(135deg,var(--navy),var(--navy2));
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    font-size:1.2rem
}
.navbar-brand .brand-sub{
    display:block;
    font-size:.68rem;
    font-weight:500;
    color:#8a93a6;
    margin-top:-2px
}
.nav-link{
    color:#334;
    font-weight:600;
    padding:.5rem .9rem!important;
    border-radius:10px;
    transition:.2s;
    position:relative
}
.nav-link:hover{
    color:var(--navy)!important
}
.nav-link.active{
    color:var(--navy)!important
}
.nav-link.active::after{
    content:"";
    position:absolute;
    bottom:2px;
    right:18px;
    left:18px;
    height:2px;
    background:var(--gold);
    border-radius:2px
}
.icon-btn{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#f1f4f9;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--navy);
    border:0;
    transition:.2s
}
.icon-btn:hover{
    background:#e5eaf3
}
.btn-brand{
    background:linear-gradient(135deg,var(--navy),var(--navy2));
    border:0;
    color:#fff;
    font-weight:700;
    border-radius:12px;
    padding:.55rem 1.2rem;
    box-shadow:0 6px 16px rgba(21,48,79,.25);
    transition:.2s
}
.btn-brand:hover{
    filter:brightness(1.12);
    color:#fff;
    transform:translateY(-1px)
}
.btn-outline-brand{
    border:1.5px solid var(--navy);
    color:var(--navy);
    border-radius:12px;
    font-weight:700;
    background:#fff
}
.btn-outline-brand:hover{
    background:var(--navy);
    color:#fff
}

/* ---- Hero ---- */
.hero{
    position:relative;
    overflow:hidden;
    border-radius:0 0 36px 36px;
    background:linear-gradient(115deg,rgba(15,30,50,.94) 0%,rgba(21,48,79,.86) 45%,rgba(29,63,104,.55) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600"><rect width="800" height="600" fill="%231d2c44"/></svg>');
    background-size:cover;
    background-position:center;
    color:#fff;
}
.hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 85% 20%, rgba(201,151,63,.25) 0, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(201,151,63,.15) 0, transparent 40%);
    pointer-events:none
}
.hero .content{
    position:relative;
    z-index:1
}
.hero .eyebrow{
    display:inline-block;
    background:rgba(201,151,63,.16);
    color:var(--gold);
    border:1px solid rgba(201,151,63,.4);
    padding:6px 16px;
    border-radius:30px;
    font-size:.8rem;
    font-weight:700;
    margin-bottom:18px
}
.hero h1{
    font-weight:800;
    line-height:1.7;
    letter-spacing:-.5px
}
.hero p.lead{
    color:#cfd8e6
}

/* ---- Feature icon cards ---- */
.feature-card{
    background:#fff;
    border-radius:var(--radius);
    padding:26px 20px;
    text-align:center;
    box-shadow:var(--shadow);
    border:1px solid #eef1f6;
    transition:.25s;
    height:100%
}
.feature-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 36px rgba(20,40,70,.12)
}
.feature-card .icon{
    width:60px;
    height:60px;
    border-radius:16px;
    background:linear-gradient(135deg,#eef2f9,#e3e9f4);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 14px;
    font-size:1.7rem;
    color:var(--navy)
}
.feature-card h6{
    font-weight:800;
    margin-bottom:6px
}
.feature-card p{
    color:#7a8496;
    font-size:.85rem;
    margin:0
}

/* ---- Why-us checklist ---- */
.why-us-media{
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    height:100%;
    min-height:260px;
    background:linear-gradient(135deg,#1d3f68,#15304f);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:3rem
}
.check-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 0;
    border-bottom:1px dashed #e7ebf2
}
.check-item:last-child{
    border-bottom:0
}
.check-item .tick{
    width:26px;
    height:26px;
    border-radius:50%;
    background:#e8f5ea;
    color:#2e7d32;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    font-size:.8rem
}

.section-title{
    font-weight:800;
    position:relative;
    padding-inline-start:16px;
    margin-bottom:1.6rem;
    font-size:1.4rem
}
.section-title::before{
    content:"";
    position:absolute;
    inset-inline-start:0;
    top:3px;
    bottom:3px;
    width:6px;
    background:linear-gradient(180deg,var(--navy),var(--gold));
    border-radius:6px
}

/* ---- Content / legal-text cards ---- */
.content-card{
    background:#fff;
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.25s;
    height:100%;
    display:flex;
    flex-direction:column;
    border:1px solid #eef1f6
}
.content-card:hover{
    transform:translateY(-7px);
    box-shadow:0 18px 40px rgba(20,40,70,.14)
}
.content-card .thumb{
    height:170px;
    background:linear-gradient(135deg,#eef2f9,#e3e9f4);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden
}
.content-card .thumb img{
    width:100%;
    height:100%;
    transition:transform .4s
}
.content-card:hover .thumb img{
    transform:scale(1.06)
}
.content-card .body{
    padding:18px;
    flex-grow:1;
    display:flex;
    flex-direction:column
}
.content-card .cat-badge{
    font-size:.72rem;
    background:#eef2f9;
    color:var(--navy);
    padding:4px 12px;
    border-radius:20px;
    display:inline-block;
    margin-bottom:10px;
    width:fit-content;
    font-weight:700
}
.content-card h5{
    font-size:1.02rem;
    font-weight:800;
    margin-bottom:8px;
    line-height:1.7
}
.content-card p{
    color:#7a8496;
    font-size:.87rem;
    flex-grow:1;
    line-height:1.8
}
.content-card .meta{
    font-size:.78rem;
    color:#9aa1ad;
    border-top:1px dashed #eef0f6;
    padding-top:12px;
    margin-top:12px;
    display:flex;
    justify-content:space-between
}

/* mini list (latest legal texts sidebar) */
.mini-list-item{
    display:flex;
    gap:12px;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid #f0f2f7
}
.mini-list-item:last-child{
    border-bottom:0
}
.mini-list-item .thumb{
    width:56px;
    height:56px;
    border-radius:12px;
    background:#eef2f9;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    font-size:1.3rem
}
.mini-list-item .txt h6{
    font-size:.88rem;
    font-weight:700;
    margin-bottom:3px;
    line-height:1.6
}
.mini-list-item .txt span{
    font-size:.75rem;
    color:#9aa1ad
}

.category-pill{
    background:#fff;
    border:1px solid #eef1f6;
    border-radius:16px;
    padding:16px 12px;
    text-align:center;
    color:var(--ink);
    font-weight:700;
    font-size:.9rem;
    transition:.2s;
    display:block;
    box-shadow:0 4px 14px rgba(20,30,60,.05)
}
.category-pill:hover{
    background:linear-gradient(135deg,var(--navy),var(--navy2));
    color:#fff;
    border-color:transparent;
    transform:translateY(-3px)
}

.card{
    border:1px solid #eef1f6;
    border-radius:18px;
    box-shadow:var(--shadow)
}
.star-input{
    display:flex;
    flex-direction:row-reverse;
    justify-content:flex-end;
    font-size:1.9rem
}
.star-input input{
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
    pointer-events:none
}
.star-input label{
    color:#d8dbe3;
    cursor:pointer;
    transition:color .15s
}
.star-input input:checked ~ label{
    color:var(--gold)
}
.star-input label:hover,.star-input label:hover ~ label{
    color:var(--gold)
}
.star-rating{
    color:var(--gold);
    letter-spacing:1px
}

/* ---- جعبه‌ی لینک داخلی خودکار ---- */
.autolink-box{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin:26px 0;
    padding:16px 18px;
    background:linear-gradient(135deg,#fdf8ee,#fff);
    border:1px solid rgba(201,151,63,.35);
    border-inline-start:4px solid var(--gold);
    border-radius:14px;
    box-shadow:0 4px 14px rgba(201,151,63,.08)
}
.autolink-box__icon{
    font-size:1.15rem;
    line-height:1.8;
    flex-shrink:0
}
.autolink-box__text{
    font-size:.95rem;
    font-weight:600;
    color:#5a4a2c;
    line-height:1.9
}
.autolink-link{
    color:var(--navy);
    font-weight:800;
    border-bottom:2px solid rgba(201,151,63,.45);
    transition:.15s
}
.autolink-link:hover{
    color:var(--gold);
    border-bottom-color:var(--gold)
}
.autolink-inline{
    margin:22px 0;
    padding:12px 16px;
    background:#f7f9fd;
    border-inline-start:3px solid var(--gold);
    border-radius:10px;
    font-size:.95rem;
    font-weight:600;
    color:#44506b
}
@media print{
    .autolink-box,.autolink-inline{
        display:none
    }
}
.search-highlight{
    background:#fff3b0;
    color:#5a4600;
    padding:0 3px;
    border-radius:4px
}

footer{
    background:var(--navy);
    color:#c3cbdb;
    margin-top:70px;
    border-radius:36px 36px 0 0
}
footer a{
    color:#c3cbdb;
    transition:.2s
}
footer a:hover{
    color:#fff
}
.social-icon{
    width:36px;
    height:36px;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    transition:.2s
}
.social-icon:hover{
    background:var(--gold);
    color:var(--navy)
}

/**service page **/

.service-page img{
    width:100% !important;
} 
/**service page **/
@media (min-width: 992px){
    .navbar-nav{
        flex-direction:row;
    }
}
@media (max-width: 991.98px){
    .navbar-collapse{
        margin-top:12px;
        border-top:1px solid #eef1f6;
        padding-top:12px;
    }
    .navbar-nav{
        flex-direction:column;
        width:100%;
    }
    .navbar-nav .nav-link{
        padding:.65rem .5rem!important;
    }
    .navbar-nav.mx-lg-auto{
        margin-right:0!important;
        margin-left:0!important;
    }
}


.why-us-media{
    background: url('../uploads/branding/image-1.png');
    width: 100%;
}
.summery-text{
    text-align: justify;
}
.header-banner-wrapper {
    position:relative;
    display: block;
    width: 100%;
}

.header-banner {

    display: block;
    width: 100%;
    height: auto;
}


/**style for header **/

.header-1{
    font-size: 26px;
    position: absolute;
    bottom: 110px;
    color: #ffffff;
    right: 88px;
}
.navbar-toggler{
    position: relative;
}

@media (max-width: 991.98px){
    .navbar-collapse{
        position: absolute;
        left: 12px;
        right: 12px;
        top: 100%;
        width: auto;
        max-width: none;
        background: #ffffff;
        text-align: center;
        box-shadow: 0 10px 28px rgba(20,40,70,.12);
        border-radius: 12px;
        padding: 10px 14px 14px;
        z-index: 1040;
    }
}
/**end of style for header **/



@media (max-width: 575px) {

    .header-1{
        bottom: 277px;
        right: 10px;
        font-size: 21px;
        background: linear-gradient(45deg, #026dc740, transparent);
        border-radius: 10px;
        padding: 7px;
    }
    .navbar-brand{
    
    font-size:14px;
     
}

}




@media (min-width: 576px) and (max-width: 767px) {

    .header-1{

        bottom: 445px;
        right: 0;
        font-size: 21px;
        background: linear-gradient(45deg, #026dc740, transparent);
        border-radius: 10px;
        padding: 7px;

    }

}




@media (min-width: 768px) and (max-width: 991px) {
    .header-1 {
        bottom: 52px;
        right: 0;
        font-size: 15px;
        background: linear-gradient(45deg, #026dc740, transparent);
        border-radius: 10px;
        padding: 7px;
    }


}




@media (min-width: 992px) and (max-width: 1199px) {

    .header-1{
        bottom: 52px;
        right: 0;
        font-size: 15px;
        background: linear-gradient(45deg, #026dc740, transparent);
        border-radius: 10px;
        padding: 7px;
    }
    .navbar-nav{
        font-size: 12px;
    }

}



@media (min-width: 1200px) and (max-width: 1399px) {

    .header-1{

        bottom: 93px;
        right: 0;
        font-size: 24px;
        background: linear-gradient(45deg, #026dc740, transparent);
        border-radius: 10px;
        padding: 7px;
    }

}




@media (min-width: 1400px) {

    .header-1{
        bottom: 137px;
        right: 0;
        font-size: 31px;
        background: linear-gradient(45deg, #026dc740, transparent);
        border-radius: 10px;
        padding: 7px;
    }

}

/* ---- متون حقوقی عمومی (منتقل‌شده از پنل) ---- */
.legal-text-body{line-height:2.1;font-size:1.05rem;user-select:text;color:#2b3a4d;word-wrap:break-word}
.legal-text-body h1,.legal-text-body h2,.legal-text-body h3,.legal-text-body h4,.legal-text-body h5,.legal-text-body h6{
  font-weight:800;color:var(--navy);line-height:1.7;margin:1.4em 0 .6em}
.legal-text-body h1{font-size:1.5rem}.legal-text-body h2{font-size:1.35rem}.legal-text-body h3{font-size:1.2rem}
.legal-text-body h4,.legal-text-body h5,.legal-text-body h6{font-size:1.08rem}
.legal-text-body p{margin:0 0 1em}
.legal-text-body ul,.legal-text-body ol{padding-right:1.6em;padding-left:0;margin:0 0 1em}
.legal-text-body li{margin-bottom:.4em}
.legal-text-body a{color:var(--navy2);text-decoration:underline;word-break:break-word}
.legal-text-body strong,.legal-text-body b{color:var(--navy);font-weight:800}
.legal-text-body blockquote{border-right:4px solid var(--gold);border-left:0;background:#fbf6ec;
  margin:1em 0;padding:.8em 1.2em;border-radius:8px;color:#4a4030}
.legal-text-body img{max-width:100%;height:auto;border-radius:10px;display:block;margin:1em auto}
.legal-text-body hr{border:0;border-top:1px solid #e3e7f0;margin:1.5em 0}
.legal-text-body table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.95rem}
.legal-text-body table th,.legal-text-body table td{border:1px solid #dde2ec;padding:.55em .8em;text-align:right}
.legal-text-body table th{background:#eef2f9;font-weight:700}
.legal-text-body table tr:nth-child(even) td{background:#f8faff}
.legal-text-body pre,.legal-text-body code{font-family:monospace;direction:ltr;text-align:left;
  background:#f1f3f8;border-radius:6px}
.legal-text-body pre{padding:.9em;overflow-x:auto;margin:1em 0}
.legal-text-body code{padding:.15em .4em}
.legal-text-body .table-scroll{overflow-x:auto}
.cat-sidebar a{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:10px;
  color:#42506a;text-decoration:none;font-weight:600;font-size:.87rem;margin-bottom:3px;transition:.15s}
.cat-sidebar a:hover{background:#f1f4f9;color:var(--navy)}
.cat-sidebar a.active{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;
  box-shadow:0 4px 12px rgba(21,48,79,.25)}
.cat-sidebar a .count{font-size:.72rem;background:#eef2f9;color:#7a8496;padding:1px 9px;border-radius:20px;font-weight:700}
.cat-sidebar a.active .count{background:rgba(255,255,255,.18);color:#fff}

/* ---- کارت نمایش یک متن حقوقی ---- */
