/* Tutor Course FAQ — Modules Frontend Styles
   Why Choose / Key Features (icon_grid), Learning Path (steps),
   Projects & Labs (card_grid). High-specificity to override theme styles. */

.tcf-module-section {
    margin: 40px 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tcf-module-section .tcf-module-heading {
    font-size: 1.4em !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #e0e0e0 !important;
    color: #1d2327 !important;
}

/* ─── Icon grid (Why Choose / Key Features) ─── */

.tcf-module-section .tcf-icon-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 16px !important;
}

.tcf-module-section .tcf-icon-card {
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.tcf-module-section .tcf-icon-card-icon {
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
    color: #2271b1 !important;
    margin-bottom: 12px !important;
    display: block !important;
}

.tcf-module-section .tcf-icon-card-heading {
    font-size: 1.05em !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
    margin: 0 0 6px !important;
}

.tcf-module-section .tcf-icon-card-desc {
    font-size: 0.92em !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ─── Steps (Learning Path) — serpentine grid with bordered cards ─── */

.tcf-module-section .tcf-steps-wrap {
    position: relative !important;
}

.tcf-module-section .tcf-steps-svg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.tcf-module-section .tcf-step-connector-line {
    stroke: #c8c8c8;
    stroke-width: 2;
}

.tcf-module-section .tcf-steps {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 24px 20px !important;
    position: relative !important;
    z-index: 1 !important;
}

.tcf-module-section .tcf-step {
    grid-row: var(--tcf-row-m) !important;
    grid-column: var(--tcf-col-m) !important;
    box-sizing: border-box !important;
}

@media (min-width: 601px) {
    .tcf-module-section .tcf-steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .tcf-module-section .tcf-step {
        grid-row: var(--tcf-row-t) !important;
        grid-column: var(--tcf-col-t) !important;
    }
}

@media (min-width: 901px) {
    .tcf-module-section .tcf-steps {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .tcf-module-section .tcf-step {
        grid-row: var(--tcf-row-d) !important;
        grid-column: var(--tcf-col-d) !important;
    }
}

.tcf-module-section .tcf-step-card {
    border: 1px solid #d6d6d6 !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 20px 16px 16px !important;
    height: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    transition: box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.tcf-module-section .tcf-step-card:hover {
    border-color: #b8b8b8 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.tcf-module-section .tcf-step-marker {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #2271b1 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
}

.tcf-module-section .tcf-step-number {
    font-size: 0.95em !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.tcf-module-section .tcf-step-body {
    width: 100% !important;
}

.tcf-module-section .tcf-step-title {
    font-size: 0.98em !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
    margin: 0 0 4px !important;
}

.tcf-module-section .tcf-step-desc {
    font-size: 0.85em !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* ─── Key Features checklist (two-column, single icon via loop) ─── */

.tcf-keyfeatures-section .tcf-keyfeatures-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 32px !important;
    row-gap: 18px !important;
}

.tcf-keyfeatures-section .tcf-keyfeature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.tcf-keyfeatures-section .tcf-keyfeature-icon {
    flex: 0 0 auto !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    color: #2271b1 !important;
    margin-top: 2px !important;
}

.tcf-keyfeatures-section .tcf-keyfeature-text {
    font-size: 0.98em !important;
    color: #1d2327 !important;
    line-height: 1.5 !important;
}

@media (max-width: 600px) {
    .tcf-keyfeatures-section .tcf-keyfeatures-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Simple card grid (Projects & Labs) ─── */

.tcf-module-section .tcf-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 12px !important;
}

.tcf-module-section .tcf-simple-card {
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: #fff !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
}

.tcf-module-section .tcf-simple-card-heading {
    font-size: 0.98em !important;
    font-weight: 600 !important;
    color: #1d2327 !important;
    margin: 0 0 4px !important;
}

.tcf-module-section .tcf-simple-card-desc {
    font-size: 0.88em !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

@media (max-width: 600px) {
    .tcf-module-section .tcf-module-heading {
        font-size: 1.2em !important;
    }
}
