/*  */
/*  */
/* GLOBAL */
/*  */
/*  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Colours */
:root {
    /* Core brand colours */
    --acm-primary-color: #EAFF00;
    --acm-white-color: #FFFFFF;
    --acm-black-color: #000000;
    --acm-dark-grey-color: #303030;
    --acm-light-grey-color: #EDEDED;

    /* Additional bright accents */
    --acm-orange-color: #FF5E00;
    --acm-cyan-color: #00CFFF;
    --acm-mint-color: #4DFFB8;
    --acm-violet-color: #A44DFF;

    /* Dark accent variations */
    --acm-dark-primary-color: #707A00;
    --acm-dark-orange-color: #CC4B00;
    --acm-dark-cyan-color: #00809E;
    --acm-dark-mint-color: #008550;
    --acm-dark-violet-color: #9E42FE;

    /* Text colours */
    --acm-text-primary-color: #000000;
    --acm-text-secondary-color: #FFFFFF;
    --acm-text-tertiary-color: #D9D9D9;
}

/* Global styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--acm-text-primary-color);
    background-color: #f9f9f9;
}

.acm-desktop-hidden {
    display: none;
}

/*  */
/*  */
/* TYPOGRAPHY */
/*  */
/*  */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Geist Mono', monospace;
}

h3, h4, p {
    padding: 0 20px;
}

h3 {
    color: var(--acm-primary-color) !important;
    background: var(--acm-black-color) !important;
    padding: 5px 0;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2;
    margin: 10px 0;
}

h4 {
    color: var(--acm-dark-grey-color);
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
}

p, label {
    color: var(--acm-black-color);
    font-size: 1.2em;
    line-height: 1.2;
    font-weight: 400;
    margin-bottom: 20px;
}

/* #content a {
    background: var(--acm-primary-color);
    padding: .2rem;
    color: var(--acm-black-color);
    cursor: pointer;
    font-size: inherit;
} */

#content ul li a {
    background: none !important;
    padding: 0 !important;
    color: inherit !important;
    box-shadow: none !important;
}

#content a:hover,
#content ul li a:hover,
.acm-section a:hover,
.acm-section ul li a:hover {
    box-shadow: 0.5px 0.5px 1px 1px var(--acm-dark-grey-color);
}

#content ul li a:hover {
    background: var(--acm-primary-color);
    color: var(--acm-black-color);
}

.acm-section img {
    display: block;
    max-width: 100%;
    max-height: 450px;
    justify-self: center;
    align-self: center;
    object-fit: contain;
    margin: 20px auto;
    border-radius: 10px;
}

.acm-section blockquote {
    width: 70%;
    margin: 10px auto;
    border-radius: 0.5em;
    background-color: var(--acm-light-grey-color);
    padding: 10px;
    border: 1px solid var(--acm-dark-grey-color);
    border-left: var(--acm-primary-color) solid 10px;
}

.user_content hr {
    border: none;
    height: 4px;
    background: var(--acm-black-color);
    margin: 2rem 0;
}

/*  */
/*  */
/* CANVAS CHANGES */
/*  */
/*  */
/* Desktop */
/* Main left nav */
.ic-app-header__logomark {
    width: 55%;
    margin: auto;
}

.ic-sticky-frame {
    background: var(--acm-light-grey-color);
}

/* Breadcrumbs */
.ic-app-nav-toggle-and-crumbs,
#breadcrumbs {
    background: var(--acm-light-grey-color);
}

.ic-app-nav-toggle-and-crumbs {
    width: 100% !important;
    margin-left: 0;
    padding-left: 25px;
}

/* Mobile */
/* Left tray menu */
.css-1kdtqv3-tray__content {
    background: var(--acm-light-grey-color);
}

.css-xihp29-view--block-list,
.css-xihp29-view--block-list li,
.css-xihp29-view--block-list button,
.css-xihp29-view--block-list span {
    color: var(--acm-black-color);
    background: var(--acm-light-grey-color-color);
    outline: none !important;
}

.css-xihp29-view--block-list a {
    padding: 0;
}

.css-xihp29-view--block-list svg {
    fill: var(--acm-black-color);
    color: var(--acm-black-color);
    background: var(--acm-light-grey-color);
}

