/*
Theme Name: LMS Child
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

/*HOMEPAGE*/

.lms-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 34px;
}

.lms-banner {
  display: block;
  padding: 28px 24px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  min-height: 210px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.lms-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  opacity: 0.98;
  color: #fff;
}

.lms-banner-kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.lms-banner h3 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

.lms-banner p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

.lms-banner-cta {
  display: inline-block;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  padding-bottom: 2px;
}

.lms-banner-events {
  background: linear-gradient(135deg, #1f5d9a, #2f87d5);
}

.lms-banner-news {
  background: linear-gradient(135deg, #2a7c58, #49b07b);
}

.lms-banner-courses {
  background: linear-gradient(135deg, #9a5a1f, #db8a36);
}

@media (max-width: 991px) {
  .lms-banner-grid {
    grid-template-columns: 1fr;
  }
  .lms-banner {
    min-height: 180px;
  }
}

@media (max-width: 525px) {
  .lms-hero-title-2 {
    line-height: 100px !important;
  }
}

/* #menu-top-navigation > li:last-child, */
.single-sfwd-courses .ld-course-status-seg-price,
.ld-enrollment__pricing.ld-enrollment__pricing--free,
.ribbon,
.graded-disclaimer,
/* .wpProQuiz_questionListItem p:first-of-type, */
.ur-frontend-form .user-registration-myaccount-notice-box,
input[name="startQuiz"],
.learndash-wrapper .ld-quiz-actions .quiz_continue_link {
  display: none !important;
}

.learndash-wrapper .learndash_mark_complete_button:not(.ld--ignore-inline-css) {
  background-color: #00770f !important;
}

#wpProQuiz_questionEssay_question_6_17,
#wpProQuiz_questionEssay_question_6_18 {
  height: 50px !important;
}

#resources-tabs {
  --c-recycling: #1f9d66;
  --c-energy: #dd8a07;
  --c-sustainability: #21846f;
  --c-pollution: #c44a3f;
  --c-text: #1f2937;
  --c-bg: #ffffff;
  --c-border: #e5e7eb;
}

#resources-tabs .lms-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

#resources-tabs .lms-tab-btn {
  flex: 0 0 calc(50% - 7px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  opacity: 0.88;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

#resources-tabs .lms-tab-btn i {
  font-size: 14px;
}
#resources-tabs .lms-tab-btn:hover,
#resources-tabs .lms-tab-btn.is-active {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

#resources-tabs .tab-recycling {
  background: var(--c-recycling);
}
#resources-tabs .tab-energy {
  background: var(--c-energy);
}
#resources-tabs .tab-sustainability {
  background: var(--c-sustainability);
}
#resources-tabs .tab-pollution {
  background: var(--c-pollution);
}

#resources-tabs .lms-tab-panel {
  display: none;
}
#resources-tabs .lms-tab-panel.is-active {
  display: block;
}

#resources-tabs .lms-title {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  line-height: 1.2;
  color: var(--c-text);
}
#resources-tabs .lms-title i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 15px;
}

#resources-tabs .lms-subtitle {
  margin: 24px 0 12px;
  font-size: 18px;
  color: var(--c-text);
}

#resources-tabs .res-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
}
#resources-tabs .res-item h5 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
}
#resources-tabs .res-item p {
  margin: 0 0 12px;
  color: #374151;
  line-height: 1.6;
}

#resources-tabs .resources-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #34255f;
  color: #fff !important;
  border: 0;
  border-radius: 0;
  text-transform: uppercase;
  text-decoration: none !important;
  letter-spacing: 0.5px;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 24px;
  transition: background 0.2s ease;
}
#resources-tabs .resources-view-btn:hover {
  background: #2a1d4d;
  color: #fff !important;
}
#resources-tabs .resources-view-btn i {
  font-size: 12px;
}

@media (max-width: 767px) {
  #resources-tabs .lms-tab-btn {
    flex: 0 0 100%;
    justify-content: flex-start;
    text-align: left;
  }
  #resources-tabs .lms-title {
    font-size: 24px;
  }
}

/* AI@Green banner under slider */
.ai-green-banner {
  background: #fff;
  width: 100%;
  padding: 16px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.ai-green-banner__logo img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;
}

.ai-green-banner__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 920px;
}

.ai-green-banner__title {
  margin: 0;
  color: #1f2a37;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.ai-green-banner__project {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ai-green-banner {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }

  .ai-green-banner__logo img {
    width: 120px;
  }

  .ai-green-banner__title {
    font-size: 18px;
  }

  .ai-green-banner__project {
    font-size: 14px;
  }
}

.learndash-button-free,
.learndash-wrapper .ld-status {
  font-size: 1em !important;
}

.learndash_mark_complete_button {
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

.ld-topic-status {
  margin-bottom: 35px;
}

.learndash-wrapper .wpProQuiz_content .wpProQuiz_button:not([disabled]):not(.wpProQuiz_button_reShowQuestion):not(.wpProQuiz_button_restartQuiz) {
  background-color: #00770f !important;
}

.learndash-wrapper:not(.ld-registration__outer-wrapper):not(
    .learndash-wrapper--modern
  )
  .ld-button,
.learndash-wrapper .wpProQuiz_content .wpProQuiz_button {
  font-size: 0.9em;
}
