﻿/* Global Styles for the Callouts */
.bs-callout {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

    .bs-callout h4 {
        margin: 0 !important;
        font-weight: bold;
    }

    .bs-callout p {
        margin: 0 !important;
        padding: 0;
        color: #495057;
        font-size: 1.1rem;
    }

        .bs-callout p:last-child {
            margin-bottom: 0;
        }

    .bs-callout code {
        border-radius: 3px;
    }

    .bs-callout + .bs-callout {
        margin-top: -5px;
    }

    .bs-callout .callout-icon {
        font-size: 28px;
        margin-right: 10px;
        color: inherit;
    }

    .bs-callout .callout-container {
        display: flex;
        align-items: center;
    }

/* Individual Callout Color Styles */
.bs-callout-default {
    border-left: 5px solid #777;
    background-color: #f7f7f7;
}

    .bs-callout-default h4 {
        color: #777;
    }

.bs-callout-primary {
    border-left: 5px solid #428bca;
    background-color: #eaf4fc;
}

    .bs-callout-primary h4 {
        color: #428bca;
    }

.bs-callout-success {
    border-left: 5px solid #5cb85c;
    background-color: #d4edda;
}

    .bs-callout-success h4 {
        color: #5cb85c;
    }

.bs-callout-danger {
    border-left: 5px solid #d9534f;
    background-color: #f8d7da;
}

    .bs-callout-danger h4 {
        color: #d9534f;
    }

.bs-callout-warning {
    border-left: 5px solid #f0ad4e;
    background-color: #fff3cd;
}

    .bs-callout-warning h4 {
        color: #f0ad4e;
    }

.bs-callout-info {
    border-left: 5px solid #5bc0de;
    background-color: #d1ecf1;
}

    .bs-callout-info h4 {
        color: #5bc0de;
    }

/* Adding Icon to Callouts */
.bs-callout .callout-container i {
    font-size: 24px;
    margin-right: 15px;
    color: inherit;
}

.bs-callout .callout-container i {
    font-size: 28px;
    color: inherit;
}

/* Tip callout */
.tip {
    border-left: 4px solid #198754;
    background: #f8fff8;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    position: relative;
}

    .tip::before {
        content: "Tip:";
        font-weight: bold;
        color: #198754;
        margin-right: 6px;
    }

/* Lesson callout */
.lesson {
    border-left: 4px solid #ffc107;
    background: #fffdf5;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    position: relative;
}

    .lesson::before {
        content: "Lesson:";
        font-weight: bold;
        color: #ffc107;
        margin-right: 6px;
    }

/* Fact callout */
.fact {
    border-left: 4px solid #0dcaf0;
    background: #f8fcff;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    position: relative;
}

    .fact::before {
        content: "Fact:";
        font-weight: bold;
        color: #0dcaf0;
        margin-right: 6px;
    }

/* Insight callout */
.insight {
    border-left: 4px solid #6f42c1;
    background: #f9f6ff;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    position: relative;
}

    .insight::before {
        content: "Insight:";
        font-weight: bold;
        color: #6f42c1;
        margin-right: 6px;
    }

/* Caution callout */
.caution {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    position: relative;
}

    .caution::before {
        content: "Caution:";
        font-weight: bold;
        color: #dc3545;
        margin-right: 6px;
    }

.checklist {
    list-style: none;
    padding: 0;
}
    .checklist li {
        position: relative;
        padding-left: 2.5rem; /* enough room for icon but tighter */
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        background: #e7f1ff;
        border-left: 5px solid #0d6efd;
        margin: 0.5rem 0;
        font-weight: 500;
        font-size: 1rem;
        line-height: 1.3;
        text-align: left;
    }

        .checklist li i {
            position: absolute;
            left: 0.6rem; /* ✅ closer to left edge of li */
            top: 0.6rem; /* ✅ vertically aligned with text */
            font-size: 1.25rem;
            color: #0d6efd;
            line-height: 1;
            flex-shrink: 0;
        }


/* Standardized callout classes */
.tip {
    border-left: 4px solid #198754;
    background: #f8fff8;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

    .tip i {
        color: #198754;
        margin-right: 6px;
    }

.lesson {
    border-left: 4px solid #ffc107;
    background: #fffdf5;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

    .lesson i {
        color: #ffc107;
        margin-right: 6px;
    }

.fact {
    border-left: 4px solid #0dcaf0;
    background: #f8fcff;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

    .fact i {
        color: #0dcaf0;
        margin-right: 6px;
    }

.insight {
    border-left: 4px solid #6f42c1;
    background: #f9f6ff;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

    .insight i {
        color: #6f42c1;
        margin-right: 6px;
    }

.caution {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
}

    .caution i {
        color: #dc3545;
        margin-right: 6px;
    }


.example {
    background: #f5f0fa; /* light purple background */
    border-left: 4px solid #a855f7; /* purple border */
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    border-radius: 6px;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    width: 100%;
    line-height: 1.4;
    color: #212529;
}

    .example::before {
        content: "Example:";
        color: #a855f7; /* purple text for the label */
        background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/icons/clipboard-data.svg');
        filter: invert(39%) sepia(68%) saturate(3320%) hue-rotate(260deg) brightness(94%) contrast(90%);
        flex-shrink: 0;
        display: inline-block;
        padding-left: 1.5rem;
        background-size: 1rem;
        background-repeat: no-repeat;
        background-position: left center;
        font-weight: bold;
        margin-right: 0.5rem;
    }

    .example i {
        color: #a855f7;
        margin-right: 6px;
    }



/* Final Callout CSS with Flex and Proper Wrapping */
.fact, .tip, .caution, .lesson, .insight {
    display: flex;
    align-items: flex-start;
    border-radius: 6px;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    width: 100%;
    line-height: 1.4;
    color: #212529;
    background: #f8f9fa;
}

    .fact::before, .tip::before, .caution::before, .lesson::before, .insight::before {
        flex-shrink: 0;
        display: inline-block;
        padding-left: 1.5rem;
        background-size: 1rem;
        background-repeat: no-repeat;
        background-position: left center;
        font-weight: bold;
        margin-right: 0.5rem;
    }

.fact {
    background: #e7f5fb;
}

    .fact::before {
        content: "Fact:";
        color: #0dcaf0;
        background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/icons/info-circle.svg');
        filter: invert(54%) sepia(83%) saturate(2094%) hue-rotate(176deg) brightness(92%) contrast(91%);
    }

.tip {
    background: #e8f9f0;
}

    .tip::before {
        content: "Tip:";
        color: #198754;
        background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/icons/lightbulb.svg');
        filter: invert(48%) sepia(78%) saturate(441%) hue-rotate(85deg) brightness(93%) contrast(90%);
    }

.caution {
    background: #fdecec;
}

    .caution::before {
        content: "Caution:";
        color: #dc3545;
        background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/icons/exclamation-triangle.svg');
        filter: invert(39%) sepia(78%) saturate(658%) hue-rotate(335deg) brightness(90%) contrast(90%);
    }

.lesson {
    background: #e8f0fb;
}

    .lesson::before {
        content: "Lesson:";
        color: #0d6efd;
        background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/icons/mortarboard.svg');
        filter: invert(37%) sepia(98%) saturate(2260%) hue-rotate(212deg) brightness(96%) contrast(90%);
    }

.insight {
    background: #e7f9f8;
}

    .insight::before {
        content: "Insight:";
        color: #0aa2a8;
        background-image: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/icons/eye.svg');
        filter: invert(41%) sepia(35%) saturate(442%) hue-rotate(153deg) brightness(93%) contrast(90%);
    }
