body {
    font-family:'Inter', sans-serif;
    color:black;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: all 0.3s ease-in-out;
    background-color: rgb(247, 247, 247);
}
@font-face {
    font-family: 'Inter';
    src: url(fonts/Inter-VariableFont_opsz\,wght.ttf) format('truetype');
}

/* Header and Footer Styles */
header {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
    padding: 0px;
    padding-left: 30px;
    width: 100%;
    display: flex;
    z-index: 1;
}
.headerText {
    font-size: 0.8rem;
    color: black;
    margin: 0px;
    padding: 0px;
}
header img {
    height: 2rem;
    margin-right: 15px;
    margin-left: 15px;
}
footer {
    background-color: white;
    color: black;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: auto;
    padding: 10px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-top: solid 1px black;
    font-size: 0.9rem;
}
footer a {
    text-decoration: none;
}
footer a:hover {
    color: rgb(186, 20, 20);
    transition: all 0.3s ease-in-out;
}

/* Dropdown Menu Style */
.dropButton {
    background-color: white;
    color: black;
    padding: 10px;
    font-size: 24px;
    border: none;
}
.dropdownMenu {
    position: relative;
    display: inline-block;
}
.dropdownMenu:hover .dropButton {
    color: rgb(213, 0, 0);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.dropdownContent {
    display: none;
    position: absolute;
    top: 65%;
    background-color: gray;
    border-radius: 5px;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
}
.dropdownContent a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdownContent a:hover {
    background-color: rgb(213, 0, 0);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.dropdownMenu:hover .dropdownContent {
    display: block;
}

/* Index.html Main Content Style */
.contentMenuContainer {
    padding: 20px;
    overflow-y: auto;
}
.contentMenuHeader {
    font-size: 14px;
    color: black;
    margin-bottom: 20px;
    padding: 10px;
    max-width: 600px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.contentShelf1 {
    display:grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;

}
.contentShelf1 a {
    text-decoration: none;
    color: inherit;
}
.contentShelf2 {
    gap: 20px;
    margin-top: 20px;
    margin-left: 30px;
    line-height: 0.8rem;
}
.contentShelf2 .shelfcontainer {
    display:flex;
    align-items: center;
}
.contentShelf2 .icon {
    margin-right: 1rem;
    font-size: 1.5rem; 
}
.contentCard {
    background-color: white;
    text-align: left;
    line-height: 0.5rem;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 10px;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
    display: flex;
    align-items: center; 
}
.contentCard p {
    font-size: 0.90rem;
    color: black;
}

.contentCard:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
    background-color: rgb(225, 225, 225);
    transition: all 0.3s ease-in-out;
}
.contentCard .icon {
    margin-right: 1rem; 
}
.contentCard .icon i {
    font-size: 1.5rem; 
}

/* Departments.html Main Content Style */
.departmentShelf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 10px 5px;
    margin-bottom: 65px;
}

.departmentShelf a {
    text-decoration: none;
    color: inherit;
}
.departmentCard {
    background-color: #fff;
    text-align: center;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    padding: 12px 8px;
    transition: box-shadow 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 0;
}
.departmentCard:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    background-color: #f2f2f2;
    transition: box-shadow 0.2s, background 0.2s;
}
.dCardText {
    margin-top: 2px;
    padding: 0;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.2;
}
.dCardTagContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
    gap: 4px;
    flex-wrap: wrap;
}
.dCardTags {
    background-color: #d50000;
    font-size: 0.68rem;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 1px;
    margin-right: 2px;
    margin-bottom: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.dCardTags:hover {
    background-color: #b00000;
    color: #fff;
    transition: background 0.2s, color 0.2s;
}

/* LearnTracks.html Main Content Style */
.learnShelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    padding: 10px;
    margin-bottom: 65px;
}
.learnShelf:last-of-type {
    margin-bottom: 120px;
}
.learnCategory {
    background-color: rgba(213, 0, 0,0.02);
    padding: 10px;
    width: fit-content;
    border-radius: 10px;
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 10px;
}
.learnCard {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    padding: 12px;
    transition: box-shadow 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.learnCard:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    background-color: #f2f2f2;
}

.learnCardRow1, .learnCardRow2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.lCardText {
    font-size: 0.85rem;
    color: #555;
    margin: 2px;
}

.learnCardRow2 .lCardText p :last-of-type {
    margin-right: 4px;
}
/* above ruling is for spacing between the enrollment count & and the start course button so that the button is pushed below on desktop screens.*/

.lCardTags {
    background-color: #d50000;
    font-size: 0.68rem;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    margin: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.learnProgressBar {
    background-color: #e0e0e0;
    border-radius: 3px;
    height: 6px;
    margin: 4px 0;
    width: 100%;
}

.lCardButton button {
    background-color: #d50000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lCardButton button:hover {
    background-color: #b00000;
}

/* AI Chat Page Styles */
.aiContainer {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.chatBoxContainer {
    grid-column: 2;
    margin: 0;
    padding: 0;
}

.contextContainer {
    grid-column: 1;
    height: 500px;
    margin: 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.chatBox {
    height: 500px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 825px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, background 0.2s;
}

.chatBox:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    background-color: #f2f2f2;
}

.chatMessages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #555;
}

.chatInputContainer {
    display: flex;
    padding: 10px;
    gap: 10px;
}

#chatInput {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
}

#sendButton {
    background-color: #d50000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#sendButton:hover {
    background-color: #b00000;
}

.contextContainer {
    height: 500px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18);
    padding: 20px;
    transition: box-shadow 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
}

.contextContainer:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.28);
    background-color: #f2f2f2;
}

.contextContainer h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contextContainer hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0;
}

.sectionContainer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
}

.sectionContainer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sectionContainer li {
    padding: 10px;
    margin: 5px 0;
    background-color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sectionContainer li:hover {
    background-color: #d50000;
    color: white;
}

.uploadMedia {
    background-color: #d50000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    margin-left: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.uploadMedia:hover {
    background-color: #b00000;
}

@media (max-width: 768px) {
    .aiContainer {
        grid-template-columns: 1fr;
    }
    
    .chatBoxContainer {
        grid-column: 1;
    }
    
    .contextContainer {
        grid-column: 1;
        height: auto;
        margin-bottom: 20px;
    }
}

/* ...existing media queries... */
@media (max-width: 480px) {
    .courseContentDivider {
        padding: 10px;
    }
    
    .courseContentBox1, .courseContentBox2 {
        padding: 15px;
    }
    
    .cInfoText {
        font-size: 0.85rem;
    }
}

