/**
 * MasterStudy Courses Listing CSS
 * Add this to your theme's stylesheet or a separate CSS file
 */

/* Main Container */
.courses-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header Section */
.courses-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.courses-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0;
  color: #333;
}

.courses-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
}

.courses-tabs .tab {
  padding: 10px 20px;
  text-decoration: none;
  color: #555;
  font-size: 14px;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.courses-tabs .tab.active {
  color: #2e7d32;
  border-bottom: 2px solid #2e7d32;
  margin-bottom: -2px;
}

.course-category-filter {
  margin-left: 20px;
}

#course-category-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.cms-add-new-course-btn {
  display: flex;
  align-items: center;
  background-color: #005a3d;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}


.plus-icon {
  margin-right: 8px;
  font-weight: bold;
}

/* Courses Grid */
.courses-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.courses-grid-inner,.courses-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  gap: 15px;
}
.courses-loading,
.courses-error,
.no-courses-found {
  padding: 40px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  color: #555;
}

/* Course Card */
.course-card {
  border: 1px solid #000;
  transition: box-shadow 0.3s ease;
  background-color: #fff;
  border-radius: 8px;
}
.course-image_wrap {
  overflow: hidden;
  width: 100%;
  border-radius: 8px 8px 0px 0px;
}

.course-image {
  height: 150px;
  background-color: #bcc1c7;
  position: relative;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  font-size: 14px;
}

.course-details {
  padding: 20px;
}

.course-category {
  font-size: 13px;
  color: #4D5E6F;
  margin-bottom: 4px;
  text-align: center;
  border-bottom: 1px solid #000;
  padding-bottom: 4px;
  font-weight: 400;
}
.course-title {
    font-size: 15px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    text-align: center;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}
.course-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.course_lavel {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  border-bottom: 1px solid #000;
  color: #4D5E6F;
  padding-bottom: 4px;
}

.course-rating {
  display: flex;
  align-items: center;
}

.star {
  color: #d4d4d4;
  font-size: 16px;
}

.star.filled {
  color: #ffc107;
}

.rating-value {
  margin-left: 5px;
  font-size: 14px;
  color: #555;
}

.course-views {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #777;
}

.views-icon {
  margin-right: 5px;
  opacity: 0.7;
}

.course-status-price {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
  /* flex-direction: column; */
  position: relative;
  width: 100%;
}

.course-status {
  /* display: flex; */
  align-items: start;
}

.status-icon {
  margin-right: 5px;
  font-size: 10px;
}

.status-icon.published {
  color: #2e7d32;
  content: "\e9f5"
}

.status-icon.drafted {
  color: #757575;
}

.course-price-display {
  font-weight: 600;
}

.original-price {
    text-decoration: line-through;
    color: #fff;
    margin-right: 5px;
}

.sale-price {
  color: #fff;
}

.course-price {
    color: #fff;
}
.price-placeholder {
  color: #999;
}

.course-actions {
  margin-bottom: 10px;
}

