/* IU Brand CSS */
@import url("https://unpkg.com/rivet-core@2.9.1/css/rivet.min.css");


/* Hide various elements when the user not logged in. Added to the body via JS. */
.tlt-public-user {
    /* Enroll button */
    & a[data-customizationid="enroll-button"],
    /* Add to Cart button */
    #add-remove-cart-button,
    /* Open shopping cart button in top right. */
    button[data-testid="open-shopping-cart-button"],
    /* The bottom section of listing pages containing secondary enroll/cart buttons. */
    #signup-title {
        display: none !important;
    }
}


/**
 * Nav
 */

.tlt-expand-subtitle {
    margin-top: -.75rem;
}

/* Add margin to "Create an Account" link in nav. */
#eds-create-account {
    margin-right: .75rem;
}

/* Add margin to "About" link in nav. */
#eds-about-link {
    margin-right: .75rem;
}

/* Decrease the default margin beneath the "Expand" logo */
#app-header-container span:has(> a[data-customizationid="linked-headerimage"]) {
    margin-bottom: .25rem;
}

/* Prevent IU header logo from going flush to the left on certain screen sizes. */
@media (1080px <= width <= 1200px) {
    .rvt-header-global > .rvt-container-lg {
        margin-left: 1.5rem;
    }
}

/**
 * On smaller screens, keep the catalog dropdown on its own line and wrap the
 * Create an Account / About / Login / Cart row underneath it.
 */
@media (max-width: 768px) {
    span:has(> #tlt-catalog-select) {
        flex-wrap: wrap;
        row-gap: .5rem;
    }

    #tlt-catalog-select {
        flex: 1 0 100%;
        max-width: none;
    }

    .tlt-expand-subtitle {
        margin-top: 0;
    }
}

/**
 * Admin
 */

/* Hide the External Enrollment Redirect field on the Admin > Edit Listing page. */
.ListingDetailsFormSection > span > span:has(input[data-automation="ListingEditCreateDetails__ExternalRedirectUrl"]) {
    display: none;
}

/* New Admin Listings Page: Hide admin actions to set open enrollment and delete listings. */
div[aria-label="Actions"] ul:has(#visibility) > li:not(:first-of-type) {
    display: none;
}


/**
 * Browse (Sub-catalog home pages)
 */

/* Increase size of logos on listing tiles. */
div[data-customizationid="product-card-catalog-logo"] > div {
    height: 40px !important;
}


/**
 * Products
 */

 /* Change Enroll button text to "Enroll Now" */
a[data-customizationid="enroll-button"] > span > span > span:nth-child(2) > span::after {
    content: " Now";
}

/* Increase font size of "You must be logged in to view this listing..." message. */
.enroll-directions {
    font-size: 20px;
}

/* Headings throughout listing descriptions display with underlines as block-level elements. */
div[data-customizationid="product-details-description"] h3 {
    font-weight: bold;
    display: block;
    font-style: normal !important;
    border-bottom: 2px solid #000000;
    font-size: 26px;
    margin-bottom: 20px;
}

/* Hide all enroll/cart buttons if listing is IU-only. Added to the body via JS. */
.tlt-hide-listing-buttons {
    /* Enroll button */
    & a[data-customizationid="enroll-button"],
    /* Add to Cart button */
    #add-remove-cart-button,
    /* The bottom section of listing pages containing secondary enroll/cart buttons. */
    #signup-title {
        display: none !important;
    }
}


/**
 * Footer
 */

/* Hide the sub-catalog copyright info in the footer. */
#app-footer-container ul + span {
    display: none;
}

/* Hide the "Expand" logo in the footer. */
#app-footer-container a[data-customizationid="linked-headerimage"] {
    display: none;
}




/* Custom listing content styles (for HTML edit mode) */
/* ====================================================================================== */
/* ====================================================================================== */

.eds-listing h2,
.eds-listing h3 {
    font-weight:bold;
    display:block;
    font-style:normal !important;
    padding-top:30px;
    border-bottom: 2px solid #000000;
    font-size: 30px;
    margin-bottom:20px;
}


.eds-listing .left {
   width:55%; float:left;
}
.eds-listing .right {
   width:40%; float:right;
}







/* 
========================================================================================================
Begin rules created by eDS Non-Credit Design team, consolidated into root CSS by eDS Web Team July 2020. 

These rules were largely duplicated in various sub-catalog themes throughout Expand. In July 2020,
an effort was made to consolidate these CSS rules into a common place so that we can more easily maintain
them. This ws largely due to the need to revise the styles to be more mobile friendly.

Specific notes:

    - The application of Benton Sans as the font for the description area was consolidated and applied 
    to the existing .container.product-details element, rather than applying it to specific child elements.
    See above.

    - The use of eds-left, mlaw-left, pbh-left, etc is preserved for backward compatibility with 
    existing class names. However, these rules are identical and we should standardize the use of 
    .eds-left and .eds-right going forward.

    - h3 selector simplified to apply to all h3 tags within the description area. See above.

    - Column classes have been added to a < 991px media query below to cause them to stack on smaller screens
    and mobile devices.

    - In the main IU theme's JavaScript, we have moved the ".boxed" div that contains the "at-a-glance" info
    with icons, etc to be at the top of the main description div, before the left/right columns. This way,
    when the divs stack on smaller screens, the at-a-glance icon info is at the top.

======================================================================================================== 
*/

