﻿/*=== CMedia ========*/
.CMedia {
    width: 33.33333%;
    margin-left: 0;
    padding-left: 15px;
    box-sizing: border-box;
}

.CMedia__userCourse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.CMedia__title {
    position: relative;
    font-size: 20px;
    line-height: 32px;
    font-weight: 600;
    padding-left: 9px;
    color: #595959;
}

.CMedia__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #e21e28;
}

.CMedia__more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #BFBFBF;
}

.CMedia__more:hover {
    color: #BFBFBF;
}

.CMedia__more::after {
    content: "";
    width: 24px;
    height: 24px;
    background: url('/App/style/arrow_chevron_right_gray.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    align-self: center;
}

.CMedia__courseSection {
    width: 100%;
    height: 228px;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 8px;
}

.CMedia__courseSection--height {
    height: 196px;
}

.CMedia__courseImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.CMedia__courseImg:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.CMedia__courseDetail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.CMedia__courseName {
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #262626;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.CMedia__badgeBlock {
    display: flex;
    flex-wrap: wrap;
}

.CMedia__courseDetail .CMedia__badgeBlock--position {
    position: absolute;
    bottom: 8px;
    right: 8px;
}

.CMedia__badgeBlock--scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.CMedia__badgeBlock--hidden {
    display: none;
}

.CMedia__badge {
    padding: 4px 8px;
    border-radius: 100px;
    margin-right: 4px;
    background-color: #E8F2FB;
    color: #595959;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    flex-shrink: 0;
    white-space: nowrap;
}

.CMedia__badge--red {
    background-color: #FCE9EA;
    color: #E21E28;
    margin-right: 0px;
    margin-left: 4px;
}

.CMedia__courseFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.CMedia__courseAuthor {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #595959;
}

.CMedia__courseButton {
    width: 121px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    text-decoration: none;
    text-align: center;
    padding: 4px 12px;
    background-color: #E21E28;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    box-sizing: border-box;
}

.CMedia__courseButton--hidden {
    display: none;
}

.CMedia__courseButton--userMedia {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 101px;
    padding: 4px 0;
}

.CMedia__courseButton:hover {
    color: #FFFFFF;
    background-color: #b8141d;
}

.fa-play {
    color: #FFFFFF;
    width: 16px;
    height: 16px;
    margin-right: 4px;
}


@media screen and (max-width: 480px) {
    .CMedia {
        width: auto;
        padding-left: 0;
    }

    .CMedia__title {
        font-weight: 600;
        font-size: 18px;
        line-height: 32px;
    }

    .CMedia__more {
        font-weight: 600;
        font-size: 14px;
        line-height: 28px;
    }

    .CMedia__more::after {
        width: 20px;
        height: 20px;
    }

    .CMedia__courseInfo {
        display: flex;
        flex-direction: inherit;
        position: relative;
    }

    .CMedia__userCourse {
        margin-bottom: 8px;
    }

    .CMedia__courseSection {
        width: 40%;
        height: 115px;
        margin-bottom: 0;
        position: static;
    }

    .CMedia__courseWrapper {
        width: 60%;
        padding-left: 8px;
        box-sizing: border-box;
    }

    .CMedia__courseDetail {
        flex-direction: column-reverse;
    }

    .CMedia__badgeBlock--scroll::-webkit-scrollbar {
        display: none;
    }

    .CMedia__badge {
        padding: 2px 8px;
    }

    .CMedia__courseName {
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
    }

    .CMedia__courseFooter {
        position: static;
    }

    .CMedia__courseAuthor {
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
    }

    .CMedia__courseButton {
        width: 101px;
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .CMedia__courseButton--userMedia {
        z-index: 999;
    }
}

/*講座資訊*/
.lecture {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 26px 0; 
}
.lecture__title {
    color: #191919;
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
}
.lecture__more,
.lecture__more--mobile {
    color: #E21E28;
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
}
.lecture__more::after,
.lecture__more--mobile::after {
    content: "";
    width: 12px;
    height: 12px;
    background: url('/App/style/arrow_chevron_right.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: 5px;
}
.lecture__more--mobile {
    display: none;
}
.lecture_cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    box-sizing: border-box;
    margin-bottom: 56px;
}
.lecture_cardItem {
    width: auto;
    height: auto;
    overflow: hidden;
    margin: 0;
    float: none;
    cursor: pointer;
}
.lecture_cardDeadLine {
    white-space: nowrap;
    background: #262626;
    color: #FFFFFF;
    padding: 10px 12px;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}
.lecture_cardCountDown {
    color: #F7BF30;
}
.lecture_cardDeadLine--urgent {
    background: #E21E28;
}
.lecture_cardDeadLine--urgent .lecture_cardCountDown  {
    color: #FFFFFF;
}
.fa-clock-o {
    margin-right: 3px;
}
.lecture_cardContent {
    display: flex;
    width: 100%;
    height: 385px;
    flex-direction: column;
    background-color: #FFFFFF;
    box-sizing: border-box;
    padding: 12px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}
.lecture_cardPic {
    width: 100%;
    height: 54.7%;
    overflow: hidden;
    max-height: 192px;
    flex-shrink: 0;
}
.lecture_cardPic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.lecture_cardPic img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}
.lecture__cardDetails {
    width: auto;
    margin-top: 12px;
}
.lecture__cardTitle a {
    font-family: Arial;
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    color: #191919;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.lecture__cardTeacher a[href="#"] {
    pointer-events: none;
    color: #191919;
}
.lecture__cardUserIcon,
.lecture__cardCalendarIcon {
    margin-right: 3px
}

.lecture__cardWrapper {
    display: flex;
    align-items: center;
    margin-top: 10px;
    color: #191919;
    font-weight: 400;
}
.lecture__cardWrapper {
    align-items: flex-start;
}
.lecture__cardWrapper--teacher {
    margin-top: 4px;
}
.lecture__cardTeacher,
.lecture__cardTime {
    display: flex;
    align-items: center;
}
.lecture__showTime {
    max-width: 177px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: end;
}
.lecture__cardTeacherName {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #1480D9;
}
.lecture__cardTeacherName:hover {
    color: #1480D9;
}
.lecture__cardLabel--full {
    display: inline-block;
    margin-top: 6px;
    color: #595959;
    background-color: #E4E4E4;
    padding: 6px 10px;
    border-radius: 4px;
}
.lecture__cardLabel--nearlyFull {
    display: inline-block;
    margin-top: 6px;
    color: #E21E28;
    background-color: #FCE9EA;
    padding: 6px 10px;
    border-radius: 4px;
}
.lecture__cardLabel--fullMobile {
    display: none;
}
.lecture__cardLabel--nearlyFullMobile {
    display: none;
}
@media (max-width: 1200px) {
    .lecture_cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        box-sizing: border-box;
        margin-bottom: 56px;
    }

    .lecture_cardItem:nth-last-child(-n+3) {
        display: none;
    }
}
@media (max-width: 768px) {
    .lecture {
        margin: 40px 0 12px 0;
    }

    .lecture__title {
        color: #000000;
        font-weight: 700;
        font-size: 18px;
        line-height: 28px;
    }

    .lecture_cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .lecture_cardDeadLine {
        line-height: 20px;
    }

    .lecture_cardItem:nth-last-child(-n+3) {
        display: block;
    }

    .lecture_cardContent {
        flex-direction: row;
        height: auto;
        gap: 8px;
    }

    .lecture_cardPic {
        width: 20%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lecture_cardPic img {
        height: 48px;
    }

    .lecture__cardDetails {
        margin-top: 0;
        width: 80%;
    }

    .lecture__cardTeacher {
        font-size: 12px;
    }

    .lecture__cardTeacher,
    .lecture__cardTime {
        font-size: 12px;
    }

    .lecture__cardTeacherName {
        font-size: 12px;
        line-height: 18px;
    }
    .lecture__showTime {
        font-size: 12px;
    }
    .lecture__showTime {
        align-self: end;
    }

    .lecture__more {
        display: none;
    }

    .lecture__moreWrapper {
        display: flex;
        justify-content: flex-end;
    }

    .lecture__more--mobile {
        display: flex;
        font-size: 14px;
        line-height: 20px;
    }

    .lecture__cardLabel--full,
    .lecture__cardLabel--nearlyFull {
        display: none;
    }

    .lecture__cardLabel--fullMobile {
        width: 100%;
        display: inline-block;
        margin-top: 8px;
        color: #595959;
        background-color: #E4E4E4;
        padding: 2px 8px;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        text-align: center;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .lecture__cardLabel--nearlyFullMobile {
        width: 100%;
        display: inline-block;
        margin-top: 8px;
        color: #E21E28;
        background-color: #FCE9EA;
        padding: 2px 8px;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
        text-align: center;
        border-radius: 4px;
        box-sizing: border-box;
    }
}

.feature {
    display: flex;
}

.slider, .fbEmbed {
  box-sizing: border-box;
  float: none;
}


.slider {
  width: 66.6666%;
  height: auto;
  display: flex;
}

.fbEmbed {
  width: 33.33333%;
  margin-left: 0;
  padding-left: 15px;
  box-sizing: border-box;
}

.sliderNav {
  width: calc(100% - 528px);
  position: static;
}

.slider .tabContGroup {
  width: 528px;
}

.slider .tab-content {
  width: 100%;
}

.tab-content > a > img {
  width: 100%;
  height: auto;
}

.ind-tab-ctr {
  overflow: hidden;
}

.pd-out {
  /* display: flex;
  gap: 15px;
  flex-wrap: wrap;
  box-sizing: border-box; */
  display: grid;
  grid-template-columns: 32.5% 32.5% 32.5%;
  gap: 15px;
}

.pd {
  width: auto;
  /* width: 32.5%; */
  margin-left: 0;
  box-sizing: border-box;
}

.app-hotbooks-area {
    position: relative;
}

.app-hotbooks-area .btn {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}

.app-hotbooks-area .btn-left {
    left: 0;
}

.app-hotbooks-area .btn-right {
    right: 0;
}

.app-hotbooks-area .btn img {
    pointer-events: none;
}

.app-hotbooks-area .btn:hover {
    opacity: .8;
}

ul.lineup {
    display: flex;
    overflow: auto;
    scroll-behavior: smooth;
}

ul.lineup::-webkit-scrollbar {
    display: none;
}

ul.lineup li {
    width: 234px;
    min-width: 20%;
    text-align: center;
}

ul.lineup p.ellipsis, ul.mblineup p.ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #000;
}

ul.mblineup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

ul.mblineup li {
    width: calc(50% - 5px);
}

.app img {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3%;
    width: 25%;
    height: auto;
    box-sizing: border-box;
}

.app img.appFull {
    position: static;
    padding: 0;
    width: 100%;
    aspect-ratio: 0.75;
}

.app a {
  padding: 0;
  height: auto;
}

ul.mblineup a {
    padding: 10px;
    box-sizing: border-box;
    height: 100%;
}

.app2 a .appCtnr {
    height: auto;
    margin-left: 25%;
    box-sizing: border-box;
    border: none;
    position: static;
    width: auto;
}

.app2 a:hover .appCtnr {
  margin-left: 0;
  width: 100%;
  padding-left: 25%;
}

.app2 a:hover .appTT {
  white-space: normal;
  height: 21px;
}

.exCtnr {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.exchange {
  padding: 1em;
}

.ex {
  width: auto;
  height: auto;
  margin: 0;
  float: none;
}

.ex:hover .ex1 {
  display: none;
}

.ex:hover .ex2 {
  display: block;
}

.ex1, .ex2 {
  position: static;
  height: 100%;
  width: auto;
}

.ex1 img {
  display: inline-block;
}

@media screen and (max-width: 1200px) {
  .main {
    max-width: 1200px;
    width: auto;
    margin-left: 15px;
    margin-right: 15px;
  }
  
}

@media screen and (max-width: 1024px) {
  .main {
    max-width: 1200px;
    width: auto;
    margin-left: .667em;
    margin-right: .667em;
  }

  .exchange {
    padding: .667em;
  }

  .pd-out, .exCtnr {
    gap: 10px;
  }

  .app-ad {
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .slider .tabContGroup {
    width: 100%;
  }

}

@media screen and (max-width: 768px) {
  .pd-out {
    grid-template-columns: 49% 49%;
  }

  .exCtnr {
    grid-template-columns: repeat(2, 1fr);
  }

  .ex:nth-child(3n) {
    margin-right: 0;
  }
}

@media screen and (max-width: 480px) {
  .feature {
    flex-direction: column;
  }

  .slider, .fbEmbed {
    float: none;
    width: auto;
  }

  .slider .tabContGroup {
    aspect-ratio: 528 / 350;
  }

  .pd-out, .exCtnr {
    grid-template-columns: repeat(1, 1fr);
  }

  .app2 a .appD {
    height: 62px;
  }

  .pd {
    margin-top: 0;
  }

  .app2 a .appTT {
    text-overflow: inherit;
    white-space: inherit;
  }
}

@media screen and (max-width: 360px) {
  .pd {
    margin-bottom: 0;
  }
}