/* ======================================================
   CUSTOM HOME PAGE STYLES – مهارت‌نت
   ====================================================== */

/* ---------- TOP NAV ---------- */
#topnav {
    background: #ffffff !important;
}

/* ---------- HEADER BADGE ---------- */
.badge-glow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 1.2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ---------- PORTAL GRID ---------- */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.portal-card-link {
    text-decoration: none !important;
    display: block;
}

/* ---------- PORTAL CARDS (glass) ---------- */
.portal-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 25px 15px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.portal-card:hover {
    transform: translateY(-12px) scale(1.03);
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff9505;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 149, 5, 0.2);
}

.portal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: #fff;
    transition: transform 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.portal-card:hover .portal-icon {
    transform: scale(1.1) rotate(4deg);
}

.portal-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.portal-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* ---------- CTA GLOWING BUTTON ---------- */
.btn-cta-glow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: #ff9505;
    border: none;
    border-radius: 60px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    letter-spacing: 0.5px;
}

.btn-cta-glow:hover {
    transform: translateY(-5px) scale(1.04);
    color: #fff;
}

.btn-cta-glow:active {
    transform: scale(0.95);
}

.btn-cta-glow i {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.btn-cta-glow:hover i {
    transform: rotate(-45deg);
}

/* ---------- STAKEHOLDER CARDS ---------- */
.stakeholder-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    background: #ffffff !important;
}

.stakeholder-card:hover {
    transform: translateY(-8px);
    border-color: #ff9505;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

.stakeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 16px;
    transition: all 0.3s ease;
}

.stakeholder-card:hover .stakeholder-icon {
    background: #fff5eb;
    box-shadow: 0 8px 25px rgba(255, 149, 5, 0.15);
}

.stakeholder-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- STEP CARDS (with arrows) ---------- */

.step-card {
    transition: all 0.3s ease !important;
    border-radius: 16px !important;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer;
}

.step-icon-wrapper {
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon-wrapper {
    transform: scale(1.05) rotate(2deg);
}

/* ---------- SKILL CATEGORY CARDS ---------- */
.features.fea-primary:hover .icon2,
.features.fea-primary:hover .para {
    color: rgba(255, 255, 255, 0.5) !important;
}
.features.fea-primary:hover {
    -webkit-box-shadow: 0 10px 25px rgba(60, 72, 88, 0.15);
    box-shadow: 0 10px 25px rgba(60, 72, 88, 0.15);
    background-color: #2f55d4 !important;
    color: #fff !important;
    cursor: pointer;
    transition: 0.3s;
}

/* ---------- STATISTICS COUNTERS ---------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 149, 5, 0.1);
}
.avatar i {
    font-size: 2rem;
}

.stat-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08) !important;
}
.stat-card .stat-icon {
    transition: transform 0.3s ease;
}
.stat-card:hover .stat-icon {
    transform: scale(1.08) rotate(2deg);
}
.stat-card h2 {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* ---------- CARD HOVER EFFECT ---------- */
.card.transition-all:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
}

/* ---------- FAQ ACCORDION ---------- */
.faq-accordion .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 12px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.faq-accordion .accordion-item .accordion-header {
    margin: 0;
}
.faq-accordion .accordion-button {
    background: #ffffff;
    padding: 18px 25px;
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    border: none;
    box-shadow: none !important;
    border-radius: 12px !important;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-align: right;
    line-height: 1.6;
}
.faq-accordion .accordion-button:hover {
    background: #fff8f0;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: #ff9505;
    color: #ffffff;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 4px 15px rgba(255, 149, 5, 0.3);
}
.faq-accordion .accordion-button::after {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    filter: brightness(0) invert(1);
}
.faq-accordion .accordion-collapse {
    display: block !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 25px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid transparent;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.5s ease;
}
.faq-accordion .accordion-collapse.show {
    max-height: 500px;
    opacity: 1;
    padding: 20px 25px 25px;
    border-top-color: rgba(0, 0, 0, 0.04);
}
.faq-accordion .accordion-body {
    padding: 0;
    color: #555;
    line-height: 1.8;
    background: transparent !important;
}
.faq-accordion .accordion-body strong {
    color: #ff9505;
}

/* جلوگیری از جابجایی عکس در FAQ */
.faq-row {
    align-items: flex-start !important;
}
@media (min-width: 768px) {
    .faq-row .order-1 {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

/* ---------- PORTAL CARDS – LIGHT VERSION ---------- */
.portal-card-light {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.portal-card-light:hover {
    background: #ffffff !important;
    border-color: #ff9505 !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08), 0 0 30px rgba(255, 149, 5, 0.08) !important;
    transform: translateY(-8px) scale(1.02);
}

/* ---------- FLOATING SHAPES ANIMATION ---------- */
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
}

.btn-pulse {
    animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(255, 149, 5, 0.4), 0 0 50px rgba(255, 149, 5, 0.15); }
    50% { box-shadow: 0 0 40px rgba(255, 149, 5, 0.6), 0 0 80px rgba(255, 149, 5, 0.25), 0 0 120px rgba(255, 149, 5, 0.08); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .heading { font-size: 2.2rem !important; }
    .heading br { display: none; }
    .para-desc { font-size: 1rem !important; }
    .portal-grid { gap: 15px !important; }
    .faq-accordion .accordion-button { padding: 14px 18px; font-size: 0.95rem; }
    .faq-accordion .accordion-collapse.show { padding: 15px 18px 20px; }
}
@media (max-width: 576px) {
    .heading { font-size: 1.8rem !important; }
    .portal-card-light { padding: 18px 10px !important; min-height: 140px !important; }
    .portal-icon { width: 50px !important; height: 50px !important; font-size: 22px !important; }
    .btn-cta-glow { padding: 14px 25px !important; font-size: 1rem !important; }
    .stakeholder-icon { width: 60px; height: 60px; padding: 12px; }
    .stat-card { padding: 20px 15px !important; }
    .stat-card .stat-icon { width: 55px !important; height: 55px !important; font-size: 1.5rem !important; }
    .stat-card h2 { font-size: 1.8rem !important; }
}
/* ====== دو ستونه کردن کارت‌ها در موبایل ====== */
@media (max-width: 576px) {
    .manviat{
        margin-bottom: 40px;
    }
    .bg-half-70{
        padding: 30px 0 !important;
    }
    .portal-grid-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .portal-card-light {
        padding: 16px 10px !important;
        min-height: 120px !important;
    }
    .portal-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    .portal-title {
        font-size: 0.85rem !important;
    }
    .portal-text {
        font-size: 0.7rem !important;
    }
}
