/* ============================================
   استایل اختصاصی صفحه اصلی 
   ============================================ */

/* ---------- هدر اختصاصی ---------- */
.custom-hero {
    min-height: 100vh;
    background-image: url('../assets/img/background.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    padding: 100px 20px 20px 20px;
    position: relative;
}

.custom-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ---------- ستون چپ (مکعب) ---------- */
.custom-left {
    float: left;
    width: 30%;
    text-align: center;
    margin-top: 50px;
}

/* ---------- ستون راست (استک کارت) ---------- */
.custom-right {
    float: right;
    width: 65%;
    text-align: center;
    margin-top: 50px;
}

/* Clear fix */
.custom-hero::after {
    content: "";
    display: table;
    clear: both;
}

/* ========== استایل مکعب ========== */
.cube {
    width: 180px;
    height: 180px;
    position: relative;
    transform-style: preserve-3d;
    margin: 0 auto;
    transition: transform 0.1s linear;
}

.face {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgb(24, 45, 97, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(107, 219, 60, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* موقعیت وجوه مکعب - درست */
.front   { transform: translateZ(90px); }
.back    { transform: rotateY(180deg) translateZ(90px); }
.right   { transform: rotateY(90deg) translateZ(90px); }
.left    { transform: rotateY(-90deg) translateZ(90px); }
.top     { transform: rotateX(90deg) translateZ(90px); }
.bottom  { transform: rotateX(-90deg) translateZ(90px); }

/* استایل آیکون و متن */
.face .icon { 
    font-size: 2.5rem; 
    margin-bottom: 8px; 
}
.face h4 { 
    color: white; 
    font-size: 1rem; 
    margin: 0; 
    font-weight: bold;
}
.face .face-hover-text {
    font-size: .8rem;
    color: rgba(255, 255, 255, 0);
    text-align: center;
    margin-top: 8px;
    padding: 0 8px;
    transition: all 0.3s ease;
}

/* هاور روی مکعب */
.face:hover {
	    background: rgba(107, 219, 60, 0.6);
    border-color: #6bdb3c;
}
.face:hover .icon { transform: scale(1.05); }
.face:hover h4 { color: #6bdb3c; }
.face:hover .face-hover-text {
    color: rgba(255, 255, 255, 0.9);
}



/* وجه چت‌بات - به زودی */
.face.bottom {
    opacity: 0.7;
}
.face.bottom:hover {
    opacity: 0.9;
}

/* ========== استایل استک کارت ========== */
.cards-stack {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: flex-end;
    margin-right: 80px;
    margin-top: -20px;
}

.stack-card {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgb(24, 45, 97, 0.6);	
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(107, 219, 60, 0.3);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stack-card-1 { top: 0; right: 0; z-index: 5; }
.stack-card-2 { top: 15px; right: 15px; z-index: 4; }
.stack-card-3 { top: 30px; right: 30px; z-index: 3; }
.stack-card-4 { top: 45px; right: 45px; z-index: 2; }
.stack-card-5 { top: 60px; right: 60px; z-index: 1; }

.stack-card-title {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border-right: 3px solid #6bdb3c;
    padding-right: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.stack-card-content {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: center;
    max-width: 100%;
}

.stack-card-content p {
    margin: 5px 0;
    line-height: 1.4;
}

/* هاور روی کارت - نمایش محتوا */
.stack-card:hover {
    transform: translate(-6px, -6px) scale(1.02);
    z-index: 50;
    background: rgba(107, 219, 60, 0.5);
    
}

.stack-card:hover .stack-card-title	 {
    color: #6bdb3c;
}
.stack-card:hover .stack-card-content {
    opacity: 1;
    visibility: visible;
}
/* ========== باکس شیشه‌ای - نسخه چشمگیر ========== */
.custom-glassbox {
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -40px;
    padding-bottom: 20px;
}

.glass-content {
    background: linear-gradient(135deg, rgb(24, 45, 97, 0.7) 0%, rgb(24, 45, 97) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 2.2rem 3rem;
    max-width: 950px;
    width: 90%;
    margin: 0 auto;
    border: 1px solid rgba(107, 219, 60, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(107, 219, 60, 0.2) inset;
    transition: all 0.4s ease;
}

.glass-content:hover {
    transform: translateY(-5px);
    border-color: #6bdb3c;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(107, 219, 60, 0.3) inset;
}

.glass-sub {
    font-family: 'Vazirmatn', 'Montserrat', 'Tahoma', Vazirmatn;
    font-size: 1.6rem;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.glass-head {
    font-family: 'Vazirmatn', 'Montserrat', 'Tahoma', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    color: #6bdb3c;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
}

/* ========== بخش مزیت‌ها ========== */
.value-props-section {
    background: linear-gradient(155deg, 
        #6bdb3c 0%, 
        #4aad2a 15%, 
        rgb(10, 43, 59) 50%
    );
    position: relative;
    overflow: hidden;
}

/* ========== معرفی پلتفرم ========== */
.platform-intro {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.platform-intro-content {
    background: rgb(24, 45, 97, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    max-width: 850px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(107, 219, 60, 0.4);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.platform-intro-content:hover {
    transform: translateY(-3px);
    border-color: #6bdb3c;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.platform-title {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 1.3rem;
    line-height: 1.7;
    color: #ffd700;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.platform-text {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .platform-intro {
        margin-bottom: 2rem;
    }
    .platform-intro-content {
        padding: 1rem 1.5rem;
        width: 95%;
    }
    .platform-icon {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    .platform-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .platform-intro-content {
        padding: 0.8rem 1.2rem;
    }
    .platform-icon {
        font-size: 1.8rem;
    }
    .platform-text {
        font-size: 0.75rem;
    }
}

/* ========================================
   کارت‌های ارزش - نسخه پایدار و بدون سرریز
   ======================================== */

.value-card {
    background: white;
    border-radius: 24px;
    padding: 25px 20px;
    min-height: 380px;  /* حداقل ارتفاع، نه حداکثر */
    height: 100%;  /* مهم: ارتفاع خودکار */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(107, 219, 60, 0.1);
    display: flex;
    flex-direction: column;
    overflow: visible;  /* مهم: عدم برش محتوا */
}

/* آیکون */
.value-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
    text-align: center;
}

.value-condition {
    font-size: 0.7rem;
    color: #6bdb3c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-align: center;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A2A4A;
    margin-bottom: 12px;
    text-align: center;
}

.value-desc {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 15px;
    text-align: center;
}

/* لینک‌های داخلی کارت */
.value-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    flex: 1;
}

.value-links li {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.value-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.value-links a {
    text-decoration: none;
    color: #334155;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.value-links a:hover {
    color: #6bdb3c;
    transform: translateX(-3px);
}

/* CTA اصلی کارت */
.value-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1A2A4A;
    color: white;
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.value-cta:hover {
    background: #6bdb3c;
    color: #1A2A4A;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) {
    .value-card {
        min-height: auto;
        padding: 20px 15px;
    }
    
    .value-title {
        font-size: 1rem;
    }
    
    .value-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .value-card {
        margin-bottom: 20px;
    }
    
    .value-links li {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
}

/* آیکون‌های رنگی برای هر بخش */
.value-card:nth-child(1) .value-icon { color: #ffd700; }
.value-card:nth-child(2) .value-icon { color: #6bdb3c; }
.value-card:nth-child(3) .value-icon { color: #ff9800; }

/* ============================================
   ریسپانسیو کامل
   ============================================ */

/* دسکتاپ بزرگ (بالای 1200px) */
@media (min-width: 1201px) {
    .custom-left { width: 28%; }
    .custom-right { width: 68%; }
}

/* دسکتاپ (1001px تا 1200px) */
@media (min-width: 1001px) and (max-width: 1200px) {
    .custom-left { width: 32%; }
    .custom-right { width: 64%; }
}

/* تبلت افقی (751px تا 1000px) - دو ستونه کوچک */
@media (min-width: 751px) and (max-width: 1000px) {
    .custom-left { width: 38%; }
    .custom-right { width: 58%; }
    
    .cube, .face { width: 220px !important; height: 220px !important; }
    .front   { transform: translateZ(110px); }
    .back    { transform: rotateY(180deg) translateZ(110px); }
    .right   { transform: rotateY(90deg) translateZ(110px); }
    .left    { transform: rotateY(-90deg) translateZ(110px); }
    .top     { transform: rotateX(90deg) translateZ(110px); }
    .bottom  { transform: rotateX(-90deg) translateZ(110px); }
    .face .icon { font-size: 1.4rem !important; }
    .face h4 { font-size: 0.8rem !important; }
    
    .stack-card { width: 190px !important; height: 190px !important; }
    .stack-card-title { font-size: 0.85rem !important; }
    .stack-card-content { font-size: 0.65rem !important; }
    
    .custom-glassbox { padding-top: 50px; }
    .glass-sub { font-size: 1.1rem; }
    .glass-head { font-size: 1.4rem; }
}

/* تبلت عمودی (600px تا 750px) - یک ستونه */
@media (min-width: 600px) and (max-width: 750px) {
    .custom-left, .custom-right {
        float: none;
        width: 100%;
        margin-top: 70px;
    }
    
    .cube, .face { width: 240px !important; height: 240px !important; margin: 0 auto; }
    .front   { transform: translateZ(120px); }
    .back    { transform: rotateY(180deg) translateZ(120px); }
    .right   { transform: rotateY(90deg) translateZ(120px); }
    .left    { transform: rotateY(-90deg) translateZ(120px); }
    .top     { transform: rotateX(90deg) translateZ(120px); }
    .bottom  { transform: rotateX(-90deg) translateZ(120px); }

    .face .icon { font-size: 1.3rem !important; }
    .face h4 { font-size: 0.75rem !important; }
    
    .cards-stack {
        position: relative;
        min-height: 360px;
        justify-content: flex-end;
    }
    
    .stack-card {
        position: absolute;
        width: 170px !important;
        height: 170px !important;
    }
    
    .stack-card-1 { top: 0; right: 0; }
    .stack-card-2 { top: 15px; right: 15px; }
    .stack-card-3 { top: 30px; right: 30px; }
    .stack-card-4 { top: 45px; right: 45px; }
    .stack-card-5 { top: 60px; right: 60px; }
    
    .stack-card-title { font-size: 0.85rem; }
    .stack-card-content { font-size: 0.65rem; }
   
    .custom-glassbox { padding-top: 40px; }
    .glass-content { padding: 1rem; width: 95%; }
    .glass-sub { font-size: 1rem; }
    .glass-head { font-size: 1.2rem; }
    
    .nav-arrow { width: 38px; height: 38px; }
    .nav-arrow i { font-size: 0.9rem; }
}

/* موبایل بزرگ (481px تا 600px) */
@media (min-width: 481px) and (max-width: 599px) {
    .custom-left, .custom-right {
        float: none;
        width: 100%;
        margin-top: 70px;
    }
    
    .cube, .face { width: 200px !important; height: 200px !important; margin: 0 auto; }
    .front   { transform: translateZ(100px); }
    .back    { transform: rotateY(180deg) translateZ(100px); }
    .right   { transform: rotateY(90deg) translateZ(100px); }
    .left    { transform: rotateY(-90deg) translateZ(100px); }
    .top     { transform: rotateX(90deg) translateZ(100px); }
    .bottom  { transform: rotateX(-90deg) translateZ(100px); }

    .face .icon { font-size: 1.2rem !important; }
    .face h4 { font-size: 0.7rem !important; }
    
    .cards-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: relative;
        min-height: auto;
        position: static;
    }
    
    .stack-card {
        position: relative;
        width: 90% !important;
        max-width: 260px;
        height: auto;
        min-height: 140px;
        margin: 0 auto;
    }
    
    .stack-card-title {
        font-size: 0.9rem;
    }
    
    .stack-card-content {
        opacity: 1;
        visibility: visible;
        font-size: 0.7rem;
    }
    
    .stack-card-1, .stack-card-2, .stack-card-3, .stack-card-4, .stack-card-5 {
        top: auto;
        right: auto;
    }

    
    .custom-glassbox { padding-top: 30px; }
    .glass-sub { font-size: 0.9rem; }
    .glass-head { font-size: 1rem; }
    

}

/* موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
    .custom-left, .custom-right {
        float: none;
        width: 100%;
        margin-top: 70px;
    }
    
    .cube, .face { width: 160px !important; height: 160px !important; margin: 0 auto; }
    .front   { transform: translateZ(80px); }
    .back    { transform: rotateY(180deg) translateZ(80px); }
    .right   { transform: rotateY(90deg) translateZ(80px); }
    .left    { transform: rotateY(-90deg) translateZ(80px); }
    .top     { transform: rotateX(90deg) translateZ(80px); }
    .bottom  { transform: rotateX(-90deg) translateZ(80px); }

    .face .icon { font-size: 1rem !important; }
    .face h4 { font-size: 0.6rem !important; }
    .face .face-hover-text { display: none; }
    
    .cards-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: static;
        min-height: auto;
    }
    
    .stack-card {
        position: static !important;
        width: 90% !important;
        max-width: 260px;
        height: auto;
        min-height: 130px;
    }

    .stack-card-content {
        opacity: 1;
        visibility: visible;
        font-size: 0.7rem;
    }

    .custom-glassbox { padding-top: 20px; }
    .glass-content { padding: 0.8rem; }
    .glass-sub { font-size: 0.8rem; }
    .glass-head { font-size: 0.9rem; }
    
    
    .value-card { height: auto; min-height: 240px; padding: 1rem; }
    .value-title { font-size: 0.9rem; }
    .value-desc { font-size: 0.7rem; }
    .platform-text { font-size: 0.8rem; }
}

/* ---------- تنظیمات عمومی ریسپانسیو ---------- */
@media (max-width: 768px) {
    .platform-intro-content { padding: 1rem; width: 95%; }
    .platform-icon { font-size: 2rem; }
    .platform-text { font-size: 0.85rem; }
}

/* ========================================
   آکاردئون سوالات متداول
   ======================================== */

/* ========================================
   آکاردئون سوالات متداول - نسخه نهایی
   ======================================== */



.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    color: #6bdb3c;
    margin-bottom: 15px;
    margin-top: 45px;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.5px;  /* اختیاری: کمی فشرده‌تر مثل تایتل شیشه‌ای */
}

.faq-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #6bdb3c;
    margin: 15px auto 0;
    border-radius: 4px;
}

.faq-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
    font-size: 1.05rem;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

/* بقیه کدهای آکاردئون به همان شکل باقی می‌ماند */

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    cursor: pointer;
    background: white;
    transition: background 0.2s ease;
    transforms: 5px;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.accordion-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #1A2A4A;
    margin: 0;
    line-height: 1.4;
}

.accordion-arrow {
    color: #6bdb3c;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 24px;
    background: #fafcff;
    border-top: 1px solid transparent;
}

.accordion-item.active .accordion-body {
    max-height: 800px;
    padding: 20px 24px;
    border-top-color: #e2e8f0;
}

.accordion-body p {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 15px;
}

.accordion-body ul {
    margin: 10px 0 10px 20px;
    padding-right: 0;
    list-style: none;
}

.accordion-body li {
    margin-bottom: 8px;
    color: #334155;
    line-height: 1.6;
}

.accordion-body a {
    color: #6bdb3c;
    text-decoration: none;
    font-weight: 500;
}

.accordion-body a:hover {
    text-decoration: underline;
}

/* موبایل */
@media (max-width: 768px) {
    .faq-title {
        font-size: 1.4rem;
    }
    
    .accordion-header {
        padding: 14px 18px;
    }
    
    .accordion-header h3 {
        font-size: 0.85rem;
    }
    
    .accordion-icon {
        font-size: 1.2rem;
        min-width: 30px;
    }
    
    .accordion-item.active .accordion-body {
        padding: 15px 18px;
    }
    
    .accordion-body p, 
    .accordion-body li {
        font-size: 0.85rem;
    }
}

.accordion-body p {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #334155 !important;
    line-height: 1.7 !important;
    margin-bottom: 15px !important;
    font-size: 0.95rem !important;
}

.accordion-item {
    border-radius: 20px;
    overflow: hidden;
}

/* اطمینان از گردی گوشه‌ها در حالت‌های مختلف */
.accordion-item:first-child {
    border-radius: 20px 20px 20px 20px;
}

.accordion-item:last-child {
    border-radius: 20px 20px 20px 20px;
}

.accordion-item.active:first-child {
    border-radius: 20px 20px 20px 20px;
}

.accordion-item.active:last-child {
    border-radius: 20px 20px 20px 20px;
}

/* هدر همیشه گرد باشد */
.accordion-header {
    border-radius: 20px;
}

.accordion-item.active .accordion-header {
    border-radius: 20px 20px 0 0;
}