.ic-brand-mobile-global-nav-logo {
    background: var(--acm-light-grey-color);
    background-image: url(https://du11hjcvx0uqb.cloudfront.net/dist/images/mobile-global-nav-logo-aff8453309.svg);
    background-repeat: no-repeat;
}

/* Mobile nav menu */
#mobileContextNavContainer,
#mobileContextNavContainer span,
#mobileContextNavContainer span a {
    background: var(--acm-light-grey-color);
}

/* Dashboard */
/* Tiles */
.ic-DashboardCard__action-container {
    background: var(--acm-primary-color);
    height: 4rem;
}

.ic-DashboardCard__action-layout,
.ic-DashboardCard__action-layout:hover,
.ic-DashboardCard__action-layout:visited,
.ic-DashboardCard__action-layout:focus {
    color: var(--acm-black-color);
}

.ic-DashboardCard__header-title span {
    color: var(--acm-white-color) !important;
    padding: 2px;
}

.ic-DashboardCard__action-badge {
    background: var(--acm-black-color);
    color: var(--acm-primary-color);
}

/* To Do List */
.todo-badge {
    background: var(--acm-black-color) !important;
}

.todo-badge span {
    color: var(--acm-white-color);
}

/* Notification circles */
/* Grades */
.nav-icon,
.nav-badge {
    background: var(--acm-black-color) !important;
    color: var(--acm-white-color) !important;
}

.nav-badge span {
    color: var(--acm-white-color) !important;
}

/* Dropdown lists */
/* Dropdown list options hover state */
/* Ensure selected or highlighted options don't turn white */
/* Dropdown list options - hover and selected states */
/* Base reset: make options consistent first */
[role="listbox"] [role="option"] {
    color: var(--acm-black-color) !important;
    background: transparent !important;
  }
  
  /* Hover only (mouse over) */
  [role="listbox"] [role="option"]:hover {
    background: var(--acm-light-grey-color) !important;
  }
  
  /* Selected / keyboard highlight (but NOT when also hovered) */
  [role="listbox"] [role="option"][aria-selected="true"]:not(:hover),
  [role="listbox"] [role="option"][aria-current="true"]:not(:hover),
  [role="listbox"] [role="option"]:focus-visible:not(:hover) {
    background: var(--acm-light-grey-color) !important;
    /* keep text readable in all states */
    color: var(--acm-black-color) !important;
  }
  
  /* Optional: add a clear keyboard focus ring without changing colours */
  [role="listbox"] [role="option"]:focus-visible {
    outline: 2px solid var(--acm-dark-grey-color) !important;
    outline-offset: -2px;
  }
  


/* Dropdown menu */
.al-trigger {
    background: var(--acm-white-color);
}

.ui-menu-item li a {
    background: var(--acm-white-color);
    color: var(--acm-black-color);
}

/* dashboard cards no colour overlay*/
div.ic-DashboardCard__header_hero {
    opacity: 0 !important;
}

/* Footer */
.module-sequence-footer .module-sequence-footer-content,
.header-bar .page-toolbar  {
    background: #f9f9f9 !important;
}

/*  */
/*  */
/* LOGIN */
/*  */
/*  */
/* Changes the buttons on the the login screen */
.ic-Login__sso .ic-Login__sso-list__item {
    width: 100%;
}
  
.ic-Login__header .ic-Login__header__logo img {
    max-width: 100% !important;
}
  
.ic-Login__body .ic-Login__actions button.Button--login {
    background: #000;
}
  
.ic-Login__sso .ic-Login__sso-list__item .Button.ic-Login__sso-button {
    background: var(--acm-primary-color);
    font-size: larger;
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 5px;
}

.ic-Login__sso-list__item {
    background: var(--acm-primary-color);
    outline: 1px solid var(--acm-black-color);
    color: var(--acm-black-color);
    margin-bottom: 5px;
}

.ic-Login__sso-list__item:hover {
    box-shadow: 0.5px 0.5px 1px 1px var(--acm-dark-grey-color);
}

/*  */
/*  */
/* LEGACY ACM STYLES */
/*  */
/*  */
/* General page styles */
.acm-main-content,
.user_content {
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 10px auto;
    padding: 10px 0;
    width: 98%;
    left: 0;
    right: 0;
    line-height: 1.5;
    border-radius: 0.25em;
}

.acm-section h3 {
    width: 100%;
    padding-left: 5px;
}

.acm-main-content > h3 + p,
.acm-section > h3 + p,
.user_content > h3 + p {
    padding-left: 20px;
}

