/* General Body Styles */
html, body {
    height: 100%;
    margin: 0;
}
body {
    font-family: 'Source Serif 4', Times, serif;
    background: white; /* Default background for non-front pages */
    color: black; /* Default text color */
}

/* FONTS */
@font-face {
    font-family: 'fontello';
    src: url('../fonts/fontello.eot?89134200');
    src: url('../fonts/fontello.eot?89134200#iefix') format('embedded-opentype'),
        url('../fonts/fontello.woff2?89134200') format('woff2'),
        url('../fonts/fontello.woff?89134200') format('woff'),
        url('../fonts/fontello.ttf?89134200') format('truetype'),
        url('../fonts/fontello.svg?89134200#fontello') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
    font-family: "fontello";
    font-style: normal;
    font-weight: normal;
    speak: never;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    margin-left: .2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Icon Specific Styles */
.icon-question:before { content: '\e800'; } /* '' */
.icon-home:before { content: '\e801'; } /* '' */
.icon-play:before { content: '\e802'; } /* '' */
.icon-videocam:before { content: '\f03a'; } /* '' */
.icon-movie:before { content: '\f040'; } /* '' */
.icon-docs:before { content: '\f0c5'; } /* '' */

/* Heading Styles */
h1, h2, h3, h4 {
    font-family: 'DM Sans', 'Source Serif 4', Times, serif;
    font-weight: 400;
}
h1 {
    font-weight: 700;
}
h2 {
    font-weight: 200;
    font-size: 4rem;
    margin-bottom: 1.8rem;
}
h3 {
    font-size:2.25rem;
}
h4.module-title {
    font-weight: 700;
    color: #c55a11;
}
h4.module-title span {
    color: black;
    font-weight:normal;
}
span.module-label {
    text-transform: uppercase;
    font-weight: bold;
    color: #999;
    display: block;
}
/* Layout Styles */
.container > .row {
    justify-content: center;
}

/* Full Screen Background */
.full-screen-background {
    position: relative;
    background: none; /* No background image for default pages */
    display: block; /* Use block layout instead of flex */
    height: auto; /* Auto height */
}
.full-screen-background > .container {
    position: relative;
    z-index: 2;
}

/* Overlay Styles */
.overlay {
    display: block;
    position: relative;
    z-index: 2;
    padding: 20px 0;
    margin-top: 20px;
    border-radius: 10px;
    color: black;
    width: 100%;
}

.subtitle span {
    display: inline-block;
}

.subtitle span::first-letter {
    font-weight: bold;
}

/* Bottom Text Styles */
.bottom-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

/* Unicorn List Styles */
.unicorn-list {
    list-style-position: inside;
    text-align: center;
    padding: 0;
    margin: auto;
    width: fit-content;
}

/* Copyright Styles */
.copyright {
    font-size: 14px;
    color: #666;
}

.copyright a {
    display: block;
    font-size: 10px;
    color: #666;
    text-decoration: none;
}

/* Navigation Menu Styles */
nav.primary, nav.secondary {
    text-align: center;
    width: 100%;
}
nav.primary ul.menu {
    list-style-type: none;
    padding: 15px 0;
    margin: 0 auto;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: block;
    text-align: center;
    width: 100%;
}

nav.primary ul.menu li {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

nav.primary ul.menu li a.item {
    background-color: transparent;
    color: black;
    padding: 10px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0;
    font-family: 'DM Sans', 'Source Serif 4', Times, sans-serif;
    font-weight: 700;
}
nav.primary ul.menu li.current-menu-item a.item {
    color: #c55a11;
    text-decoration: none;
}
nav.primary ul.menu li a.item:hover {
    color: #ff7313;
    text-decoration: underline;
}
nav.primary ul.menu li a.item:before {
    content: '';
    font-family: 'fontello';
    font-weight: normal;
    margin-right:5px;
}
nav.primary ul.menu li.nav-home a.item:before {
    content: '\e801';
}
nav.primary ul.menu li.nav-intro a.item:before {
    content: '\f03a';
}
nav.primary ul.menu li.nav-modules a.item:before {
    content: '\f040';
}
nav.primary ul.menu li.nav-syllabus a.item:before {
    content: '\f0c5';
}
nav.primary ul.menu li.nav-support a.item:before {
    content: '\e800';
}
nav.primary ul.menu li.nav-support a.item:before {
    content: '\e800';
}
.home #menu li.nav-support {
    display:none !important;
}

/* Main Content Styles */
#main.row {
    padding-bottom: 10px;
}
.module-row {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}
.module-wrap .module-row:first-child .module-group-title {
    margin-top: 0;
}
.module-wrap .module-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.module-group-title {
    margin: 15px 0;
}
.module-group-title span {
    display: inline-block;
}
.module-group-title span {
    color: #c55a11;
    font-weight:bold;
}
.module-group-row {
    margin-bottom:20px;
}
.module-box {
    border: 1px solid #ccc;
    padding: 20px;
}
.module-card {
    margin-bottom:20px;
}
.module-card .card-title {
    margin-bottom: 0;
}
.module-card .card-title a {
    color: black;
    text-decoration: none;
}
.module-card .card-title a:hover {
    color: #c55a11;
    text-decoration: none;
}
.module-card .image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.module-card .image-container:before {
    content: '\e802'; /* Unicode character for a right-pointing triangle (play symbol) */
    font-family: "fontello";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px; 
    color: white;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: all 0.5s ease;
    pointer-events: none;
}
.module-card .image-container:after {
    content: "";
    background-color: rgba(0, 0, 0, 0.6);
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.module-card:hover .image-container:before {
    width:80px;
    height:80px;
    line-height:80px;
}
.module-card:hover .image-container:after {
    opacity: 1;
 }
.module-card .card-img-top {
    border-bottom: 1px solid rgba(0,0,0,.125);
}
.module-id-circle {
    position: absolute;
    top: 0;
    left: 0px;
    display: flex;
    align-items: center;
    width: 70px;
    height: 40px;
    border-radius: 0 100px 100px 0;
    background-color: #c55a11;
    color: white;
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    padding-left: 20px;
}
.module-group {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ccc;
}
.col-syllabus .module-group:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
/* CenUNICORN Button Style */
.btn-cenunicorn {
    color:#fff;
    background-color: #c55a11;
    border-color: #c55a11;
}
.btn-cenunicorn:hover {
    color: #fff;
    background-color: #ff7313;
    border-color: #ff7313;
}
.btn-cenunicorn:focus {
    box-shadow: 0 0 0 0.2rem rgba(197, 90, 17,.25)
}
/* Footer Styles */
footer {
    position: fixed; /* Fix the position to the bottom of the viewport */
    left: 0;
    bottom: 0;
    width: 100%; /* Ensure the footer spans the full width */
    background-color: #f8f9fa; /* Example background color, adjust as needed */
    text-align: center;
    padding: 15px 0; /* Footer padding, adjust as needed */
    z-index: 1000;
}
footer p {
    margin: 0;
}
/* Magnific Popup Transition Styles */
.mfp-fade.mfp-bg {
    opacity: 0;
    -webkit-transition: all 0.15s ease-out;
    -moz-transition: all 0.15s ease-out;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    -webkit-transition: all 0.15s ease-out;
    -moz-transition: all 0.15s ease-out;
    transition: all 0.15s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}

/* Front Page Specific Styles */
.front-page .full-screen-background {
    position: relative;
    background: url('../images/main-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* Center content horizontally and vertically */
    color: white;
    padding-top: 20px;
}
.front-page .full-screen-background:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}
.front-page .overlay {
    display: inline-block;
    position: relative;
    background: rgba(0, 0, 0, 0.7); /* Dark background with opacity */
    padding: 20px 20px 30px;
    margin-top: 0;
    border-radius: 10px;
    color: white;
    z-index: 2;
    width: auto;
    max-width:600px;
}
.front-page nav.primary ul.menu {
    border: none;
    padding: 10px 0 0 0;
}
.front-page nav.primary ul.menu li a.item {
    /* Button-like styles for front page navigation menu */
    background-color: #c55a11;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}
.front-page nav.primary ul.menu li.nav-home {
    display: none;
}

.front-page nav.primary ul.menu li a.item:hover {
    background-color: #ff7313;
}
@media screen and (min-width: 768px) {
    .bottom-text {
        font-size: larger;
    }
}
@media screen and (max-width: 768px) {
    .front-page .full-screen-background {
        height: auto; /* Allow the background to adjust its height based on content */
        min-height: 100vh; /* Ensure it covers at least the full viewport height */
    }
    .front-page .full-screen-background:after {
        top: 0;
    }
    .front-page .overlay {
        padding-bottom: 20px; /* Increase padding at the bottom */
    }
    .front-page nav.primary ul.menu {
        padding: 0;
    }
    .front-page nav.primary ul.menu li {
        margin-left:5px;
        margin-right:5px;
        margin-bottom: 10px;
    }
    .front-page nav.primary ul.menu li a.item {
        font-size: smaller;
        padding: 5px 10px;
        margin:0;
    }
    .front-page .bottom-text {
        position: relative; /* Change position to relative */
        padding-top: 40px; /* Add some space above the bottom text */
        margin-top: 20px; /* Push it further down */
    }
    .overlay h1, .overlay .h1 {
        font-size: 1.7rem;
    }
    #main h2 {
        font-size: 2.5rem;
        font-weight: 400;
    }
    .module-group-title {
        font-size: 2rem;
    }
}