/* Custom, iPhone Retina */
@media only screen and (min-width: 320px) {
  /* week list */
  ol#week-links {
    width: 240px;
  }
}

@media only screen and (min-width: 378px) {
  /* week list */
  ol#week-links {
    width: 300px;
  }
  #tabs-wrapper .tab-link .step-title-wrap .icon {
    display: inline-block;
    vertical-align: middle;
  }
  #tabs-wrapper .tab-link-learning .step-title-wrap .icon {
    width: 18px;
  }
  #tabs-wrapper .tab-link-cpd .step-title-wrap .icon {
    width: 25px;
  }
}

/* bespoke */
@media only screen and (min-width: 480px) {
  /* other learning materials page */
  .learning-qtnnaire .inpSet input {
    margin-left: 0;
  }

  .learning-qtnnaire .AJAXembQSubmit {
    width: 100px;
  }

  /* discussion notification email */
  .notify-emails #QUESTIONNAIRECONT {
    display: table-row;
  }

  .notify-emails .questFrm {
    display: table-cell;
    vertical-align: middle;
  }

  .notify-emails .quBlk {
    margin: 0;
  }

  /* profile page */
  body.ImagoadmLogin.modeTU #regUser tr td.inlineImg div {
    display: block;
  }
}

/* Extra Small Devices, Phones */
@media only screen and (min-width: 480px) {
  /* additional section */
  .additional a {
    overflow: hidden;
    height: 140px;
    position: relative;
  }

  .additional a h3 {
    display: inline-block;
  }

  .additional a .text {
    background-color: rgba(255, 255, 255, 0.8);
    max-width: 50%;
    float: right;
    padding: 12px;
    position: absolute;
    bottom: 0;
    right: 0;
  }

  /* what do I do page */
  .what-do-I-do-section ol li p {
    vertical-align: middle;
  }

  .what-do-I-do-section ol li,
  .what-do-I-do-section ol li:nth-child(2),
  .what-do-I-do-section ol li:nth-child(3) {
    background-position: left center;
  }

  /* certificate */
  .certificate-page .content {
    padding-top: 100px;
  }

  .certificate-page .acpd-logo {
    margin-bottom: 50px;
  }

  .certificate-page .stamp-wrap {
    margin-top: 30px;
  }
}

/* bespoke */
@media (min-width: 500px) {
  #cookieNotice {
    bottom: 68px;
  }
  #cookieContainer .cookie_content {
    text-align: left;
  }
  #cookieContainer .cookie_content > p {
    float: left;
    width: 80%;
    padding-right: 10px;
    margin-bottom: 0;
  }
  #cookieContainer input#cookie_button {
    padding: 10px 25px;
    float: right;
    width: 20%;
  }

  .activity-card-other-resources .image-type{
    background-image: url("../images/types/other-resources.jpg");
  }
  .activity-card-questionnaire .image-type {
    background-image: url("../images/types/questionnaire.jpg");
  }
  
  .activity-card-article .image-type {
    background-image: url("../images/types/article-blog.jpg");
  }
  
  .activity-card-online-courses .image-type {
    background-image: url("../images/types/online-courses.jpg");
  }
  .activity-card-quiz .image-type {
    background-image: url("../images/types//quiz.jpg");
  }
  .activity-card-activity .image-type {
    background-image: url("../images/types/activity.jpg");
  }
  .activity-card-bites .image-type {
    background-image: url("../images/types/bites.jpg");
  }
  .activity-card-cpd-reflection .image-type {
    background-image: url("../images/types/cpd-reflection.jpg");
  }
  .activity-card-experience .image-type {
    background-image: url("../images/types/experience.jpg");
  }
  .activity-card-webinar .image-type {
    background-image: url("../images/types/webinar.jpg");
  }
}

/* bespoke */
@media only screen and (min-width: 600px) {
  .continue-pathway {
    padding: 40px 20px;
  }
  .continue-pathway.show-continue-btn {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .continue-pathway .continue-btn-container a {
    font-size: 18px;
  }

  .continue-pathway .continue-text {
    margin-right: 30px;
    padding-bottom: 0px;
  }
  .content .ul-column {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 30px 0;
  }
  .content .ul-column .list-item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 45%;
    flex: 0 0 45%;
  }
}