.acm-main-content h4,
.acm-section h4,
.user_content h4 {
    padding-left: 20px;
    margin: 10px 0;
}

.acm-main-content h4 + p,
.acm-section h4 + p,
.user_content h4 + p {
    padding-left: 40px;
}

.acm-main-content ul,
.acm-section ul,
.user_content ul,
.acm-main-content ol,
.acm-section ol,
.acm-main-content ol {
    padding-left: 40px;
}

.user_content iframe {
    display: block;
    max-width: 100%;
    max-height: 450px;
    justify-self: center;
    align-self: center;
    object-fit: contain;
    margin: 20px auto;
}

.user_content > .page-title {
    background: var(--acm-primary-color);
    color: var(--acm-black-color) !important;
    width: 100%;
    text-align: left;
    padding: 10px;
    padding-right: 15%;
    border-left: 10px solid var(--acm-black-color);
}

/*  */
/* Box Sections */
/*  */
.acm-section {
    width: 98%;
    margin: 10px auto 25px auto;
    background: var(--acm-white-color);
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}

/* .section--green {
    border-top: 20px solid var(--acm-mint-color);
} */

.section--green h3 {
    background: var(--acm-mint-color);
    color: var(--acm-black-color);
}

/* .section--blue {
    border-top: 20px solid var(--acm-cyan-color);
} */

.section--blue h3 {
    background: var(--acm-cyan-color);
    color: var(--acm-black-color);
}

/* .section--grey {
    border-top: 20px solid var(--acm-dark-grey-color);
} */

.section--grey h3 {
    color: var(--acm-white-color);
}

/* .section--purple {
    border-top: 20px solid var(--acm-violet-color);
} */

.section--purple h3 {
    background: var(--acm-violet-color);
    color: var(--acm-black-color);
}

/*  */
/* Content with icons */
/*  */
#section-icon {
    color: var(--acm-white-color);
    position: relative;
    top: -32px;
    left: 98%;
}

#section-icon h3 {
    margin-top: -20px;
}

#black-icon {
    color: var(--acm-black-color);
}

#button-icon {
    color: var(--acm-white-color);
    margin-right: 5px;
}

#button-icon:hover {
    color: var(--acm-white-color);
}

/* Page Header */
.acm-page-header {
    margin: 10px auto;
    width: 95%;
    text-align: center;
    font-size: 18pt;
    background: var(--acm-black-color);
    color: var(--acm-white-color);
    border-radius: 0.5em;
}

/* Tick List */
.tick-list li {
    list-style: none;
}
  
.tick-list li::before {
    content: "✓";
    color: var(--acm-dark-mint-color);
    margin-right: 5px;
}
  
  /* Icon List */
.icon-list li {
    list-style: none;
}
  
.icon-list li::before {
    content: "";
    color: var(--acm-dark-mint-color);
    margin-right: 5px;
}

  /* Old course homepage header */
.acm-module-header {
    width: 99%;
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--acm-black-color);
    color: var(--acm-white-color);
    border-radius: 10px;
    border: 1px solid var(--acm-primary-color);
    z-index: 999;
    overflow: hidden;
}

.acm-title-container {
    margin: 10px 0;
}

.acm-subtitle {
    text-align: center;
    border-radius: 0.5em;
    padding: 0 5px;
}

.acm-subtitle h3 {
    background: var(--acm-primary-color);
    color: var(--acm-black-color);
}

.acm-header-img img {
    width: 99vw;
    min-height: 150px;
    max-height: 200px;
    object-fit: cover;
    margin-top: -15px;
    border-radius: 0 0 0.5em 0.5em;
}

.acm-header-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.acm-navBtn {
    width: 33%;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 2px solid var(--acm-orange-color);
    transition: 200ms ease-in-out;
    opacity: 0.8;
}

.home-discussion {
    border-left: none;
}

.acm-navBtn a {
    color: rgba(255, 255, 255, 0.9);
}

.acm-navBtn a:hover {
    cursor: pointer;
    transform: scaleY(1.05);
    opacity: 1;
    font-weight: 900;
    color: var(--acm-dark-orange-color);
}

