/* Concordia - Main CSS */

/* 1. GENERAL & TYPOGRAPHY */
body {
    font-family: "Montserrat", sans-serif !important;
}

p, ul, li, a, input, textarea, button, label, span, tr, td, .custom-select {
    font-family: "Montserrat", sans-serif;
}

/* 2. HEADINGS */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6a1a41;
}

h2, .h2 {
    font-size: 32px;
    font-weight: 700;
}

h3, .h3 {
    font-size: 26px;
    font-weight: 600;
}

h4, .h4 {
    font-size: 22px;
    font-weight: 600;
}

h5, .h5 {
    font-size: 18px;
    font-weight: 500;
}

h6, .h6 {
    font-size: 16px;
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif !important;
}

/* 3. HEADER & NAV */
.header:before {
    background: rgba(0, 0, 0, .4) !important;
}

body.theme-snap #mr-nav .editmode-switch-form .input-group label {
    color: #ffffff !important;
}

@media (max-width: 992px) {
    .theme-snap #snap-header {
        height: 100% !important;
    }
}

/* 4. BUTTONS */
.btn-primary {
    background-color: #eba800;
    border: 1px solid #eba800;
    color: #6a1a41;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.theme-snap .btn.btn-primary span {
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #cd9301;
    border-color: #cd9301;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #f8c135;
    border-color: #f8c135;
    color: #eaeaea;
    cursor: not-allowed;
    opacity: 0.7;
}

.theme-snap .btn.btn-secondary {
    background-color: transparent;
    border: 1px solid #eba800;
    color: #eba800;
    padding: 12px 22px !important;
    border-radius: 8px !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.theme-snap .btn.btn-secondary:hover {
    background-color: #eba800;
    border-color: #eba800;
    color: #fff;
    transform: translateY(-1px);
}

.theme-snap .btn.btn-secondary:focus,
.theme-snap .btn.btn-secondary.focus {
    background-color: rgba(0, 0, 240, 0.08);
    border-color: #cd9301;
    color: #cd9301;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 240, 0.2);
    outline: none;
}

.theme-snap .btn.btn-secondary:active,
.theme-snap .btn.btn-secondary.active,
.show > .theme-snap .btn.btn-secondary.dropdown-toggle {
    background-color: #cd9301;
    border-color: #cd9301;
    color: #fff;
}

.theme-snap .btn.btn-secondary:disabled,
.theme-snap .btn.btn-secondary.disabled {
    border-color: #f8c135;
    color: #f8c135;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 5. CAROUSEL & HOME ELEMENTS */
#snap-site-carousel .carousel-caption {
    background-color: rgba(255, 255, 255, 0) !important;
    width: 100% !important;
    margin: 25vh 0% !important;
    transform: translateY(6em);
    text-align: center;
}

#page-site-index #page-header h1 {
    margin-top: 0;
    line-height: 1.2;
    color: white;
    font-weight: 700;
    font-size: 3.25rem;
}

#page-site-index #page-header h1::after {
    content: '';
    display: block;
    width: 38%;
    height: 3px;
    background: #ffc107;
    margin: 0 auto;
}

#page-site-index .sitetopic, 
#frontpage-category-names, 
#frontpage-category-combo {
    max-width: 60em !important;
    margin: 2em auto;
    clear: both;
}

/* Welcome block */
#scroll-container {
    width: 100%;
    text-align: center;
    margin: 30px auto;
}

#scroll-icon-img {
    display: inline-block;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
}

#scroll-icon-img:hover {
    animation: bounce 0.6s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

body.snap-resource-list .activity-altcontent .no-overflow, 
body.snap-resource-card .activity-altcontent .no-overflow {
    background-color: #b8dde1;
}

.guide-links__intro h2,
.guide-links__intro p {
    color: white !important;
}

/* News block */
#page-site-index #site-news-forum {
    background-color: #ffffff !important;
}

#site-news-forum h2, 
#frontpage-course-list h2, 
#frontpage-category-names h2, 
#frontpage-category-combo h2 {
    padding: .5em 0;
    text-align: center;
    font-size: 2.5rem;
    color: #6a1a41;
}

/* 6. FOOTER STYLES */
.footer {
    background: #ffffff;
    max-width: 100%;
    display: block !important;
    visibility: visible !important;
}

.footer * {
    box-sizing: border-box;
}

.footer a {
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-top,
.footer-nav,
.footer-bottom {
    max-width: 1350px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    display: block;
}

.footer-logo img {
    width: 320px;
    height: auto;
    display: block;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 28px;
}

.footer-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 15px;
    color: #222;
}

.footer-contact span:not(:last-child)::after {
    content: "—";
    margin-left: 14px;
    color: #ccc;
}

.footer-contact a {
    color: #222;
    font-weight: 500;
}

.footer-contact a:hover {
    color: #7d1b4e;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social a {
    color: #7d1b4e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.footer-social a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    border: 1px solid #ddd;
    margin-bottom: 40px;
}

.footer-nav a {
    min-height: 80px;
    padding: 20px;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #7d1b4e;
}

.footer-nav a:last-child {
    border-right: 0;
}

