/* Accordion Header */
#customAccordion .accordion-button {
    background-color: #f1f4f9 !important;
    font-weight: 600;
    color: #153d76;
    transition: all 0.3s ease;
  }
  .text-right.my-1{
    text-align: right !important;
  }
  #customAccordion td:nth-child(3) {
    word-break: keep-all; 
  }
  /* Hover effect */
  #customAccordion .accordion-button:hover {
    background-color: #e6ecf3 !important;
    color: #102a53;
  }
  
  /* Active/expanded accordion header */
  #customAccordion .accordion-button:not(.collapsed) {
    background-color: #dee8f5 !important;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
  }
  
  /* Percentage badge */
  #customAccordion .accordion-button .badge {
    background-color: #153d76;
    padding: 0.4em 0.75em;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  
  /* Accordion container */
  #customAccordion .accordion-item {
    border: none;
    border-radius: 8px;
    overflow: hidden;
  }
  
  /* Accordion body */
  #customAccordion .accordion-body {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
  }
  
  
   #customAccordion .table th {
    background-color: #f1f4f9 !important;
    color: #333 !important;
    font-weight: 600 !important; 
    border-bottom: 2px solid #dee2e6;
  }
  
  footer.d-flex.border-top.py-3.px-4{
    padding-top: 0 !important;
    padding-bottom:0 !important;
  }
  .loaded-sidebar-modal:has(.text-center.mb-3),
  .loaded-sidebar-modal:has(.popupLinks), .loaded-sidebar-modal:has(.alma)  {
      max-width: 300px;
  }
  .loaded-sidebar-modal:has(.attendance-heading){
      max-width: 95vw;
      max-height: 94vh;
  }
  p.alma{
      padding-top:20px;
  }
  .certificate-wrapper li a{
      color: #15376d !important;
      font-weight:500 !important;
  }
  .certificate-wrapper li, .popupLinks li{
          background: #f4f7fb;
      border: 1px solid #e0e6ef;
      border-radius: 6px;
      box-shadow: 0 1px 4px rgba(21, 55, 109, .06);
      cursor: pointer;
      display: block;
      font-size: 14px;
      font-weight: 600;
      padding: 10px 18px;
      text-decoration: none;
      transition: background .2s, color .2s, box-shadow .2s;
      min-width:200px;
  }
  .popupLinks ul, .certificate-wrapper ul{
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      gap:10px;
      padding: 0 !important;
      margin: 0 !important;
      min-width:200px;
  }
  .popupLinks li{
      list-style:none;
      text-align:center;
  }
  .popupLinks li a{
      list-style:none;
      color:#15376d;
      text-align:center;
      font-weight:600;
  }
  .quick-links a {
      color: #15376d;
  }
  tr.accordion-toggle:hover {
      color: #15376d !important;
  }
  .theader{
      background: #15376d !important;
  }
  body{
      overflow-y: hidden !important;
      overflow-x: hidden !important;
  }
  .triangle-left {
      width: 0;
      height: 0;
      border-left: 9px solid transparent;
      border-right: 9px solid transparent;
      border-bottom: 8px solid #fff;
      transform: rotate(90deg) !important;
      margin: 4px;
      margin-top: 10px;
  }
  
  
  .sidebar-column {
      height: fit-content;
      height: -moz-fit-content;
      padding: 20px 10px !important;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 5px;
      overflow: hidden;
      margin: 0 0 0px 0;
      max-width: 260px !important;
      min-width: 260px !important;
      margin-right: 0px;
  }
  footer.footer{
      flex-direction: column;
  }
  footer.footer .flex-grow-1{
      /* text-align: right; */
      display: flex;
      justify-content: space-between;
  }
  footer.footer .flex-grow-1 .faq-div{
     margin-left: 20px;
     margin-top: 12px;
  }
  footer.footer .flex-grow-1 .faq-div a{
      color: #15376d;
      font-weight: 600;
      font-size: 14px;
      line-height: 120%;
  }
  .flex-grow-1 svg{
      height: 16px;
      padding-right: 6px;
  }
  a.faq_tag::before {
      content: "|";
      padding: 0 7px;
      padding-left: 12px;
  }
  a.student-handbook::before {
      content: "|";
      padding: 0 7px;
      padding-left: 12px;
  }
  
  a.faq_tag {
      text-transform: capitalize;
  }
  footer.footer p{
      font-size: 0.6875em;
      color: #767676;
      text-align: left;
  }
  .btn-inverse-primary:not(:disabled):not(.disabled):hover {
      background-color: #f4f7fb !important;
  }
  .table-responsive .table th {
      word-break: keep-all !important;
    }
  @media (min-width: 320px) and (max-width: 480px) {
     
      footer .container-fluid{
          padding: 0;
      }
      footer img{
          max-height: 56px;
          width: 109px;
      }
      footer p{
          margin-top: 20px;
      }
      .masquerade-bar{
          flex-wrap: wrap;
          gap: 10px;
      }
      .masquerade-form-input input{
          width: 95% !important;
      }
      footer .container-fluid.d-flex{
          flex-direction: column;
          position: relative;
      }
      footer a.edx-tag{
          position: absolute;
          right: 0px;
          top: 0;
      }
      footer.footer .flex-grow-1 .faq-div{
          margin-left: 0;
      }
      footer .flex-grow-1{
          flex-direction: column;
      }
      a.faq_tag, a.student-handbook {
          width: 100%;
          display: inline-block;
      }
      a.conditions::after, a.faq_tag::after, a.student-handbook::after {
          content: "";
          padding: 0;
      }
      a.conditions{
          display: block;
      }
  }
  
  #dashboard-content .row{
      justify-content: space-around !important;
  }
  #dashboard-content .row.dashboard-resume-card{
      justify-content: flex-start !important;
  }
  
  .fa-spinner {
      display: inline-block;
      width: 30px !important;
      height: 30px !important;
      border: 3px solid rgba(0, 0, 0, 0.3);
      border-radius: 50%;
      border-top-color: #000;
      animation: spin 1s ease-in-out infinite !important;
    }
     /* attendance start */
     .present_dot,
     .late_dot,
     .absent_dot,
     .excused_dot {
       font-size: 2rem;
       line-height: 1;
       margin-right: 6px;
       vertical-align: middle;
       display: inline-block;
       transform: translateY(-5px);
     }
     .present_dot { color: #A5CB52; }
     .late_dot { color: #FB8537; }
     .absent_dot { color: #E86C4A; }
     .excused_dot { color: #FEED72; }
     
    .accordion{
      max-height: 500px;
      overflow-y: auto;
      border-radius:0px !important;
    }
    .col.fs-5{
      font-weight:600;
  }
  .accordion-button {
      border-radius:0px !important;
  }
    .accordion-collapse.collapse {
      display: none;
      transition: all 0.3s ease;
    }
    
    .accordion-collapse.show {
      display: block;
    }
    
    .accordion-button {
      background-color: #f8f9fa;
      cursor: pointer;
    }
    
    .accordion td{
      /* padding-top: 0 !important;
      padding-bottom: 0 !important; */
      vertical-align: middle;
    }
    .attendance_dot {
      width: 30px;
      padding-left: 10px !important;
    }
    .anychart-credits{
      display: none;
    }
    .accordion-body{
      background: #f5f5f5;
    }
    /*  attendance end */
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }
    .fa-spinner:before{
      content: "" !important;
    }
  /* Course page footer css start */
  
  @media screen and (max-width:490px) {
      .container-fluid.wrapper-footer .navbar-nav {
          display: inline-block;
          padding-left: 0;
      }
  
      .container-fluid.wrapper-footer .navbar-nav img{
          height: 36px !important;
      }
  
      .container-fluid.wrapper-footer .footer-about-openedx {
          position: absolute;
          bottom: 50px;
          right: 0px;
      }
  
      .container-fluid.wrapper-footer footer .container .row{
          width: 100% !important;
          margin-right: 0px;
          margin-left: 0px;
      }
  
      .container-fluid.wrapper-footer footer .container, .container-fluid.wrapper-footer footer .container .row .col-md-10{
          padding-right:0 !important;
          padding-left: 0 !important;
      }
  
      .container-fluid.wrapper-footer footer{
          margin-top: 7px;
      }
  
  }
  
  
  
  /* Course page footer css end */
  
  
  @media screen and (min-width:600px) {
      footer{
          margin-top:15px !important;
      }
  }
  .note_tab_footer{
      margin-top: 0 !important;
  }
  
  .note_time_stamp_clamp{
      display: -webkit-box;
      overflow: hidden;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
  }
  
  
  footer .container-fluid.d-flex{
      align-items: center;
  }
  .faq-div{
      flex-wrap: wrap;
  }
  @media(max-width:1024px){
      .faq-div{
          flex-direction:column;
          margin-top:20px;
          align-items:start !important;
      }
      footer .container-fluid.d-flex{
          align-items: start;
      }
      .support-mail::before{
          display:none;
      }
  }
  /* ptc popup */
  .ptc-popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 80%;
      height: 80%;
      background-color: white;
      border-radius: 10px;
      padding: 20px;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      /* display: none; */
  }
  .ptc-popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
      /* display: none; */
  }
  .ptc-popup button {
      background-color: #4caf50;
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 5px;
      cursor: pointer;
  }
  .ptc-popup button:hover {
      background-color: #45a049;
  }
  
  #ptc-popup{
      width: 90vw !important;
      left: 34% !important;
      height: 87vh !important;
      transform: translate(-32%, 2%) !important;
      margin-left: 0 !important;
  }
  #ptc-popup iframe{
      width: 100% !important;
      height: 100% !important;
      min-height: 78vh !important;
  }
  @media (max-width:768px){
      .ptc-popup {
          width: 95%;
          height: 80%;
          padding:5px;
      }
      #ptc-popup{
          height: 83vh !important;
      }
      #ptc-popup iframe{
          min-height: 76vh !important;
      }
  }
  body:has(img[src*="cmu-ts-logo.png"]) #root{
      div.support-mail::before{
          content:'';
      }
  }
  .ptc-container, .non-ptc-container{
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      position: absolute;
      z-index: 99999999999;
      background: rgba(0, 0, 0, 0.5);
  }
  .non-ptc-container iframe{
     width: 40%;
      height: 70vh;
      border-radius: 10px;
  }
  .ptc-container iframe{
      width: 90%;
      height: 80vh;
      border-radius: 10px;
  }
  #root .nav-small-menu a:nth-child(1) {
      font-weight: 600;
      justify-content: center !important;
      text-align: left;
  }
   #root .nav-small-menu a:nth-child(1)::after {
     content:none;
  }
  @media (max-width: 768px) {
      #accenture_popup {
        width: 350px;
        /* overflow-y: auto !important;
        overflow-x: hidden !important; */
      }
      #root .nav-small-menu{
          top: 82px !important;
          background: #fff;
      }
    }
    
    /* Desktops and up */
    @media (min-width: 992px) {
      #accenture_popup {
        width: 700px;
      }
    }
    
    #accenture_popup{
        position: fixed !important;
        max-height: 90vh !important;
        /* overflow-y: auto !important;
        overflow-x: hidden !important; */
    }
      .learner-variant-header a img{
          min-height: 45px !important;
      }
    
  @media only screen and (min-width: 374px) and (max-width: 376px) and (min-height: 650px) and (max-height: 680px) {
      #accenture_popup .need_help_close {
           right: 1px !important;
           top: 2px !important;
       }
   }
   .attendance_report p{
      padding: 0 !important;
      margin: 0 !important;
  }
  .course-card-description{
      font-size: 14px;
      font-weight: 300;
      margin-bottom: 0px;
  }
  .faq-div > *::after {
      content: " | ";
      padding:10px;
    }
    
    .faq-div > *:last-child::after {
      content: "";
    }
  .learner-variant-header a img{
      min-height: 45px !important;
  }
  @media (min-width: 720px) and (max-width: 820px) {
      #dashboard-container #dashboard-content {
          min-height: calc(100vh - 232px);
      }
  }
  /* slider css */
  .grouped-tabs-container {
    width: 100%;
  }
  
  .tab-slider-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.5rem;
  }
  
  .tab-slider-wrapper .scroll-btn {
    background-color: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0 8px;
    color: #333;
    transition: color 0.3s;
  }
  
  .tab-slider-wrapper .tab-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 5px;
    flex: 1;
  
    /* Firefox */
    scrollbar-width: none;
  }
  
  /* Chrome, Safari */
  .tab-slider-wrapper .tab-slider::-webkit-scrollbar {
    display: none;
  }
  
  .tab-slider-wrapper .grouped-tab-btn {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .tab-slider-wrapper .scroll-btn {
    background-color: #ffffff;
    border: 1px solid #15376d;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    color: #15376d;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .tab-slider-wrapper .scroll-btn:hover {
    background-color: #15376d;
    color: #fff;
  }
  
  .tab-slider-wrapper .scroll-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
  }
  .tab-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f4f7fb;
    padding: 8px 12px;
    border-radius: 8px 8px 0 0;
     box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
  }
  
  .scroll-btn {
    background-color: #15376d;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    user-select: none;
  }
  
  .scroll-btn:hover:not(:disabled) {
    background-color: #0f2e5a;
  }
  
  .scroll-btn:disabled {
    background-color: #a0a8c1;
    cursor: default;
  }
  
  .tab-slider {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    flex: 1;
    scrollbar-width: none; /* Firefox */
  }
  
  .tab-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
  .grouped-tab-btn {
    padding: 10px 18px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #e1e8f5;
    color: #15376d;
    border: none;
    border-radius: 6px 6px 0 0;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    border-radius: 10px !important;
    border:none !important;
  }
  
  .grouped-tab-btn.tab-active {
    background-color: #15376d;
    color: white !important;
    font-weight: 600;
  }
  .grouped-tab-btn.tab-inactive {
    opacity: 0.7;
  }
  .grouped-tab-btn.tab-inactive:hover {
    background-color: #c1cee9;
    opacity: 1;
  }
  