/*
Theme Name: اتومارکتینگ
Theme URI: https://automarketing.me/
Description: قالبِ سایت‌های آماده‌ی اتومارکتینگ. بر پایه‌ی Astra، سازگار با المنتور.
Author: اتومارکتینگ
Author URI: https://automarketing.me/
Template: astra
Version: 1.0.3
Text Domain: automarketing-child
*/

/* استایل‌های اختصاصی اینجا اضافه می‌شوند */
body.elementor-page .elementor .elementor-widget-text-editor,
body.elementor-page .elementor .elementor-widget-text-editor p,
body.elementor-page .elementor .elementor-widget-heading .elementor-heading-title,
body.elementor-page .elementor .elementor-widget-icon-list .elementor-icon-list-text,
body.elementor-page .elementor .elementor-widget-button .elementor-button-text {
    line-height: inherit;
}


@media (max-width: 1024px) {
    .elementor .e-95955b7-4526456,
    .elementor .e-9ff0867-98d9d97 {
        position: static;
        inset-block-start: auto;
        inset-inline-end: auto;
    }
}


/* Track 03 - Batch 1: Search & Footer Presentation */
.search-results .entry-meta,
.search-results .ast-blog-meta-container {
    display: none !important;
}

.amw-footer-badge-box a[href="#"],
.amw-footer-social-link[href="#"] {
    pointer-events: none !important;
    cursor: default !important;
}
/* ==========================================================================
   Single Course / Product Page Styling (Track 03 - Demo Completion)
   ========================================================================== */

/* Hide Astra blog meta and post navigation on single course pages */
.single-fluent-products .entry-header.ast-no-title,
.single-fluent-products .entry-header,
.single-fluent-products .entry-meta,
.single-fluent-products .post-navigation,
.single-fluent-products .ast-single-post-order {
    display: none !important;
}

/* Hide redundant single-variant selector and quantity stepper for digital courses */
.single-fluent-products .fct-product-variants,
.single-fluent-products .fct-product-quantity-container {
    display: none !important;
}

/* Single product hero polish */
.single-fluent-products .fct-single-product-page-row {
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.single-fluent-products .fct-product-title h1 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #0d2238 !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
}

.single-fluent-products .fct-product-excerpt p {
    font-size: 1.05rem !important;
    color: #475569 !important;
    line-height: 1.8 !important;
    margin-bottom: 24px !important;
}

.single-fluent-products .fct-product-prices {
    margin-bottom: 24px !important;
}

.single-fluent-products .fct-product-item-price {
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    color: #0d2238 !important;
}

.single-fluent-products .fct-product-buttons-wrap {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.single-fluent-products .fluent-cart-direct-checkout-button {
    background: #0d2238 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(13, 34, 56, 0.2) !important;
    transition: all 0.2s ease !important;
}

.single-fluent-products .fluent-cart-direct-checkout-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 34, 56, 0.28) !important;
}

.single-fluent-products .fluent-cart-add-to-cart-button {
    background: #f8fafc !important;
    color: #0d2238 !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.single-fluent-products .fluent-cart-add-to-cart-button:hover {
    background: #edf2f7 !important;
    border-color: #94a3b8 !important;
}

/* Course Content Sections */
.amw-course-details-wrap {
    margin-top: 48px;
    border-top: 1px solid #e2e8f0;
    padding-top: 48px;
}

.amw-course-grid-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .amw-course-grid-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .amw-course-grid-kpis {
        grid-template-columns: 1fr;
    }
}

.amw-course-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-align: right;
    transition: transform 0.2s, box-shadow 0.2s;
}

.amw-course-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.amw-course-kpi-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.amw-course-kpi-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 4px;
}

.amw-course-kpi-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0d2238;
}

.amw-course-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0d2238;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amw-course-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #0d2238;
    border-radius: 4px;
}

.amw-course-curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 48px;
}

.amw-course-module {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.amw-course-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.amw-course-module-desc {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.amw-course-instructor-card {
    display: flex;
    gap: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    align-items: center;
    margin-bottom: 48px;
}

@media (max-width: 640px) {
    .amw-course-instructor-card {
        flex-direction: column;
        text-align: center;
    }
}

.amw-course-instructor-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.amw-course-instructor-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0d2238;
    margin: 0 0 6px 0;
}

.amw-course-instructor-title {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 10px;
}

.amw-course-instructor-bio {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.8;
    margin: 0;
}

/* Hide default page title on shop to favor branded hero */
.page-id-15 .entry-header {
    display: none !important;
}

/* Shop card visual improvements */
.fct-product-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}

.fct-product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 28px rgba(13, 34, 56, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.fct-product-view-button {
    background: #0d2238 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.fct-product-view-button:hover {
    background: #1e3a5f !important;
}
