.swiper-slide {
    height: auto !important;
}
/* بک گرادینت بالا */
.text-hero{
    background: linear-gradient(135deg, #7b2ff7, #4facfe);
    height: auto;
    width: 88%;
    margin: 0 auto;
    border-radius: 40px;
    position: relative;
    padding: 40px;
}

/* باکس پیام AI */
.hero-aibox{
    margin-top: 40px ;
    background: #3a3550;
    color: #fff;
    border-radius: 18px;
    padding: 20px;
    max-width: 70%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* هدر کارت */
.hero-aiheader{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-aiheader img{
    width: 50px;
}

/* متن */
.hero-aitext{
    /*font-size: 18px;*/
    line-height: 2;
    color: #e0e0e0;
    text-align:right;
}

/* پیام کاربر */
.hero-userbubble{
    position: absolute;
    top: 20px;
    left: 40px;
    background: #eee;
    padding: 10px 15px;
    border-radius: 12px;
    /*font-size: 18px;*/
    color:#333;
}

@media (max-width:768px){
    .chat-ai-index-1 {
        width: 100% !important;
    }
    .typing-bubble{
        width:100% !important;
    }
    .text-hero{
        height:auto;
        padding:20px;
    }
    .hero-aibox{
        margin-top: 15px;
        max-width:90%
    }
    .hero-userbubble{
        position: static;
        margin-bottom: 10px;
    }
    .hero-aiheader img{
        width:40px;
    }
}
.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-img {
    width: 100%;
    height: 180px; /* یا هر عدد دلخواه */
    object-fit: cover;
}

.news-card a.btn {
    margin-top: auto; /* دکمه همیشه پایین کارت */
}

.bottom-right {
    position: absolute;
    bottom: 60px;
    right: 10px;
    z-index: 2;
}

.ticker-container {
    /*position: fixed;*/
    bottom: 0;
    /*width: 100%;*/
    display: flex;
    background: rgb(248, 249, 251);
    color: #000000;
    overflow: hidden;
    border-top: 3px solid rgb(0, 0, 0);
    /*border-left:unset;*/
    direction: rtl;
    z-index: 9999;
}

.ticker-label {
    background: linear-gradient(180deg,rgb(8, 8, 8),rgb(55, 55, 55));
    color:#FFFFFF;
    padding: 10px;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-wrapper {
    overflow: hidden;
    flex: 1;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100% !important;
    animation: scroll 60s linear infinite;
}

.ticker span {
    margin: 0 40px;
}

/* حرکت از راست به چپ واقعی */
@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.ticker-container:hover .ticker {
    animation-play-state: paused;
}

.chat-ai-index{

    width:100%;


    padding:10px;

    overflow:hidden;

    box-shadow:
            0 20px 60px rgba(0,0,0,.08);

    border:3px solid rgb(194, 143, 60);

}

.chat-ai-index-header{

    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgb(194, 143, 60);
    background: linear-gradient(90deg, rgba(21, 72, 67, 0.85) 0%, rgba(18, 61, 58, 1) 100%);

}

.chat-ai-index-avatar{

    width:60px;
    height:60px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(135deg, #e4e4e4, rgba(189, 189, 189, 0.69));

    /*color:#fff;*/

    padding:10px;
}

.chat-ai-index-info{

    display:flex;

    flex-direction:column;

}

.chat-ai-index-name{

    font-weight:700;

    color:#FFFFFF;

}


.chat-ai-index-body{

    padding:25px;

    background: linear-gradient(90deg, rgba(21, 72, 67, 0.85) 0%, rgba(18, 61, 58, 1) 100%);

    min-height:220px;

    width:100%;

}

.chat-ai-index-message{

    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;

}

.chat-ai-index-title{
    text-align: right;
    width: fit-content;
    padding: 10px 16px;
    margin-bottom: 10px;

    font-size: 14px;
    color: #fff;

    border-radius: 16px 16px 0 16px;

    background: linear-gradient(
            135deg,
            rgba(21,72,67,.45),
            rgba(18,61,58,.25)
    );

    border: 1px solid rgba(255,255,255,.18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
            0 8px 32px rgba(0,0,0,.25),
            inset 0 1px 1px rgba(255,255,255,.2);
}

.typing-bubble{

    display: inline-block;
    margin-right: auto;
    background: #ffffff;
    text-align: right;
    color: #000000;
    padding: 18px 20px;
    border-radius: 20px 20px 20px 6px;
    line-height: 2;
    min-height: 90px;
    position: relative;
    font-size: 15px;
    width: 100%;


}

.typing-bubble::after{

    content:"";

    position:absolute;

    left:-8px;
    bottom:8px;

    width:18px;
    height:18px;

    background: #ffffff;

    clip-path:polygon(100% 0,0 100%,100% 100%);

}

.cursor{

    display:inline-block;

    animation:blink .8s infinite;

    margin-right:2px;

    font-weight:bold;

}

@keyframes blink{

    50%{

        opacity:0;

    }

}

.chat-ai-index-footer{

    display:flex;

    justify-content:space-between;

    gap:10px;

    padding:18px;

    /*border-top:1px solid #eee;*/

    border-radius: 0 0 16px 16px ;

    background: linear-gradient(90deg, rgba(21, 72, 67, 0.85) 0%, rgba(18, 61, 58, 1) 100%);

}

.chat-ai-index-input{

    flex:1;

    border:none;

    width: 100%;

    background:#f2f2f2;

    border-radius:40px;

    padding:14px 18px;

    outline:none;

}

.chat-ai-index-btn{

    width:50px;

    border:none;

    border-radius:50%;

    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgb(0, 0, 0) 100%);

    color:#fff;

    font-size:18px;

}
html:lang(en){
    .chat-ai-index-title{
        text-align:left !important;
        border-radius: 16px 16px 16px 0 !important;
    }
    .typing-bubble{
        text-align:left;
        margin-right:unset;
        margin-left:auto;
    }
    .typing-bubble::after{
        right:-8px;
        left:unset;
        clip-path:polygon(0 0,0 100%,100% 100%);
    }
}