/* ===================== FILTER MODAL ===================== */
#page-local-edzcatalogue-index .edz-sort {
  display: none; /*hide every where Mihir 1 march 2025 */
}
#page-local-edzcatalogue-index .form-select.edz-sort,
.btn-group .btn.view-btn {
  height: 30px;
  font-size: 0.9rem;
}
.edz-filters-modal {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1050;
  display: none;
}

.edz-filters-modal.show {
  display: block;
}

.edz-filters {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s ease;
  z-index: 1050;
}

.edz-filters-header {
  position: relative;
  padding: 1rem;
}

#page-local-edzcatalogue-index .edz-filters-close {
  /* position: absolute; */
  top: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.edz-filters-body {
  overflow-y: auto;
  flex-grow: 1;
  padding: 1rem;
}

.edz-filters-footer {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
}

/* DESKTOP MODAL */
@media (min-width: 992px) {
  .edz-filters {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    transform: translateX(100%);
    background: #fff;
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.25);
  }
  .edz-filters-modal.show .edz-filters {
    transform: translateX(0);
  }
}

/* MOBILE MODAL */
@media (max-width: 991px) {
  .edz-filters {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
  }
  .edz-filters-modal.show .edz-filters {
    transform: translateY(0);
  }
  body.filters-open {
    overflow: hidden;
  }
}

/* FILTER INPUTS */
.edz-filters select,
.edz-filters input[type="text"],
.edz-filters .edz-filter-search {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.edz-filters .mb-3 {
  margin-bottom: 1rem;
}

.edz-filter-search {
  /* margin-top: 1.5rem; */
  height: 30px;
}

/* ===================== GRID VIEW ===================== */
.edz-course-card {
  display: block;
  position: relative;
}

.edz-card-image {
  position: relative;
  width: 100%;
  height: 135px;
}

.edz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  /* border-top-right-radius: 12px; */
}

/* Badges */
.edz-card-image .edz-badge-top-left,
.edz-card-image .edz-badge-top-right {
  position: absolute;
  top: 8px;
  z-index: 2;
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
}

.edz-card-image .edz-badge-top-left {
  left: 8px;
}

.edz-card-image .edz-badge-top-right {
  right: 8px;
}

/* ===================== LIST VIEW ===================== */
.edz-list-view .edz-card-inner {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

.edz-list-view .edz-card-image {
  flex: 0 0 200px;
  height: 167px;
  border-radius: 12px;
  overflow: hidden;
}

.edz-list-view .edz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edz-list-view .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Push Learn button to bottom-right */
.edz-list-view .card-body .mt-auto {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* Truncate text */
.edz-list-view .card-body h5,
.edz-list-view .card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* MOBILE LIST VIEW */
@media (max-width: 991px) {
  .edz-list-view .edz-card-inner {
    flex-direction: column;
  }

  .edz-list-view .edz-card-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }

  .edz-list-view .card-body .mt-auto {
    justify-content: flex-start;
  }
}

/* ===================== BADGES ===================== */
.edz-card-image .badge {
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
}

/* ===================== FIXED CARD ===================== */
.fixed-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fixed-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .fixed-card {
    min-height: auto;
  }
}

/* BUTTONS & FOOTER */
/* #page-local-edzcatalogue-index .btn-group,
.btn-group-vertical {
  height: 29px;
} */

.card-footer {
  height: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

#page-local-edzcatalogue-index .btn-group > .btn,
.btn-group-vertical > .btn {
  padding-top: 3px;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 991px) {
  .mobile-mt-0 {
    margin-top: 0 !important;
  }
}

/* LEARN LINK ANIMATION */
.edz-learn-link i {
  transition: transform 0.2s ease;
}

.edz-learn-link:hover i {
  transform: translateX(4px);
  text-decoration: none;
}

/* LIGHT BROWN CARD */
.bg-light-brown {
  background: #cfbfe763;
  border-radius: 12px;
}

/* COURSE ICON */
.course-icon i {
  font-size: 20px;
  color: #3c1296;
}

/* SEARCH ICON */
#page-local-edzcatalogue-index .search-icon {
  position: absolute;
  top: 54%;
  left: 14px;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}

/* FILTER BADGES */
.edz-filter-badge {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  margin: 3px;
  font-size: 0.875rem;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  background-color: #f1f1f1;
  color: #333;
  border: 1px solid #ccc;
  font-weight: 500;
}

.edz-filter-badge.active {
  background: var(--firki-brand-color) !important;
  color: var(--firki-brand-purewhite) !important;
  border: 1px solid var(--firki-brand-color) !important;
}
/* FILTER BUTTONS */
.btnreset {
  /* margin-top: 1.5rem; */
}

/* FILTER MODAL BOTTOM ADJUSTMENT */
.edz-filters-btm {
  bottom: 90px !important;
}

.filter-chip {
  background: #eef2ff;
  color: #1e3a8a;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.edz-filters-header {
  border-bottom: 1px solid #eee;
}

