/* ================================= */
/*       IMPORT FONTS & ICONS        */
/* ================================= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* ================================= */
/*          GLOBAL STYLES           */
/* ================================= */
body {
    font-family: 'Lato', sans-serif;
    color: #333;
}

/* Apply Quicksand to all headers for style distinction */
h1, h2, h3, h4, h5, h6,
.lx-lesson-header,
.lx-module-header {
    font-family: 'Quicksand', sans-serif;
}

/* =============================== */
/*         COURSE STYLES           */
/* =============================== */

/* Course Home Banner */
.lx-course-banner {
    width: 100%;
    height: 220px;
    background: linear-gradient(to right, #00528C, #B3C8D9);
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 6px solid #FFD700;
    text-transform: uppercase;
}

/* Module Headers */
.lx-module-header {
    width: 100%;
    background: #00528C;
    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 20px;
    text-align: left;
    border-left: 8px solid #FFD700;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* Lesson Page Header (adjusted for left alignment) */
.lx-lesson-header {
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px;
    margin: 0 auto 20px auto;
    background: linear-gradient(to right, #00528C, #B3C8D9);
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    border-left: 6px solid #FFD700;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* =============================== */
/*           BUTTONS               */
/* =============================== */

.lx-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-size: 16px;
    color: white;
    font-weight: bold;
    background-color: #00528C;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.lx-button:hover {
    background-color: #003366;
}

.lx-button i {
    margin-right: 8px;
}

/* =============================== */
/*         LINK STYLING            */
/* =============================== */

.lx-link {
    color: #B22222;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lx-link:hover {
    color: #8B0000;
}

/* =============================== */
/*        INFO BOXES                */
/* =============================== */

.lx-card {
    border: 1px solid #00528C;
    background-color: #f0f8ff;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.lx-highlight-box {
    background: #FFD700;
    color: #222;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border-left: 6px solid #B22222;
    margin: 10px 0;
}

/* =============================== */
/*        LIST STYLING             */
/* =============================== */

.lx-ul {
    list-style-type: none;
    padding-left: 20px;
}

.lx-ul li {
    background-color: #f9e6e6;
    padding: 10px 10px 10px 40px;
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
}

.lx-ul li::before {
    content: "✔";
    color: #FFD700;
    font-weight: bold;
    position: absolute;
    left: 10px;
}

.lx-ol {
    counter-reset: list-counter;
    padding-left: 20px;
}

.lx-ol li {
    background-color: #e6f0fa;
    padding: 10px 10px 10px 40px;
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
}

.lx-ol li::before {
    counter-increment: list-counter;
    content: counter(list-counter) ".";
    font-weight: bold;
    position: absolute;
    left: 10px;
}

/* =============================== */
/*        TOOLTIP STYLING          */
/* =============================== */

.lx-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    background-color: #ffffc5;
    padding: 4px 8px;
    border-radius: 3px;
}

.lx-tooltip .lx-tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #f5f5f5;
    color: #000;
    text-align: left;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 12px;
}

.lx-tooltip:hover .lx-tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* =============================== */
/*        AUDIO PLAYER             */
/* =============================== */

.lx-audio-container {
    max-width: 500px;
    padding: 20px;
    background: #f0f8ff !important;
    border: 2px solid #00528C !important;
    border-radius: 8px;
    text-align: left;
    margin: 20px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.lx-audio-container audio {
    width: 100% !important;
    max-width: 460px;
    margin-top: 10px;
}

.lx-audio-container audio::-webkit-media-controls-panel {
    background: #00528C !important;
    color: white !important;
}

.lx-audio-container p {
    font-size: 16px;
    color: #00528C;
    font-weight: bold;
    margin-bottom: 10px;
}

/* =============================== */
/*      STORYLINE OBJECTS          */
/* =============================== */

.lx-storyline-container {
    max-width: 800px;
    padding: 20px;
    background: #f0f8ff;
    border: 2px solid #00528C;
    border-radius: 8px;
    text-align: center;
    margin: 20px auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.lx-storyline-container p {
    font-size: 16px;
    color: #00528C;
    font-weight: bold;
    margin-bottom: 10px;
}

.lx-storyline-embed {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* =============================== */
/*        OTHER UTILITIES          */
/* =============================== */

.lx-hr-center-gradient {
    border: 0;
    height: 4px;
    background: linear-gradient(to right, rgba(0, 82, 140, 0), #00528C, rgba(0, 82, 140, 0));
    margin: 20px 0;
}

/* =============================== */
/*    ADDITIONAL TITLE SUPPRESSORS */
/* =============================== */

/* Home Page Titles - course-title variations */
.course-title,
h1.course-title,
h2.course-title,
h3.course-title,
div.course-title,
.course-title h1,
.course-title h2,
.course-title h3 {
    display: none !important;
}

body h1.course-title {
    display: none !important;
}

/* Quiz Titles - additional selectors beyond your existing #quiz_title */
.quiz-header h1,
.quiz_title,
h1.quiz-title,
.quiz-submission h1,
.quiz-engine h1,
.quiz-questions-header h1,
.take_quiz .quiz_title,
.quiz-submission .quiz_title,
#quiz_show h1,
.quiz_header h1 {
    display: none !important;
}

/* Quiz Instructions Header - target the h2 inside .quiz-header but NOT lesson headers */
.quiz-header h2:not(.lx-lesson-header) {
    display: none !important;
}

/* Assignment Titles (in case you need these too) */
#assignment_show h1,
.assignment-title,
.assignment_title,
#assignment_title {
    display: none !important;
}

/* Discussion Titles (additional selectors) */
.discussion_container h1,
.discussion-section h1,
#discussion_topic .discussion-title {
    display: none !important;
}

/* Hide Canvas default lesson title */
#content .page-title {
    display: none !important;
}

/* Hide additional Canvas default titles since custom banners are used */
#quiz_title {
    display: none !important;
}

h1.discussion-title {
    display: none !important;
}

table {
    max-width: 100% !important;
    width: auto !important;
    overflow-x: auto !important;
    display: block;
}

img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

.lx-float-left {
    float: left;
    max-width: 40%;
    margin: 10px 20px 10px 0;
    border-radius: 5px;
}

.lx-float-right {
    float: right;
    max-width: 40%;
    margin: 10px 0 10px 20px;
    border-radius: 5px;
}

/* =============================== */
/*    OVERRIDES FOR CANVAS HEADINGS */
/* =============================== */
#content h1,
#content h2,
#content h3 {
    text-align: left !important;
}