.footer-nav a:hover {
    background: #7d1b4e;
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-copy {
    margin: 0;
    font-size: 14px;
    color: #222;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal a {
    color: #7d1b4e;
    font-size: 14px;
    font-weight: 500;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Moodle / Snap Specific Footer Fixes */
#moodle-footer a:not(.btn), 
#moodle-footer a:not(.btn):hover {
    color: #222222 !important;
}

#moodle-footer #snap-site-footer a:not(.btn) {
    color: #6a1b42 !important;
    font-size: 12px;
}

#moodle-footer #snap-site-footer a:not(.btn):hover {
    color: white !important;
}

/* 7. RESPONSIVE FOOTER MEDIA QUERIES */
@media (max-width: 1024px) {
    .footer-nav {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 20px 30px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-info {
        align-items: center;
    }

    .footer-contact {
        justify-content: center;
        line-height: 1.6;
    }

    .footer-contact span::after {
        display: none;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .footer-logo img {
        width: 240px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-nav a {
        min-height: 70px;
        font-size: 13px;
        letter-spacing: 2px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }

    .footer-nav a {
        border-right: 0;
        border-bottom: 1px solid #ddd;
    }

    .footer-nav a:last-child {
        border-bottom: 0;
    }

    .footer-contact,
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

/* 8. OTHER ELEMENTS & MY COURSES */
span.menu-action-text:hover {
    color: white !important;
}

.page-mycourses .block_myoverview .block-cards {
    border-top: none;
    padding-top: .5rem;
}

/* 9. LOGIN PAGE */
#page-login-index h1.text-center {
    position: relative;
}

#page-login-index h1.text-center::before {
    content: '';
    display: block;
    height: 120px;
    margin: 0 auto 20px;
    background-image: url("/pluginfile.php/1/tool_themeassets/assets/0/CC_Left_Maroon_MM.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    visibility: visible;
}

#page-login-index .text-center img.d-block.mx-auto {
    visibility: hidden;
    display: none !important;
}

.theme-snap#page-login-index #page {
    background-color: white !important;
}

.theme-snap .dropdown-item:hover,
.theme-snap .dropdown-item:hover .menu-action-text {
    color: white !important;
}

/* 10. ACTIVITIES & COURSE MANAGEMENT */
.activity-item {
    border: 0px solid #b8dde1 !important;
    background: none !important;
}

#region-main, .course-content {
    max-width: unset !important;
}

.theme-snap .section li.snap-activity.modtype_book .summary-text.row .content-row, 
.theme-snap .section li.launch-tiles-standard.modtype_book .summary-text.row .content-row, 
.theme-snap .section li.launch-tiles-module-modal.modtype_book .summary-text.row .content-row, 
.theme-snap .section li.launch-tiles-resource-modal.modtype_book .summary-text.row .content-row, 
.theme-snap .section li.launch-tiles-url-modal.modtype_book .summary-text.row .content-row, 
.theme-snap .section li.activity-wrapper.modtype_book .summary-text.row .content-row, 
.theme-snap .section li.snap-asset.modtype_book .summary-text.row .content-row,
.theme-snap .activity-item .activity-altcontent.activity-description > .no-overflow, 
.theme-snap .activity-item .activity-altcontent.activity-description .summary-container,
.theme-snap .section li.snap-activity.modtype_resource .snap-resource-figure-caption, 
.theme-snap .section li.launch-tiles-standard.modtype_resource .snap-resource-figure-caption, 
.theme-snap .section li.launch-tiles-module-modal.modtype_resource .snap-resource-figure-caption, 
.theme-snap .section li.launch-tiles-resource-modal.modtype_resource .snap-resource-figure-caption, 
.theme-snap .section li.launch-tiles-url-modal.modtype_resource .snap-resource-figure-caption, 
.theme-snap .section li.activity-wrapper.modtype_resource .snap-resource-figure-caption, 
.theme-snap .section li.snap-asset.modtype_resource .snap-resource-figure-caption {
    background-color: #fff !important;
}

.modtype_label,
.modtype_label .activity-item {
    border: 0 !important;
    box-shadow: none !important;
}

#page-course-management #course-category-listings .listitem > div {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

#page-course-management #course-category-listings .listitem > div > a {
    color: var(--gray);
    flex: 1 1 auto !important; 
    min-width: 0 !important;  
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    display: block !important;
}

#page-course-management #course-category-listings .flex-shrink-0.ms-auto {
    flex: 0 0 auto !important; 
    width: auto !important;    
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

.format-tiles .course-content li.activity.label h4 {
    border-left-color: rgba(108, 29, 69, 0) !important;
}

#page-course-view-tiles table tr, 
#page-course-view-tiles table td {
    border-color: transparent !important;
}
div#snap-alt-login {
    display: none;
}
.path-course table tbody, .path-course table td, .path-course table tbody tr {
    border-color: transparent !important;
}
/* CobberLearn Edit mode switch — ON */
.form-switch input.form-check-input[id$="-editingswitch"]:checked {
    background-color: #EAAA00 !important;
    border-color: #6C1D45 !important;
}