.edz-filters-header h6 {
  font-size: 1rem;
}

.edz-filters-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.edz-filters-close:hover {
  color: #0d6efd;
}

.ctahr {
  border-bottom: 1px solid #333;
}
.recnetcard {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
}

#page-local-edzcatalogue-index
  .d-flex.justify-content-lg-start.align-items-center.gap-2.flex-wrap.mt-4.mobile-mt-0 {
  padding: 0.75rem 0;
  min-height: 60px;
  align-items: center;
}

@media (max-width: 991.98px) {
  #page-local-edzcatalogue-index
    .d-flex.justify-content-lg-start.align-items-center.gap-2.flex-wrap.mt-4.mobile-mt-0 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

#filterSwitch.active {
  color: var(--bs-btn-active-color);
  background-color: var(--firki-brand-purewhite) !important;
  border-color: var(--bs-btn-active-border-color);
}

#page-local-edzcatalogue-index .card-title {
  font-size: 15px;
}

/* GLOBAL FIX */
/* html,
body {
  max-width: 100%;
  overflow-x: hidden;
} */

/* ===================== GRID ===================== */
.edz-course-card {
  position: relative;
}

/* CARD IMAGE */
.edz-card-image {
  position: relative;
  width: 100%;
  height: 135px;
  overflow: hidden;
}

.edz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BADGES */
.edz-badge-top-left,
.edz-badge-top-right {
  position: absolute;
  top: 8px;
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
  z-index: 2;
}

.edz-badge-top-left {
  left: 8px;
}

.edz-badge-top-right {
  right: 8px;
}

/* CARD BODY */
.card-title {
  font-size: 15px;
  line-height: 1.3;
}

.card-title a {
  text-decoration: none;
}

/* FIXED HEIGHT CARD */
.fixed-card {
  display: flex;
  flex-direction: column;
}

/* ===================== MOBILE ===================== */
@media (max-width: 767px) {
  .edz-course-card {
    padding-left: 6px;
    padding-right: 6px;
  }

  .edz-card-image {
    height: 135px;
  }

  .card-title {
    font-size: 14px;
  }
}

/* ===================== LIST VIEW ===================== */
.edz-list-view .edz-card-inner {
  display: flex;
  gap: 1rem;
}

.edz-list-view .edz-card-image {
  flex: 0 0 200px;
  height: 160px;
}

.edz-list-view .card-body {
  flex: 1;
}

/* MOBILE LIST */
@media (max-width: 991px) {
  .edz-list-view .edz-card-inner {
    flex-direction: column;
  }

  .edz-list-view .edz-card-image {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .edz-course-card {
    padding-left: 6px;
    padding-right: 6px;
  }

  .edz-card-image {
    height: 135px;
  }

  .card-title {
    font-size: 14px;
  }
  .edz-courses-list {
    padding: 1px;
  }
}

.edz-layout {
  padding-left: 12px;
  padding-right: 12px;
}

/* ===================== MOBILE FONT SCALE FIX ===================== */
@media (max-width: 767px) {
  /* Buttons */
  #page-local-edzcatalogue-index .edz-sticky-top .btn,
  #page-local-edzcatalogue-index .edz-sticky-top .btn-group .btn,
  #page-local-edzcatalogue-index .edz-sticky-top .view-btn {
    font-size: 11px;
    padding: 4px;
    height: 30px;
  }
  #page-local-edzcatalogue-index .form-select.edz-sort,
  .btn-group .btn.view-btn {
    height: 30px;
    font-size: 0.9rem;
  }
  /* Badges */
  #page-local-edzcatalogue-index .badge {
    font-size: 13px;
    padding: 10px 14px;
    margin: 4px;
    border-radius: 999px !important;
  }
  #page-local-edzcatalogue-index .edz-badge-top-left,
  #page-local-edzcatalogue-index .edz-badge-top-right {
    font-size: 12px;
    padding: 2px 4px;
    margin: 2px;
    border-radius: 999px !important;
  }
  /* Card titles */
  #page-local-edzcatalogue-index .card-title {
    font-size: 13px;
    line-height: 1.3;
  }

  /* Card text / description */
  #page-local-edzcatalogue-index .card-text,
  #page-local-edzcatalogue-index p {
    font-size: 15px;
  }

  /* Icons */
  #page-local-edzcatalogue-index i {
    font-size: 12px;
  }

  /* Filter chips */
  #page-local-edzcatalogue-index .filter-chip {
    font-size: 11px;
    padding: 6px 8px;
  }

  /* Select & Inputs */
  #page-local-edzcatalogue-index select,
  #page-local-edzcatalogue-index input {
    font-size: 12px;
    height: 34px;
  }

  /* Footer buttons spacing */
  #page-local-edzcatalogue-index .card-footer {
    padding: 6px 10px;
    height: auto;
  }
}
.edz-sticky-bottom {
  position: sticky;
  bottom: 0;
  z-index: 99;
  background: #fff;
  padding: 10px 0;
  border-top: 1px solid #eee;
}