/*  */
/* Accordions */
/*  */
.accordion {
    width: 90%;
    margin: 0 auto;
    padding: 5px;
    margin-bottom: 5px;
    background-color: rgba(234, 255, 0, 0.5);
    border-radius: 0.25em;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.accordion h3 {
    margin-bottom: -10px;
}

summary {
    font-size: 16pt;
    padding: 5px 0 5px 10px;
    background-color: rgba(234, 255, 0, 0.5);
}

.accordion-section {
    padding: 5px;
    margin-bottom: 5px;
    background: var(--acm-white-color);
    border: 1px solid rgba(234, 255, 0, 0.2);
    border-radius: 0.25em;
}

.accordion a {
    text-decoration: none;
}

/* OLD Course content accordion */
.course-content-accordion ul {
    list-style: none;
}

.course-content-accordion li {
    margin: 5px 0;
}

.list-title {
    font-size: 12pt;
}

.list-icon {
    width: 25px;
    aspect-ratio: 1;
    padding-right: 10px;
}

.accordion-section hr {
    width: 90%;
    margin: 0 auto;
}

/* AUTO Course Content Container */
/* Add hr after each li in course content list, except last li */
.course-content-accordion ul li:not(:last-child):after {
    content: '';
    display: block;
    height: .5px;
    width: 95%;
    margin: 5px auto 10px auto;
    background-color: rgba(234, 255, 0, 0.5);
    border-width: 0;
    color: rgba(234, 255, 0, 0.5);
}

@media (max-width: 600px) {
    .accordion, .course-content-accordion {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        font-size: 1em;
    }
    .accordion-section, .course-content-accordion .accordion-section {
        padding: 0.5em 0.5em;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: auto;
    }
    .course-content-accordion summary,
    .course-content-accordion ul,
    .course-content-accordion li {
        width: 100%;
        min-width: 0;
        word-break: break-word;
        white-space: normal;
        font-size: 1em;
        padding-left: 0;
        margin-left: 0;
    }
    .course-content-accordion .list-title {
        font-size: 1em;
        word-break: break-word;
        white-space: normal;
    }
    .course-content-accordion .list-icon {
        font-size: 1.2em;
        margin-right: 0.5em;
    }
}

/* OLD SPLIT ACCORDION */
.split-accordion {
    display: inline-block;
    margin-left: 5%;
}
/* Text left - image right */
.accordionTextL {
    width: 68%;
    float: left;
}
  
.accordionImgR {
    float: right;
    width: 30%;
    height: 250px;
}
  
.accordionImgR img,
.accordionImgL img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 10px;
}
  
/* Image left - text right */
.accordionImgL {
    float: left;
    width: 30%;
    height: 250px;
}
  
.accordionTextR {
    width: 68%;
    float: right;
}

/* OLD Black Accordion */
/* ALL REMOVED? */

/* Infobox */
.infobox {
    margin: 20px;
    padding: 20px;
    background-color: rgba(234, 255, 0, 0.1);
    border: 1px double rgba(234, 255, 0, 0.5);
    vertical-align: middle;
    display: flex;
    flex-direction: column;
}

.infobox img {
    position: relative;
    margin-left: auto;
    margin-right: 10px;
    max-width: 30%;
    object-fit: cover;
}

/* Taskbox */
.taskbox {
    width: 90%;
    background-color: var(--acm-black-color);
    border-radius: 0.5em;
    padding: 15px;
    margin: 5px auto;
    color: var(--acm-white-color);
    font-size: 18pt;
}

/*  */
/* Buttons */
/*  */
#Button--home {
    display: block;
    margin: 0 auto;
    width: fit-content;
    margin: 10px auto;
    text-align: center;
    background-color: var(--acm-black-color);
    color: var(--acm-white-color);
}

#Button--home:hover {
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}

.Button--home {
    left: 45%;
}

/* Excluded OLD tables */
/* New tables */
#acm-content table {
    width: 100%;
    background-color: var(--acm-white-color);
    border-collapse: collapse;
    border-width: 2px;
    border-color: var(--acm-text-primary-color);
    border-style: solid;
    color: var(--acm-text-primary-color);
    table-layout: auto;
}

#acm-content td,
#acm-content th {
    border-width: 2px;
    border-color: var(--acm-text-primary-color);
    border-style: solid;
}

#acm-content thead {
    background-color: var(--acm-primary-color);
    font-size: 16pt;
    font-weight: 700;
    font-family: 'Geist Mono', monospace;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 600px) {
    #acm-content table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
    }
}