/* Custom columns for course descriptions */
.eds-left,
.mlaw-left,
.pbh-left {
    width:40%; 
    float:left;
}

.eds-right,
.mlaw-right,
.pbh-right {
    display: inline-block; 
    width: 37%;
    padding-left: 3%;
    padding-right: 3%;
    float: left; /* TODO: Float is incompatible with inline block (requires block) */
}

.eds-below{
    display:block;
    clear:both;
}

.eds-note {
    border: 1px solid #eeebeb;
    border-radius: 3px;
    background-color: #fbf6ee;
    padding-left: 2%;
}

.eds-note h3 {
    font-family: "Courier New";
    font-weight: bold;
    display: block;
    font-style: normal !important;
    font-size: 30px;
    letter-spacing: 1px;
}

.eds-note-column1 {
    display: flex;
    float: left;
    width: 10%;
    padding: 10px;
    height: 120px;
    justify-content: center;
}

.eds-note-column2 {
    float: left;
    width: 90%;
    padding: 10px;
    text-align: top;
}

.eds-twoinstructors {
    clear:both;
    padding-bottom: 15%;
}

.boxed {
    border: 5px solid #eeebeb;
    background: #ffffff;
    padding-top: 20px;
    padding-right: 10px;
    padding-bottom: 20px;
    padding-left: 12px;
    width: 20%;
    float: right;
}



/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

.sidebar-text {
    overflow:hidden;
}

#instructor_img{
    margin: 0 2%;
    border-radius: 50%;
    padding-right: 4%;
}

#instructor_img_text_right{
/*   padding-right: 4%;*/
    margin: 0 2% 2%;
    border-radius: 50%;
}
#instructor_img_square{
    margin: 0 2%;
}


@font-face {
    font-family: "eds-icons-font";
    src:url("https://assets.expand.iu.edu/theme/fonts/eds-icons-font.eot");
    src:url("https://assets.expand.iu.edu/theme/fonts/eds-icons-font.eot?#iefix") format("embedded-opentype"),
      url("https://assets.expand.iu.edu/theme/fonts/eds-icons-font.woff") format("woff"),
      url("https://assets.expand.iu.edu/theme/fonts/eds-icons-font.ttf") format("truetype"),
      url("https://assets.expand.iu.edu/theme/fonts/eds-icons-font.svg#eds-icons-font") format("svg");
    font-weight: normal;
    font-style: normal;
}

[data-icon]:before {
    font-family: "eds-icons-font" !important;
    content: attr(data-icon);
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[class^="eds-icons-font-"]:before,
[class*=" eds-icons-font-"]:before {
    font-family: "eds-icons-font" !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    speak: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.eds-icons-font-length:before , .eds-icons-font-department:before , .eds-icons-font-certificate:before , .eds-icons-font-audience:before{
    font-size: 250%;
    padding: 4% 4% 4% 4%;
    vertical-align: bottom;
    color: #000;
    /*background-color: #4A3C31;*/
    border-radius: 50%;
}
.eds-icons-font-audience:before {
    content: "\61";
}
.eds-icons-font-certificate:before {
    content: "\62";
}
.eds-icons-font-department:before {
    content: "\63";
    padding: 3.4% 4.2% 5.4% 4.2%;
}
.eds-icons-font-length:before {
    content: "\64";
    padding: 3.5% 4.24% 3.7% 4.3%;
}

 /*end of style for icon font*/

.boxed b {
    padding-left: 5%;
}
.item2 b {
    padding-left: 5%;
}
.boxed-text {
    padding-left: 25%;
}
.eds-note-line2 a {
    color: #990000;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
/*  grid-gap: 10px;*/
/*  background-color: #2196F3;*/
/*  padding: 10px;*/
}

.grid-container > div {
/*  background-color: lightblue;*/
  text-align: left;
/*  padding: 20px 0;*/
/*  font-size: 30px;*/
}

.item1 {
    text-align: center;
    grid-row-start: 1;
    grid-row-end: 3;
}

.item2 {
    grid-column-start: 2;
    grid-column-end: 4;
}
.item3 {
    grid-column-start: 2;
    grid-column-end: 4;
}

.item1 span, .item1 p {
    display: block;
    width:380%;
    padding: 3.5% 4.24% 3.7% 4.3%;
}

.item4 {
    text-align: center;
    grid-row-start: 1;
    grid-row-end: 3;
    padding-right: 0;
}

.item5 {
    padding-top: 7%;
    padding-left: 0;
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 3;
}
.item4 span, .item4 p {
    display: block;
    width:380%;
    padding: 3.5% 4.24% 3.7% 4.3%;
}

/* E. Scull: Target mobile devices below the 992px width to make description columns stack. */
@media (max-width: 991px) { 
    /* Custom column classes should stack on mobile devices  */
    .eds-left,
    .mlaw-left,
    .pbh-left,
    .eds-right,
    .mlaw-right,
    .pbh-right {
        display: block;
        width: 100%;
        padding: 0;
        float: none;
    }

    /* .boxed class created by non-credit team, contains the icons fonts, course info, etc. */
    .boxed {        
        width: 300px;
        margin: 0 auto;
        float: none;
    }
}


/* =========================================================================================== */
/* End rules created by non-credit team. */
/* =========================================================================================== */