/* ============================================================
   LTrack — Courses section redesign (ltk-brand v2.3.0)
   Target look: user mock IMG-20261029-WA0052
   Palette: navy #132A52 / orange #FF8A1F / cream pill #FDEEDC
   Revert: deactivate ltk-brand plugin
   ============================================================ */

/* --- Section background (soft light gray) --- */
.elementor-element-lt-courses-section {
    background: #F7F8FB !important;
}

/* --- Hide the old Elementor heading (replaced by injected header) --- */
#lt-popular-courses-inner .elementor-element-lt-courses-heading {
    display: none !important;
}

/* --- Typography: Cairo (already loaded site-wide by Elementor — zero extra weight).
       Theme h2/h3 element rules use Montserrat (Latin-only) so Arabic glyphs fall back
       to a random browser font; class selectors here override those cleanly. --- */
.ltk-courses-head,
.ltk-courses-head .ltk-courses-pill,
.ltk-courses-head .ltk-courses-title,
.ltk-courses-head .ltk-courses-sub,
.lt-courses-track .lt-course-card .lt-card-title,
.lt-courses-track .lt-course-card .lt-card-meta span,
.lt-courses-track .lt-course-card .lt-card-meta2 span,
.lt-courses-track .lt-course-card .lt-card-btn,
.lt-courses-track .lt-course-card .lt-card-price del,
.lt-courses-track .lt-course-card .lt-card-price ins,
.lt-courses-track .lt-course-card .ltk-feat-badge {
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

/* --- Injected section header --- */
.ltk-courses-head {
    text-align: center;
    margin: 0 auto 38px;
    max-width: 680px;
}
.ltk-courses-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #FDEEDC;
    color: #EE8413;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1;
}
.ltk-courses-pill svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}
.ltk-courses-title {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    color: #132A52;
    margin: 16px 0 10px;
    line-height: 1.4;
}
.ltk-courses-sub {
    font-size: 15.5px;
    color: #7C8698;
    margin: 0;
    line-height: 1.9;
}

/* --- Card shell --- */
.lt-courses-track .lt-course-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 43, 92, .08);
    border: 1px solid #EEF1F6;
    transition: transform .25s ease, box-shadow .25s ease;
}
.lt-courses-track .lt-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 43, 92, .14);
}

/* --- Featured (first) card: orange border + badge --- */
.lt-courses-track .lt-course-card:first-child {
    border: 2px solid #FF8A1F;
}
.ltk-feat-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #FF9D45, #F97316);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, .35);
    letter-spacing: .2px;
    line-height: 1;
}

/* --- Image --- */
.lt-card-thumb-link {
    display: block;
}
.lt-course-card img {
    width: 100% !important;
    aspect-ratio: 16 / 10;
    object-fit: cover !important;
}

/* --- Body --- */
.lt-card-body {
    padding: 16px 18px 18px !important;
    text-align: start !important;
}
.lt-card-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #132A52 !important;
    line-height: 1.65 !important;
    margin: 0 0 10px !important;
    text-align: start;
}
.lt-card-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* --- Meta rows (orange icons, gray text) --- */
.lt-card-meta span,
.lt-card-meta2 span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7C8698 !important;
    font-size: 12.5px !important;
    font-weight: 700;
    line-height: 1;
}
.lt-card-meta svg,
.lt-card-meta2 svg {
    stroke: #F08A1D !important;
    flex: 0 0 auto;
}
.lt-card-meta2 {
    margin-top: 8px;
}

/* --- Footer: divider + navy pill button + price --- */
.lt-card-footer {
    border-top: 1px solid #EEF1F6 !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lt-card-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #132A52 !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 20px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: background .2s ease;
}
.lt-card-btn:hover {
    background: #0F2B5C !important;
    color: #fff !important;
}
.lt-card-btn::after {
    content: "";
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lt-card-price {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.lt-card-price del {
    color: #9AA3B2 !important;
    font-size: 12px !important;
    font-weight: 600;
    opacity: 1 !important;
}
.lt-card-price ins {
    text-decoration: none !important;
    color: #F08A1F !important;
    font-weight: 800 !important;
    font-size: 15px !important;
}

/* --- Carousel arrows: keep subtle --- */
.lt-carousel-arrow {
    background: #fff !important;
    border: 1px solid #EEF1F6 !important;
    color: #132A52 !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 12px rgba(15, 43, 92, .10);
}

/* --- Mobile --- */
@media (max-width: 767px) {
    .ltk-courses-head {
        margin-bottom: 26px;
    }
    .ltk-courses-title {
        font-size: 24px;
    }
    .ltk-courses-sub {
        font-size: 14px;
    }
}