/*  */
/* CARDS */
/*  */
.navCard {
    border: 2px solid var(--acm-black-color);
    border-radius: 10px;
    width: fit-content;
    padding: 0;
    margin: 10px;
    background-color: #f5f5f5;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s;
}
  
  /* Hover set up */
.navImgHover {
    display: block;
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 100px;
    padding: 0;
    transition: transform 0.4s;
}
  
.navCard img {
    object-fit: cover;
}
  
.navCard:hover {
    -webkit-box-shadow: 5px 5px 10px -5px var(--text);
    box-shadow: 5px 5px 10px -5px var(--text);
}
  
.navImgHover:hover {
    cursor: pointer;
    transform: scale(1.1);
    transform-origin: 50% 50%;
}
  
.navCard:hover {
    cursor: pointer;
    transform: scale(1.025);
}
  
/* NavCard text styling */
.navCard a {
    text-decoration: none;
    color: var(--acm-black-color);
}
  
.navCard span {
    display: inline-block;
    margin: 10px;
    font-size: 16pt;
    color: var(--acm-black-color);
}

/* Tutor Headshot */
#tutor-info {
    width: 100px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 20px;
}

/* FE Styling */
.acm-fe-button {
    border-radius: 10px;
    width: fit-content;
    height: 150px;
    min-height: fit-content;
    padding: 0;
    margin: 10px;
    background-color: var(--acm-light-grey-color);
    position: relative;
    transition: transform 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.acm-fe-button span {
    display: inline-block;
    margin: 10px;
    font-size: 16pt;
    color: #ffffff;
}
  
.acm-fe-button:hover {
    cursor: pointer;
    transform: scale(1.025);
    -webkit-box-shadow: 5px 5px 10px -5px var(--acm-dark-grey-color);
    box-shadow: 5px 5px 10px -5px var(--acm-dark-grey-color);
}

/* Module page styling */
/* Left border for each module list */
/* 20 modules */
.context_module:nth-child(1) > .ig-header.header,
.context_module:nth-child(1) > .content > ul,
.context_module:nth-child(11) > .ig-header.header,
.context_module:nth-child(11) > .content > ul,
.context_module:nth-child(21) > .ig-header.header,
.context_module:nth-child(21) > .content > ul {
  border-left: 10px solid var(--acm-primary-color);
}

.context_module:nth-child(2) > .ig-header.header,
.context_module:nth-child(2) > .content > ul,
.context_module:nth-child(12) > .ig-header.header,
.context_module:nth-child(12) > .content > ul,
.context_module:nth-child(22) > .ig-header.header,
.context_module:nth-child(22) > .content > ul {
  border-left: 10px solid var(--acm-orange-color)
}

.context_module:nth-child(3) > .ig-header.header,
.context_module:nth-child(3) > .content > ul,
.context_module:nth-child(13) > .ig-header.header,
.context_module:nth-child(13) > .content > ul,
.context_module:nth-child(23) > .ig-header.header,
.context_module:nth-child(23) > .content > ul {
  border-left: 10px solid var(--acm-cyan-color);
}

.context_module:nth-child(4) > .ig-header.header,
.context_module:nth-child(4) > .content > ul,
.context_module:nth-child(14) > .ig-header.header,
.context_module:nth-child(14) > .content > ul,
.context_module:nth-child(24) > .ig-header.header,
.context_module:nth-child(24) > .content > ul {
  border-left: 10px solid var(--acm-mint-color);
}

.context_module:nth-child(5) > .ig-header.header,
.context_module:nth-child(5) > .content > ul,
.context_module:nth-child(15) > .ig-header.header,
.context_module:nth-child(15) > .content > ul,
.context_module:nth-child(25) > .ig-header.header,
.context_module:nth-child(25) > .content > ul {
  border-left: 10px solid var(--acm-violet-color);
}

.context_module:nth-child(6) > .ig-header.header,
.context_module:nth-child(6) > .content > ul,
.context_module:nth-child(16) > .ig-header.header,
.context_module:nth-child(16) > .content > ul,
.context_module:nth-child(26) > .ig-header.header,
.context_module:nth-child(26) > .content > ul {
  border-left: 10px solid var(--acm-dark-primary-color);
}

.context_module:nth-child(7) > .ig-header.header,
.context_module:nth-child(7) > .content > ul,
.context_module:nth-child(17) > .ig-header.header,
.context_module:nth-child(17) > .content > ul,
.context_module:nth-child(27) > .ig-header.header,
.context_module:nth-child(27) > .content > ul {
  border-left: 10px solid var(--acm-dark-orange-color);
}

.context_module:nth-child(8) > .ig-header.header,
.context_module:nth-child(8) > .content > ul,
.context_module:nth-child(18) > .ig-header.header,
.context_module:nth-child(18) > .content > ul,
.context_module:nth-child(28) > .ig-header.header,
.context_module:nth-child(28) > .content > ul {
  border-left: 10px solid var(--acm-dark-cyan-color);
}

.context_module:nth-child(9) > .ig-header.header,
.context_module:nth-child(9) > .content > ul,
.context_module:nth-child(19) > .ig-header.header,
.context_module:nth-child(19) > .content > ul,
.context_module:nth-child(29) > .ig-header.header,
.context_module:nth-child(29) > .content > ul {
  border-left: 10px solid var(--acm-dark-mint-color);
}

.context_module:nth-child(10) > .ig-header.header,
.context_module:nth-child(10) > .content > ul,
.context_module:nth-child(20) > .ig-header.header,
.context_module:nth-child(20) > .content > ul,
.context_module:nth-child(30) > .ig-header.header,
.context_module:nth-child(30) > .content > ul {
  border-left: 10px solid var(--acm-dark-violet-color);
}

/*  */
/* NEW STYLING */
/*  */
/* Course hero */
.main-hero-container {
    width: 100%;
    height: 67vh;
    background: #EAFF00;
    background: linear-gradient(320deg, rgba(234, 255, 0, 1) 0%, rgba(237, 237, 237, 1) 20%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-course-title {
    width: 100%;
    font-family: 'Geist Mono', monospace;
    color: var(--acm-black-color);
    padding-left: 8vw;
    font-size: 2em;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-introduction p {
    color: var(--acm-black-color);
    font-size: 12pt;
    margin: 20px -20px;
    text-align: left;
}

.hero-img {
    width: 45%;
    height: 98%;
    padding-right: 5vw;
    max-width: 350px;
}

.hero-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media only screen and (max-width: 600px) {
    .acm-desktop-hidden {
        display: block;
    }
    .main-hero-container,
    .secondary-hero-container {
        display: flex;
        flex-direction: column-reverse;
        height: 97vh;
    }
    .hero-course-title,
    .secondary-hero-title {
        width: 100%;
        padding: 0;
        margin-bottom: 100px;
        padding-left: 10vw;
    }
    .hero-img {
        width: 100%;
        height: 80%;
        margin: auto;
        max-width: 275px;
    }
}

.secondary-hero-container {
    width: 100%;
    height: fit-content;
    max-height: max-content;
    padding: 50px 0;
    background: linear-gradient(320deg, rgba(234, 255, 0, 1) 0%, rgba(237, 237, 237, 1) 20%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.secondary-hero-title {
    width: 100%;
}

.secondary-hero-title h3 {
    font-family: 'Geist Mono', monospace;
    color: var(--acm-white-color) !important;
    padding-left: 2vw;
    font-size: 2em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.secondary-hero-introduction p {
    color: var(--acm-white-color);
    font-size: 12pt;
    margin: 20px -20px;
    text-align: left;
}

/* Left out scroll/move animation */

/* Carousel */
.carousel-container {
    width: 95vw;
    position: relative;
    height: 500px !important;
    min-height: 500px;
    max-height: none !important;
    max-width: 700px;
    margin: 40px auto 20px auto;
    background: var(--acm-white-color);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.1), 0 1.5px 3px 0 rgba(0, 0, 0, 0.8);
    overflow: hidden;
    padding-bottom: 1rem;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 500px;
    min-height: 500px;
    max-height: none !important;
    align-items: stretch;
    justify-content: center;
    position: relative;
}

.carousel-slide.active {
    display: flex;
    animation: fadeIn 0.4s ease-in-out;
}

.slide-content {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.slide-content.text-only,
.slide-content.img-only {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.slide-content.img-only img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0 !important;
}

.text-left,
.text-right {
    flex: 1 1 0;
    width: 55%;
    min-width: 200px;
}

.slide-img-left,
.slide-img-right {
    max-width: 45%;
    height: 100%;
    object-fit: cover;
    background: var(--acm-light-grey-color);
    box-shadow: 0 2px 8px rgba(50, 50, 50, 0.04);
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.slide-img-left {
    margin-right: 32px;
}

.slide-img-right {
    margin-left: 32px;
}

.slide-img-left img,
.slide-img-right img {
    border-radius: 0 !important;
}

.slide-img-right p,
.slide-img-left p {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-img-right img,
.slide-img-left img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto !important;
}

#progress-container {
    width: 95%;
    max-width: 650px;
    height: 8px;
    background: var(--acm-dark-grey-color);
    margin: 0 auto 18px auto;
    border-radius: 4px;
    position: relative;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: var(--acm-primary-color);
    border-radius: 4px;
    transition: width 0.3s ease-in-out
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px);}
    to { opacity: 1; transform: translateY(0);}
}

@media (max-width: 800px) {
    .carousel-container {
        width: 95vw !important;
        max-width: 98vw;
        margin: 16px auto 0 auto;
    }
    .slide-content{
        flex-direction: column;
        gap: 18px;
        padding: 18px;
        height: auto;
    }
    .text-content, .slide-img, .slide-img-left, .slide-img-right {
        max-width: 100%;
        min-width: 0;
        margin: 0 !important;
    }
    .slide-img-left, .slide-img-right {
        max-height: 50%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .carousel-container {
        width: 99vw;
        max-width: 99vw;
        height: 500px;
        margin: 8px auto 8px auto;
        border-radius: 0.5em;
    }
    .carousel-slide {
        min-height: 480px;
        height: 100%;
        flex-direction: column;
    }
    .slide-content {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0 0 10px 0;
        height: auto;
    }
    .slide-img-right {
        order: -1;
        width: 100%;
        max-width: 100%;
        max-height: 150px;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 0.5em 0.5em 0 0;
    }
    .slide-img-left {
        order: 2;
        width: 100%;
        max-width: 100%;
        max-height: 150px;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 0 0 0.5em 0.5em;
    }
    .text-left,
    .text-right,
    .text-content {
        width: 100% !important;
        min-width: 0 !important;
        text-align: left;
    }
    .carousel-prev-arrow,
    .carousel.carousel-next-arrow {
        font-size: 1.5rem;
    }
}

/* Carousel FIX */
.carousel > p {
    display: none;
}

.carousel-next-arrow,
.carousel-prev-arrow {
    position: absolute;
    bottom: .5rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: rgba(0, 0, 0, .35);
    color: #fff;
    padding: .25rem .5rem;
    border-radius: .5rem;
    z-index: 5 !important;
    pointer-events: auto;
    cursor: pointer;
}

.carousel-prev-arrow {
    left: .5rem;
}

.carousel-next-arrow {
    right: .5rem;
}

/* New side containers */
.acm-section-right {
    width: 85%;
    height: fit-content;
    margin: 20px 0 20px auto;
    padding: 20px;
    background-color: var(--acm-white-color);
    box-shadow: -5px -3px 10px 2px var(--acm-dark-grey-color);
    border-left: 1px solid rgba(77, 77, 77, 0.5);
    border-top: 1px solid rgba(77, 77, 77, 0.5);
    border-bottom: 1px solid rgba(77, 77, 77, 0.5);
    position: relative;
}

.acm-section-left {
    width: 85%;
    height: fit-content;
    margin: 20px auto 20px 0;
    padding: 20px;
    background-color: var(--acm-white-color);
    box-shadow: 5px -3px 10px 2px var(--acm-dark-grey-color);
    border-right: 1px solid rgba(77, 77, 77, 0.5);
    border-top: 1px solid rgba(77, 77, 77, 0.5);
    border-bottom: 1px solid rgba(77, 77, 77, 0.5);
    position: relative;
}

.acm-section-right h3,
.acm-section-right p,
.acm-section-left h3,
.acm-section-left p {
    position: relative;
    z-index: 3;
}

.acm-section-right > i {
    position: absolute;
    top: -15px;
    left: -15px;
    margin-top: 5px;
    z-index: 1;
    animation: floatIn 1s forwards;
}

.acm-section-left > i {
    position: absolute;
    top: -15px;
    right: -10px;
    margin-top: 5px;
    z-index: 1;
}

@keyframes floatIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* New flex sections */
.acm-flex-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    width: 95%;
    margin: 5px auto;
    padding: 5px;
}

.acm-flex-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    background: var(--acm-white-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.acm-flex-left,
.acm-flex-right {
    flex: 1;
}

.acm-flex-left img,
.acm-flex-right img {
    width: 100%;
    height: auto;
    max-height: 600px;
    aspect-ratio: auto;
    margin: 0;
    display: block;
    object-fit: contain;
    border-radius: 0;
}

@media (max-width: 1000px) and (min-width: 601px) {
    .acm-flex-left,
    .acm-flex-right {
        flex: 1 1 50%;
    }
}

@media (max-width: 600px) {
    .acm-flex-section,
    .acm-flex-box {
        flex-direction: column;
        text-align: left;
    }
    .acm-flex-left,
    .acm-flex-right {
        width: 100%;
    }
}

.acm-flex-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 95%;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--acm-white-color);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    height: auto;
}

.acm-flex-top,
.acm-flex-bottom {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    flex-direction: column;
}

.acm-flex-top img,
.acm-flex-bottom img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

@media (max-width: 1000px) and (min-width: 601px) {
    .acm-flex-top,
    .acm-flex-bottom {
        flex: 1 1 50%;
    }
}

@media (max-width: 600px) {
    .acm-flex-vertical {
        padding: 10px;
    }
    .acm-flex-top,
    .acm-flex-bottom {
        flex: unset;
        width: 100%;
        height: auto;
        flex-direction: column;
        text-align: left;
    }
    .acm-flex-top img,
    .acm-flex-bottom img {
        max-height: 200px;
    }
}

/* Content with icons */
#section-icon {
    color: var(--acm-white-color);
    position: relative;
    top: -32px;
    left: 98%;
}

#section-icon + h3 {
    margin-top: -20px;
}

#black-icon {
    color: var(--acm-black-color);
}

/* Tabs */
.ui-tabs .ui-tabs-nav li {
    border: 2px solid var(--acm-dark-grey-color);
    margin-right: 4px;
    border-radius: 4px 4px 0 0;
    padding: 0.5rem 1rem;
}
  
.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    background: var(--acm-light-grey-color) !important;
    color: var(--acm-black-color) !important;
    border-bottom: 2px solid var(--acm-white-color) !important; 
}