.edit-course-btn, .make-featured-btn {
  display: block;
  text-align: center;
  padding: 12px 0;
  background-color: #f5f5f5;
  color: #555;
  text-decoration: none;
  /* border-radius: 4px; */
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.make-featured-btn {
  background-color:#005a3d;
  color: white;
}

.edit-course-btn:hover {
  background-color: #e0e0e0;
}



.course-updated {
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .courses-header {
      flex-direction: column;
      align-items: flex-start;
  }
  
  .courses-title {
      margin-bottom: 15px;
  }
  
  .courses-tabs {
      margin-bottom: 15px;
      width: 100%;
  }
  
  .course-category-filter {
      margin-left: 0;
      margin-bottom: 15px;
  }
  
  .cms-add-new-course-btn {
      align-self: flex-start;
  }
  
  .courses-grid-inner {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.course-status{
  position: absolute;
  padding: 5px;
  background-color: #005a3d;
  font-size: 14px;
  font-weight: 500;
  width: 200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  top: 0;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}
.course-status.publish {
  border-left-color: #28a745;
}

.course-status.draft {
  border-left-color: #ffc107;
}

.status-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 12px;
  line-height: 1;
}

.status-icon.published {
  color: #28a745;
}

.status-icon.drafted {
  color: #ffc107;
}
.cms-course_manage-links {
  display: none;
  flex-wrap: wrap;
  /* margin-top: 10px; */
  /* padding-top: 10px; */
  border-top: 1px solid #e9ecef;
  text-align: center;
  
}

.cms-course-link {
  /* display: inline-flex; */
  align-items: center;
  margin-right: 15px;
  margin-bottom: 5px;
  padding: 6px 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.cms-course-link:hover {
  background-color: #e9ecef;
  color: #242323;
 
}

.cms-course-link i {
  margin-right: 5px;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .cms-course_manage-links {
      flex-direction: column;
  }
  
  .cms-course-link {
      margin-right: 0;
      margin-bottom: 8px;
  }
}

div#stm-lms-courses-grid {
  display: none !important;
}

.course-status a {
  color: #fff;
  border-radius: 8px;
}



#ms_plugin_root > div > div.css-1266b46 > div > div > form > div.css-1ruxp1v > div > div.chakra-tabs__tablist.css-119thvq >button:last-child {
  display: none;
}

.masterstudy-analytics-short-report-page-stats {
  display: none !important;
  width: 100%;
  margin-bottom: 50px;
}

.masterstudy-analytics-short-report-page-stats {
  display: none !important;
  width: 100%;
  margin-bottom: 50px;
}


.course-image {
    height: 150px;
    background-color: #005a3d;
    position: relative;
    overflow: hidden;
}


 .cw-tabs {
           width: 100%;
        }
        
       .cw-tab-header {
          display: flex;
          justify-content: center;
          align-items: center;
          gap: 5px;
      }
        
      .cw-tab-btn {
    padding: 12px 24px;
    background: none;
    border: 2px solid #005a3d;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
     background-color: #005a3d;
    border-radius: 8px;
}
        
        .cw-tab-btn:hover {
            color: #000;
             background-color: transparent;
              border: 2px solid #005a3d;
        }
        
        .cw-tab-btn.active {
            color: #000;
             background-color: transparent;
              border: 2px solid #005a3d;
        }
        
       
        
        .cw-tab-content {
            padding: 20px;
            display: none;
        }
        
        .cw-tab-content.active {
            display: block;
            animation: fadeIn 0.5s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
.cw-tab-content {
    padding: 20px;
    display: none;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: none;
}

.cw-tab-content.active {
    display: block;
    animation: rollOpen 0.5s ease forwards;
}

@keyframes rollOpen {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

        span.cw-add-new-cat-button {
            padding: 10px 15px;
            background: #005A3D;
            color: #fff;
            border-radius: 8px;
            cursor: pointer;
        }


.cw-ms-category-form {
    background: #f9f9f9;
    padding: 40px 60px;
    border-radius: 5px;
    position: relative;
    width: 100%;
    margin: auto;
    max-width: 1080px;
}

.cw-ms-category-form h3 {
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 700;
}
.cw-form-group {
    margin-bottom: 15px;
    display: flex;
    gap: 5px;
}

.cw-form-group label {
    width: 30%;
    max-width: 250px;
}

.cw-form-group input, .cw-form-group select {
    width: 65%;
    padding: 4px 8px !important;
    border: 2px solid #000 !important;
    border-radius: 8px !important;
}
.cw-ms-submit-btn {
    background: #005a3d;
    color: #fff;
    padding: 14px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  
    width: 150px;
    margin: auto;
}
.cat-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cw-ms-category-list {
    margin-top: 20px;
}

.cw-ms-category-list h3 {
    font-size: 30px;
    font-weight: 700;
}
.cw-ms-category-table {
    width: 100%;
    border-collapse: collapse;
}

.cw-ms-category-table th,
.cw-ms-category-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.cw-ms-category-table th {
    background: #f2f2f2;
}

.cw-ms-edit-btn,
.cw-ms-delete-btn {
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
}

.cw-ms-edit-btn {
    background: #005A3D;
    color: #fff;
    cursor: pointer;
    padding: 5px 15px;
}
.cw-ms-delete-btn {
    background: #9d0202;
    color: #fff;
}

.cw-category-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    height: 100vh;
    backdrop-filter: blur(3px);
    background-color: #00000091;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    display: none;
    transition: display 0.3s ease-in-out;
    -webkit-transition: display 0.3s ease-in-out;
    -moz-transition: display 0.3s ease-in-out;
    -ms-transition: display 0.3s ease-in-out;
    -o-transition: display 0.3s ease-in-out;
}

.cw-cat-popup-content {
    width: 100%;
    max-width: 900px;
}


span.cat-form-remove-button {
    position: absolute;
    right: 10px;
    top: 10px;
    height: 40px;
    width: 40px;
    border: 1px solid #000;
    text-align: center;
    line-height: 39px;
    font-size: 30px;
    font-weight: 500;
    cursor: pointer;

    border-radius: 50%;
    transform: rotate(45deg);
}

form#cw-ms-category-form {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}


.courses-cat-grid {
    width: 100%;
    margin-bottom: 50px;
}



.courses-cat-grid>h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.cw-filter-bar {
    width: 100%;
    /* margin: auto; */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 25px;
}

span.filter-material-name {
    background-color: #005a3d;
    color: #fff;
    padding: 7px 20px;
    border-radius: 6px;
    cursor: pointer;
}


.cw-category-grid.cw-columns {
    display: flex;
    justify-content: center;
    /* align-items: center; */
    flex-wrap: wrap;
    width: 100%;
    gap: 5px;
}

.cw-category-card {
    width: 48%;
    display: flex;
    flex-direction: column;
    background-color: #005a3d;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 0px 20px 0px #FFFFFF inset;
}

.cw-category-content h3 {
    font-size: 30px;
    color: #fff;
    font-weight: 700;
}

.cw-category-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding-top: 20px;
    border-top: 2px solid #f0ad4e;
    margin-top: 5px;
    padding-bottom: 14px;
}

.cw-category-actions a {
    color: #000000;
    background-color: #fff;
    padding: 6px 12px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

h3.page-title {
    text-align: center;
    margin-bottom: 20px;
}

.show-material-name {
    margin-bottom: 10px;
    font-size: 48px;
    font-weight: 600;
    color: #000000;
}


.cw-course-section {
    display: flex;
    width: 100%;
    gap: 20px;
}

.courses-grid-container {
    width: 80%;
}

.course-filter-section {
    width: 15%;
}
.cw-ms-delete-btn:hover {
    background: #9d0202;
    color: #fff;
}

table.cw-ms-category-table thead tr th {
    text-align: center !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    box-sizing: border-box;
    display: inline-block;
    min-width: 1.5em;
    padding: .5em 1em;
    margin-left: 2px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    color: inherit !important;
    border: 1px solid transparent;
    border-radius: 2px;
    background: rgba(0,90,61,1) !important;
}


  
  .checkbox-for-filter {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
  }
  
  .checkbox-for-filter input[type="checkbox"] {
    /* Hide default checkbox */
    opacity: 0;
    position: absolute;
  }
  
  .checkbox-for-filter label {
    position: relative;
    padding-left: 30px; /* Space for custom checkbox */
    cursor: pointer;
    font-size: 16px;
  }
  
  /* Custom checkbox */
  .checkbox-for-filter label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #005a3d;
    background: #005a3d;
    border-radius: 4px;
  }
  
.checkbox-for-filter input[type="checkbox"]:checked + label:after {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: bold;
}
  .filter-by-academic-year {
    width: 100%;
    border: 1px solid #000000;
    padding: 10px;
    border-radius: 5px;
    margin: auto;
    background-color: #fff;
}

@media (max-width: 768px) {
   .cw-filter-bar {
    flex-direction: column !important;
    gap: 5px !important;
    margin-bottom: 5px !important;
}

.show-material-name {
    font-size: 30px !important;
    text-align: center  !important;
}

.cw-course-section {
    flex-direction: column !important;
}

.course-filter-section {
    width: 100% !important;
}

.courses-grid-container {
        width: 80% !important;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        margin: auto;
    }
.filter-by-academic-year {
    width: 250px;
    border: 1px solid #000000;
    padding: 10px;
    border-radius: 5px;
    margin: auto;
    background-color: #fff;
}

span.filter-material-name {
    width: 250px;
    text-align: center;
}
}

h1.entry-title {
    text-align: center !important;
    font-size: 64px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}
/* h1.entry-title {
    width: 70%;
    margin: auto;
    min-width: 500px;
} */

.entry-title {
    visibility: hidden;
}