/* Mobile polish */
@media (max-width: 768px) {
  .edz-sticky-bottom {
    padding: 12px 8px;
  }
}
.edz-sticky-top {
  /* position: sticky;
  top: 55px;
  z-index: 99;
  background: #fff;
  padding-top: 8px;
  padding-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-radius: 14px; */
  position: sticky;
  top: 55px;
  z-index: 99;
  background-color: var(--firki-brand-blue);
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.edzmargin {
  margin-top: -24px;
}

.edzmargibrightsi {
  margin-top: -24px;
}
@media (max-width: 768px) {
  .edzmargibrightsi {
    margin-top: -2px;
  }
}

.edz-list-view .edz-course-card {
  display: flex;
}

.edz-list-view .card {
  flex-direction: row;
}

/* Main row spacing */
.edz-sticky-row {
  row-gap: 12px;
}

/* Left & right sections consistency */
.edz-sticky-row > [class*="col-"] {
  display: flex;
  align-items: center;
}

.edz-filter-search {
  height: 30px;
  border-radius: 8px;
}

/* .search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
} */

.btnreset {
  height: 30px;
  padding: 0 14px;
  white-space: nowrap;
}

/* Right controls wrapper */
.edz-sticky-top .d-flex.flex-wrap {
  gap: 10px;
}

/* Buttons & selects unified height */
.edz-sticky-top .btn,
.edz-sticky-top .form-select {
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* View toggle buttons */
.view-btn {
  min-width: 40px;
  padding: 0 10px;
}

/* Pagination controls */
#prevPage,
#nextPage {
  min-width: 64px;
}
@media (max-width: 576px) {
  #prevPage,
  #nextPage {
    min-width: auto;
    padding: 0 10px;
  }

  .edz-sort {
    max-width: 100%;
  }
}
@media (min-width: 992px) {
  .edz-sticky-top {
    padding: 16px 24px;
  }

  .edz-sticky-row {
    row-gap: 0;
  }
}
.edz-selected-filters,
.edz-selected-filtersinside {
  gap: 8px;
}

.edz-selected-filters .badge {
  font-size: 13px;
  background: #eef2ff;
  padding: 10px 10px;
  border-radius: 999px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

/*** MIHIR small padding and hover zoom effect ***/
.edz-card-inner {
  padding: 1rem;
  transition: transform 0.3s ease;
}
/* Ensure image is clipped inside card */
.edz-course-card .edz-card-image {
  position: relative;
  overflow: hidden;
}

/* Smooth zoom transition */
.edz-course-card .edz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  will-change: transform;
}

/* Zoom image on card hover */
.edz-course-card:hover .edz-card-image img {
  transform: scale(1.08);
}
/*** END of MIHIR changes ***/

@media (max-width: 768px) {
  .edz-sticky-top {
    top: 50px;
    margin-top: 3px;
  }
}

/** 6 FEB 2026 MIHIR CHANGES **/
/* Align right-side controls to the right (desktop) */
.other-btn-right-side {
  display: flex;
  justify-content: flex-end;
}
.search-left-side {
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 576px) {
  .other-btn-right-side > .d-flex {
    flex-wrap: nowrap !important;
    justify-content: space-evenly !important;
  }

  .search-left-side {
    flex-wrap: nowrap !important;
    justify-content: space-evenly !important;
  }

  .other-btn-right-side {
    overflow-x: auto;
    justify-content: space-evenly !important;
  }
}

/* Mihir for list view */
/* FORCE full-width cards in LIST VIEW */
.edz-list-view .edz-course-card {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
.edz-list-view .card {
  flex-direction: row;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
.edz-list-view .edz-card-inner {
  display: flex;
  gap: 1rem;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.cosummary {
  padding: 8px;
}

/* Default: hide summary */
.edz-courses-container .cosummary {
  display: none;
}

/* Show only in LIST view */
.edz-courses-container.edz-list-view .cosummary {
  display: block;
}

#page-local-edzcatalogue-index .btn-group .active {
  background-color: var(--firki-brand-purewhite) !important;
  color: var(--firki-brand-black) !important;
}

/* Mihir In program catelogue page ALL coming little odd */
/* #page-local-edzcatalogue-index .form-select {
  padding: 0.075rem 2.25rem 0.375rem 0.75rem !important;
} */

.edzcat-course-name {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--firki-brand-muted-black, #000);
  letter-spacing: 0.4px;
  line-height: 1.4;
  padding: 8px;
  word-break: break-word;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}
.edzcat-course-name {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .edzcat-course-name {
    font-size: 15px;
  }
}

.edz-catalogue-page .edz-filter-search {
  padding-left: 26px;
  text-align: center;
  width: 133px;
}

@media (max-width: 768px) {
  .edz-catalogue-page .edz-filter-search::placeholder {
    text-align: center;
  }
  .edz-catalogue-page .edz-filter-search {
    padding-left: 20px !important;
    width: 133px;
  }
}
