/********** Template CSS **********/
@import url(IRANSansWeb.css);

html, body {
    direction: rtl;
    width: 100%;
    overflow-x: hidden; /* از اسکرول افقی جلوگیری می‌کند */
    color: #797979;
    background: #ffffff;
    font-family: 'IRANSansWeb(FaNum)', cursive;
}

:root {
    --primary: #FEA116;
    --light: #F1F8FF;
    --dark: #0F172B;
}

.ff-secondary {
    font-family: 'IRANSansWeb(FaNum)', cursive;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'IRANSansWeb(FaNum)', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    font-size: 15px;
    color: var(--light) !important;
    text-transform: uppercase;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-dark .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
    }

    .navbar-dark .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, .1)
    }

    .navbar-dark .navbar-nav .nav-link,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
    }

    .navbar-dark .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
        background: transparent !important;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: var(--dark) !important;
    }
}


/*** Hero Header ***/
.hero-header {
    background: linear-gradient(rgba(15, 23, 43, .9), rgba(15, 23, 43, .9)), url(../img/05-AI-.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-header img {
    animation: imgRotate 50s linear infinite;
}

@keyframes imgRotate { 
    100% { 
        transform: rotate(360deg); 
    } 
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Food Menu ***/
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}


/*** Youtube Video ***/
.video {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img/video.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    height: calc(100% - 38px);
    transition: .5s;
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item:hover {
    height: 100%;
}

.team-item .btn {
    border-radius: 38px 38px 0 0;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.form-floating > label {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
    transform-origin: top right !important;
}

.form-floating > .form-control,
.form-floating > .form-select {
    text-align: right !important;
    direction: rtl !important;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(.85) translateY(-0.5rem) translateX(-0.15rem) !important;
}


.owl-carousel {
    direction: ltr;
}

.testimonial-item {
    direction: rtl;
}

h1.display-3 {
    font-family: 'IRANSansWeb(FaNum)', cursive;;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANSansWeb' !important;
}

.blog-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}


.blog-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}


.blog-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.blog-text h2 {
    min-height: 60px;
}


.blog-text p {
    line-height: 1.9;
}


.blog-btn {
    margin-top: auto;
}
/*******************************/
/*********** Blog CSS **********/
/*******************************/
.blog {
    position: relative;
    width: 100%;
    padding: 45px 0;
}

.blog .blog-carousel {
    position: relative;
    width: calc(100% + 30px);
    left: -15px;
    right: -15px;
}

.blog .blog-item {
    position: relative;
    margin: 0 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* سایه قوی‌تر در حالت هاور */
}

.blog .blog-page .blog-item {
    margin: 0 0 30px 0;
}

.blog .blog-img {
    position: relative;
    width: 100%;
    /*height: 100px;*/
}

.blog .blog-img img {
    width: 100%;
    height: 250px;
}

.blog .blog-text {
    position: relative;
    padding: 25px 30px;
    border-right: 1px solid rgba(0, 0, 0, .07);
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    border-left: 1px solid rgba(0, 0, 0, .07);
}

.blog .blog-text h2 {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.blog .blog-text p {
    margin-bottom: 10px;
}

.blog .blog-item a.btn {
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #343148;
    transition: .3s;
}

.blog .blog-item a.btn i {
    margin-left: 5px;
}

.blog .blog-item a.btn:hover {
    color: #F7CAC9;
}

.blog .blog-meta {
    position: relative;
    display: flex;
    margin-bottom: 15px;
}

.blog .blog-meta p {
    margin: 0 10px 0 0;
    font-size: 13px;
}

.blog .blog-meta i {
    margin-right: 5px;
}

.blog .blog-meta p:last-child {
    margin: 0;
}

.blog .owl-nav {
    width: 150px;
    margin: 32px auto 0 auto;
    display: flex;
}

.blog .owl-nav .owl-prev,
.blog .owl-nav .owl-next {
    margin-left: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F7CAC9;
    background: #343148;
    font-size: 22px;
    transition: .3s;
}

.blog .owl-nav .owl-prev:hover,
.blog .owl-nav .owl-next:hover {
    color: #343148;
    background: #F7CAC9;
}

.blog .pagination .page-link {
    color: #343148;
    border-radius: 0;
    border-color: #343148;
}

.blog .pagination .page-link:hover,
.blog .pagination .page-item.active .page-link {
    color: #F7CAC9;
    background: #343148;
}

.blog .pagination .disabled .page-link {
    color: #999999;
}

.designer-link {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: .3s;
}

.designer-link:hover {
    color: #FEA116 !important;
    text-decoration: none !important;
}

#rahkar {
    scroll-margin-top: 60px;
}

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}


/* یکسان‌سازی اجباری اندازه عکس‌های لیست مقالات */
.blog-page .blog-item .blog-img,
.blog-page .service-item > a {
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
}

.blog-page .blog-img a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.blog-page .blog-img img,
.blog-page .blog-image,
.blog-page .service-item > a img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* اصلاح اندازه عکس‌های بخش مقالات اخیر */
.article-detail .recent-article {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
}

.article-detail .recent-article-img {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px;
    max-width: 90px;
    flex: 0 0 90px;
    overflow: hidden;
    border-radius: 8px;
}

.article-detail .recent-article-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    margin: 0;
    padding: 0;
}

.article-detail .recent-article-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* اندازه و ظاهر عنوان مقاله */
.article-detail .article-title {
    font-size: 26px !important;
    line-height: 1.8;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0f172b;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .article-detail .article-title {
        font-size: 21px !important;
        line-height: 1.9;
    }
}

/* اندازه تصویر اصلی مقاله در موبایل */
@media (max-width: 767.98px) {
    .article-detail .article-cover {
        height: 220px !important;
        max-height: 220px !important;
        overflow: hidden;
    }

    .article-detail .article-cover img {
        display: block;
        width: 100%;
        height: 100% !important;
        max-height: 220px !important;
        object-fit: cover;
        object-position: center;
    }

    .article-detail .article-content {
        padding: 18px;
    }
}

/* تراز دوطرفه متن مقاله */
.article-detail .article-body {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 2.2;
    direction: rtl;
}

.article-detail .article-body p {
    text-align: justify !important;
}

/* About - Typography */
#about {
    line-height: 2;
}

#about .about-text {
    text-align: justify;
    text-align-last: right;
    line-height: 2.1;
    color: #666565;
    overflow-wrap: anywhere;
}

#about p.about-text.text-center {
    text-align: center !important;
    text-align-last: center !important;
}


#about h1,
#about h2,
#about h3,
#about h4,
#about h5 {
    line-height: 1.8;
}

/* About - Main cards */
#about .about-card,
#about .about-service,
#about .about-value,
#about .about-vision {
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .about-card,
#about .about-service {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

#about .about-card:hover,
#about .about-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

#about .about-service {
    padding: 28px !important;
}

#about .about-service i,
#about .about-value i {
    transition: transform 0.3s ease;
}

#about .about-service:hover i,
#about .about-value:hover i {
    transform: scale(1.08);
}

#about .about-vision {
    background: #f8f9fa;
    border: none;
}

#about .about-value {
    border-color: transparent;
    background: #fafafa;
}

#about .btn {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 767.98px) {
    #about {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #about h1 {
        font-size: 1.8rem;
    }

    #about h2 {
        font-size: 1.5rem;
    }

    #about h4 {
        font-size: 1.1rem;
    }

    #about .about-text {
        line-height: 2;
        font-size: 0.95rem;
    }

    #about .about-card,
    #about .about-service {
        padding: 22px !important;
    }
}