/* Small Devices, Tablets */
@media only screen and (min-width: 768px) {
  #tabs-wrapper .tabs-menu a.tab-link {
    font-size: 16px;
    background-size: 45px;
  }

  .navbar-collapse .logos {
    display: block;
  }

  .logos {
    margin-top: 0;
    margin-bottom: 0;
    float: right;
  }

  .logos .acpd-logo {
    max-width: 255px;
    padding: 4px 0;
  }

  .additional-nav {
    display: block;
  }

  .navbar-header {
    float: left;
  }

  .navbar-header .logos {
    display: none;
  }
  .navbar-toggle {
    display: none;
  }
  .navbar-nav .li-log-out {
    display: none;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-nav {
    background-color: transparent;
    border-top: none;
    margin-bottom: 30px;
    height: auto;
    padding: 0;
  }

  .navbar-nav li {
    margin: 0 15px;
  }

  .navbar-nav li:first-child {
    margin-left: 5px;
  }

  .navbar-nav li a {
    font-size: 14px;
    color: #000;
    padding: 5px 0;
    -webkit-transition: border ease 0.5s;
    -o-transition: border ease 0.5s;
    transition: border ease 0.5s;
    border-bottom: 2px solid transparent;
    border-top: none;
  }

  .nav > li > a {
    border-bottom: 6px solid transparent;
  }
  .nav > li > a:focus,
  .nav > li > a:hover {
    background-color: transparent;
  }

  .nav > li > a:hover {
    border-bottom: 6px solid #c80000;
  }

  /* promo area */
  .promo-inner {
    min-height: 424px;
  }

  .promo-inner-content {
    width: 50%;
    top: 0px;
    left: 0;
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 30px 0 15px;
  }

  .promo h1 {
    color: #fff;
    background-color: transparent;
    font-size: 28px;
    border-bottom: 1px solid #fff;
    display: inline-block;
    padding-bottom: 16px;
  }

  .promo p {
    color: #fff;
    background-color: transparent;
    font-size: 18px;
    padding-top: 16px;
  }

  .home-page .nav li.home-nav a,
  .syllabus-page .nav li.syllabus-nav a,
  .facilitator-page .nav li.facilitator-nav a,
  .what-do-i-do-page .nav li.what-do-i-do-nav a,
  .completion-area-page .nav li.completion-area-nav a,
  .quotients-area-page .nav li.quotients-nav a,
  .update-profile-page .nav li.my-profile-nav a {
    border-bottom: 6px solid #c80000;
  }

  .home-page .nav li.home-nav {
    margin-left: 0;
  }

  /* Activity type */
  .activity-type-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .activity-type-container .step {
    text-align: center;
    margin-left: 0;
  }

  .activity-type-container .learning-materials .step-text-wrap,
  .activity-type-container .cpd-reflection .step-text-wrap {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .activity-type-container .step-text-wrap {
    top: -24px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 85px;
  }

  .activity-type-container .learning-materials::before {
    background: #f68c8c; /* Old browsers */ /* FF3.6-15 */
    background: -webkit-linear-gradient(
      left,
      #f68c8c 0%,
      #f68c8c 50%,
      #c80000 50%,
      #c80000 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#f68c8c),
      color-stop(50%, #f68c8c),
      color-stop(50%, #c80000),
      to(#c80000)
    );
    background: -o-linear-gradient(
      left,
      #f68c8c 0%,
      #f68c8c 50%,
      #c80000 50%,
      #c80000 100%
    );
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#f68c8c),
      color-stop(50%, #f68c8c),
      color-stop(50%, #c80000),
      to(#c80000)
    );
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#f68c8c),
      color-stop(50%, #f68c8c),
      color-stop(50%, #c80000),
      to(#c80000)
    );
    background: linear-gradient(
      to right,
      #f68c8c 0%,
      #f68c8c 50%,
      #c80000 50%,
      #c80000 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f68c8c', endColorstr='#c80000',GradientType=1 ); /* IE6-9 */
  }

  .activity-type-container .cpd-reflection::before {
    background: #c80000; /* Old browsers */ /* FF3.6-15 */
    background: -webkit-linear-gradient(
      left,
      #c80000 0%,
      #c80000 50%,
      #f68c8c 50%,
      #f68c8c 100%
    ); /* Chrome10-25,Safari5.1-6 */
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#c80000),
      color-stop(50%, #c80000),
      color-stop(50%, #f68c8c),
      to(#f68c8c)
    );
    background: -o-linear-gradient(
      left,
      #c80000 0%,
      #c80000 50%,
      #f68c8c 50%,
      #f68c8c 100%
    );
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#c80000),
      color-stop(50%, #c80000),
      color-stop(50%, #f68c8c),
      to(#f68c8c)
    );
    background: -webkit-gradient(
      linear,
      left top,
      right top,
      from(#c80000),
      color-stop(50%, #c80000),
      color-stop(50%, #f68c8c),
      to(#f68c8c)
    );
    background: linear-gradient(
      to right,
      #c80000 0%,
      #c80000 50%,
      #f68c8c 50%,
      #f68c8c 100%
    ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c80000', endColorstr='#f68c8c',GradientType=1 ); /* IE6-9 */
  }

  .activity-type-container .step-text-wrap::before,
  .activity-type-container .cpd-reflection::after {
    content: "";
    display: block;
    height: 17px;
    width: 12px;
    position: absolute;
  }

  .activity-type-container .step-text-wrap::before,
  .activity-type-container .cpd-reflection .step-text-wrap::before {
    left: -5px;
    top: 17px;
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0);
    transform: rotate(0);
  }

  .activity-type-container .cpd-reflection::after {
    right: -3px;
    top: -7px;
  }

  .activity-type-container .learning-materials .step-text-wrap::before,
  .activity-type-container .cpd-reflection::after {
    background: url("../images/svg/pink-arrow.svg") no-repeat;
  }

  .activity-type-container .cpd-reflection .step-text-wrap::before {
    background: url("../images/svg/red-arrow.svg") no-repeat;
  }

  .activity-type-container .step::before {
    content: "";
    display: block;
    height: 2px;
  }

  .activity-type-content {
    padding: 0 30px;
    margin: 45px 0 25px;
  }

  .activity-type-content h3 {
    text-align: center;
  }

  .learning-materials .activity-type-content {
    border-left: 0;
    padding-top: 0;
  }

  .cpd-reflection .activity-type-content {
    padding-top: 0;
  }

  /* Activity card */
  .activity-card-header {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    margin-bottom: 30px;
  }

  .activity-card-header-text {
    padding-left: 30px;
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
  }

  .activity-card-header .image-type {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 280px;
    flex: 0 0 280px;
    height: auto;
    margin-bottom: 0;
    min-height: 170px;
  }

  .activity-card-header h2,
  .activity-card-course h2 {
    font-size: 24px;
    line-height: 32px;
  }

  .activity-card-header h2 {
    text-align: left;
  }

  .activity-card-course {
    padding-right: 60px;
  }

  .activity-card-course h2 .author {
    font-size: 14px;
  }

  /* your-facilitator-wrap */
  .your-facilitator-wrap .facilitator-wrap {
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .your-facilitator-wrap .facilitator-wrap header {
    padding: 20px 0 0 30px;
    border: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 157px;
    flex: 0 0 157px;
  }

  .your-facilitator-wrap .facilitator-wrap .contact-wrap {
    border-right: 2px solid #c8c8c8;
    padding-right: 30px;
  }

  .your-facilitator-wrap .contact-wrap h3 {
    display: none;
  }

  .your-facilitator-wrap .facilitator-wrap-content {
    width: 100%;
    padding: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
  .your-facilitator-wrap .facilitator-wrap-content .text {
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
  }

  .your-facilitator-wrap .text h3 {
    display: block;
  }

  /* Syllabus */

  .syllabus {
    width: 80%;
    margin: 30px auto;
  }

  .syllabus-row-header .empty {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 162px;
    flex: 0 0 162px;
  }

  .syllabus-hour {
    padding: 20px 80px 20px 20px;
  }

  /* profile page */
  .ImagoadmLogin.modeTU .container .row > div,
  .ImagoadmLogin.modeVAL .container .row > div {
    padding-right: 15px;
    padding-left: 15px;
    margin-top: 0;
  }

  /* completion certificate */
  .certificate-page .content {
    padding-top: 0;
  }

  .certificate-page .logo-wrap {
    padding: 35px 20px 100px 20px;
    overflow: hidden;
  }

  .certificate-page .acpd-logo {
    float: right;
    margin-top: 15px;
  }
  
  .certificate-page h1 {
    margin-top: 100px;
    font-size: 40px;
  }

  .certificate-page h2 {
    margin: 50px 0;
    font-size: 24px;
  }

  .certificate-page .stamp-wrap {
    margin: 50px 0 150px 0;
  }

  .certificate-page h3 {
    font-size: 18px;
  }
  #cookieNotice .cookie_content {
    text-align: center;
  }
  #cookieNotice .cookie_content > p {
    margin: 12px 35px 12px 0;
    display: inline-block;
    float: none;
    width: auto;
  }
  #cookieNotice input#cookie_button {
    width: auto;
    float: none;
    display: inline-block;
  }

  .content .info {
    font-size: 18px;
  }
  .content h1 {
    font-size: 36px;
  }

  .content h2 {
    font-size: 28px;
  }

  .content h1 .welcome {
    font-size: 20px;
  }

  .content.completion-area .completion-panel {
    width: 80%;
  }

  .content.completion-area .completion-panel .btn {
    margin-top: 30px;
    margin-bottom: 50px;
  }

  .bottom-navigation {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .btn {
    font-size: 18px;
    padding: 12px 65px;
  }

  .btn-next,
  .btn-back {
    padding: 10px 12px;
  }

  .btn-back {
    margin-bottom: 0;
  }
  .btn-go {
    padding: 8px 20px;
  }

  .reflection .quBlk p {
    padding: 16px 25px;
  }

  blockquote.top-border-icon {
    width: 70%;
  }

  footer a.produced-by {
    position: absolute;
    right: 15px;
    top: 10px;
    margin-top: 0;
  }
  input[type="submit"].cpd-bite-link {
    font-size: 18px;
    padding: 8px 35px 8px 25px;
    background-position: 74% 50%;
  }
}

/* Medium Devices, Desktops */
@media only screen and (min-width: 992px) {
  .logos .acpd-logo {
    max-width: 335px;
    padding: 0;
  }
  .facilitator-wrap h3 {
    font-size: 22px;
  }

  /* week list */
  ol#week-links {
    width: 260px;
  }

  ol#week-links li a {
    width: 44px;
    height: 44px;
    margin: 4px;
  }

  ol#week-links li a .inner-circle {
    height: 38px;
    width: 38px;
  }

  ol#week-links li a .inner-circle::before {
    height: 38px;
    width: 38px;
  }

  /* alternative learning materials page */
  .learning-qtnnaire td {
    display: table-cell;
  }

  .learning-qtnnaire .frmLab {
    min-width: 288px;
    width: 50%;
  }

  .learning-qtnnaire .inpSet {
    margin-top: 20px;
  }

  #comments-container
    .comment-thread
    li.cmt-pinned
    > .comment-container
    .comment-content
    p {
    font-size: 12px;
    line-height: 16px;
  }
  body.home-page .content .hour-col-1 {
    padding-right: 15px;
  }
  body.home-page .content .hour-col-2 {
    padding-left: 15px;
  }
  body.home-page .hour-panel-image {
    height: 200px;
    background-size: cover;
  }
  body.home-page .hour-col-1 .hour-panel-image {
    background-position: top;
  }
  body.home-page .hour-col-2 .hour-panel-image {
    background-position: top right;
  }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width: 1200px) {
  /* week list */
  ol#week-links {
    width: 330px;
    margin: 0 auto;
  }

  ol#week-links li a {
    width: 54px;
    height: 54px;
    margin: 6px;
  }

  ol#week-links li a .inner-circle {
    width: 48px;
    height: 48px;
  }

  ol#week-links li a .inner-circle::before {
    width: 48px;
    height: 48px;
  }

  /* alternative learning materials page */
  .learning-qtnnaire td,
  .learning-qtnnaire .frmLab {
    width: 355px;
  }

  .sticky-sidebar-inner {
    min-width: 360px;
  }
}

/* learning-cycle TabbyTab */

@media (min-width: 990px) {
  .learning-cycle .jqTabbyTab {
    margin: 25px 1%;
  }
}

/* Large Devices, Wide Screens */

@media (max-width: 1200px) and (min-width: 992px) {
  .learning-cycle .jqTabbyTab {
    margin: 25px -1.5%;
    border: 1px solid #dadada;
  }
}

@media (min-width: 580px) {
  .learning-cycle .jqTabbyTab {
    max-width: 165px !important;
  }
}

/* Medium Devices, Desktops */

@media (max-width: 990px) {
  .learning-cycle .jqTabbyTab {
    margin: 25px 7%;
  }
}

/* Small Devices */

@media (max-width: 580px) {
  .learning-cycle .jqTabbyTab {
    width: 100%;
    margin: 2px 1%;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    height: auto;
    padding: 18px;
    text-align: left;
  }

  .learning-cycle span.jqTabbyTab span {
    display: inline-block;
    font-size: 25px;
  }

  span.stage1,
  span.stage2,
  span.stage3,
  span.stage4 {
    padding-right: 25px;
  }
}