#acm-tabs li {
    background: var(--acm-primary-color);
    border: 1px solid var(--acm-light-grey-color);
    transition: background 0.2s, color 0.2s;
}

#acm-tabs li a {
    color: var(--acm-black-color);
    text-decoration: none;
    transition: color 0.2s;
}

#acm-tabs li:hover,
#acm-tabs li:active,
#acm-tabs li:focus {
    background: var(--acm-dark-primary-color);
}

#acm-tabs li:hover a,
#acm-tabs li:active a,
#acm-tabs li:focus a {
    color: var(--acm-white-color);
}

#acm-tabs li.ui-tabs-active {
    background: var(--acm-dark-primary-color);
}

#acm-tabs li.ui-tabs-active a {
    color: var(--acm-white-color);
}

@media (max-width: 600px) {
    .enhanceable_content.tabs {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
    }
    #acm-tabs {
        display: flex;
        flex-direction: column;
        width: 40%;
        min-width: 120px;
        max-width: 180px;
        margin: 0;
        padding: 0;
        border-radius: 0.5em 0 0 0.5em;
        box-shadow: none;
    }
    #acm-tabs li {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-bottom: 1px solid var(--acm-dark-grey-color);
        border-right: none;
        border-left: none;
        border-top: none;
    }
    #acm-tabs li:last-child {
        border-bottom: none;
    }
    #acm-tabs li a {
        display: block;
        width: 100%;
        padding: 16px 8px;
        box-sizing: border-box;
        text-align: left;
    }
    .enhanceable_content.tabs > div[id^="tab-"] {
        width: 60%;
        margin-left: 2vw;
        border-radius: 0 0.5em 0.5em 0;
        min-height: 200px;
        box-sizing: border-box;
        display: block;
    }
}
  

/* Diagrams */
.acm-diagram {
    width: 95%;
    height: fit-content;
    border: 1px solid var(--acm-dark-grey-color);
    border-radius: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 5px auto;
  }
  
  .acm-diagram-arrow {
    font-size: 3rem;
  }
  
  @media (max-width: 600px) {
    .acm-diagram {
      flex-direction: column;
      height: fit-content;
    }
  
    .acm-diagram-arrow {
      rotate: 90deg;
    }
  }