html {
  scroll-padding-top: 150px;
  scroll-behavior: smooth;
}

#navbar-main .navbar-brand img.secondary-logo,
.scrolled #navbar-main .navbar-brand .site-logo img {
  display:none;
}

.scrolled #navbar-main .navbar-brand img.secondary-logo {
  display: block;
  position: unset;
  background-color: unset;
  box-shadow: unset;
}
img {
  width: 100%;
  height: auto;
}

img.main-logo {
  max-width: 300px;
}

.active-language i {
  color: var(--bs-primary);
}

[dir="rtl"] .scroll-horizon.d-flex {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -webkit-flex-direction: row-reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

.gradient-bg {
  /*background: linear-gradient(-45deg, rgba(230, 121, 43, 0.2), rgba(249, 198, 35, 0.2), rgba(216, 34, 42, 0.2), rgba(18, 76, 39, 0.2));*/
  background-size: 400% 400%;
  /*animation: gradient-bg 15s ease infinite;*/
  /*background: url("/themes/custom/lqc_theme/images/home-slider-bg.webp");*/
  background-repeat: no-repeat;
  background-size: cover;
}
/*@keyframes gradient-bg {*/
/*  0% {*/
/*    background-position: 0 50%;*/
/*  }*/
/*  50% {*/
/*    background-position: 100% 50%;*/
/*  }*/
/*  100% {*/
/*    background-position: 0 50%;*/
/*  }*/
/*}*/

.home-slider-cover {
  min-height: calc(100vh - 250px) !important;
}

/* Card style 1 */

.card-style-1 {
  box-shadow: 0 2px 4px 0 rgba(136, 144, 195, 0.2),
  0 5px 15px 0 rgba(37, 44, 97, 0.15);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: 0.7s;
  background-color: rgba(255, 255, 255, 0.85);
}

.card-style-1:hover {
  background: var(--bs-primary);
  color: #fff;
  transform: scale(1.1);
  z-index: 9;
}

.card-style-1:hover::before {
  background: rgb(85 108 214 / 10%);
}

.card-style-1:hover h3,
.card-style-1:hover p {
  color: #fff;
}

.card-style-1:before {
  content: "";
  position: absolute;
  background: rgb(85 108 214 / 5%);
  width: 170px;
  height: 400px;
  z-index: -1;
  transform: rotate(42deg);
  right: -56px;
  top: -23px;
  border-radius: 35px;
}

.card-style-1:hover button {
  background: #fff !important;
  color: #309df0;
}

.card-style-1 h3 {
  color: #212121;
  font-size: 1.3rem;
  margin-top: 13px;
  margin-bottom: 13px;
}

.card-style-1 p {
  font-size: 15px;
  margin-bottom: 15px;
}

.card-style-1 button {
  border: 0;
  border-radius: 15px;
  background: linear-gradient(
      140deg,
      #42c3ca 0%,
      #42c3ca 50%,
      #42c3cac7 75%
  ) !important;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 16px;
}

.card-style-1 a.wp-block-button__link {
  background-color: #3ec6f6;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.card-style-1:hover a.wp-block-button__link {
  color: #3ec6f6;
  background-color: #ffffff;
}

.card-style-1 i {
  color: #E10512;
}

.card-style-1:hover i {
  color: #ffffff;
}

.slider-bullets {
  z-index: 10;
}

.slider-bullets button {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: background-color 0.3s, opacity 0.3s;
}

.slider-bullets button.active {
  background-color: #007bff;
  opacity: 1;
}

/** Button style */
.btn {
  border-radius: 0 200px;
}
.btn:hover {
  border-radius: 200px 0;
}
.btn.btn-secondary,
.btn.btn-outline-secondary,
.btn.btn-primary,
.btn.btn-outline-primary {
  height: 2.5rem;
  padding: 0 1.3rem;
  transition: all ease 0.5s;
}

.btn.btn-outline-secondary:hover a {
  color: var(--bs-white);
}

.more-link.btn {
  bottom: -0.5rem;
  right: 0; /* RTL */
}
.more-link.btn {
   line-height: 2.3rem;
 }
[dir="rtl"] .more-link.btn {
  right: unset;
  left: 0;
}

.btn.btn-secondary:hover,
.dark-bg.btn.btn-secondary {
  background-color: #E10512;
}

.dark-bg.btn.btn-secondary:hover {
  background-color: #E9ECEF;
}

.dark-bg.btn.btn-secondary:hover a {
  color: #E10512;
}

.btn.btn-secondary a,
.btn.btn-outline-secondary a,
.btn.btn-primary a,
.btn.btn-outline-primary a,
button.btn {
  margin: 0;
  padding: 0.5rem 2.5rem;
  color: #fff;
  font-weight: 500;
}

button.btn {
  min-width: 100px;
}

.btn.btn-outline-secondary a {
  color: #E10512;
}

.image-radius img {
  border-radius: 0 50px;
}

.image-radius-small img {
  border-radius: 0 25px;
}

/** Section header style */
.section-header {
  font-weight: 500;
  position: relative;
}

.section-header::before {
  content: "";
  color: #E10512;
  position: absolute;
  top: -0.3rem;
  width: 30px;
  height: 0;
  border: 4px solid;
  border-radius: 0 10px;
}

.section-header-span {
  color: #E10512;
}

.node--type-event.node--view-mode-full img.wp-block-cover__image-background {
  filter: brightness(0.3);
}
a .node--type-event.node--view-mode-teaser {
  transition: all ease 0.3s;
}
a .node--type-event.node--view-mode-teaser:hover {
  background-color: #E9ECEF;
}

.node--type-event.node--view-mode-teaser img {
  margin: 0;
}

/** fullcalendar overrides */
.fc .fc-toolbar-title {
  font-size: 1.2vw;
}

.fc-header-toolbar .btn.btn-primary {
  border-radius: 0;
  background-color: var(--bs-secondary);
  color: var(--bs-white);
  font-size: 0.8rem;
  border: none;
  border-right: 2px solid white;
  padding-right: 8px;
  padding-left: 8px;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.bi-chevron-left:before {
  content: "<";
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  margin-right: .25rem;
}

.bi-chevron-right:before {
  content: ">";
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  margin-left: .25rem;
}

.node--view-mode-teaser {
  margin-bottom: 0;
  padding-bottom: 0;
}

.view-events .pagination,
.view-id-news .pagination {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 1rem;
}
.view-id-news .pagination {
  margin-top: 2rem;
}

.node--type-news.node--view-mode-card,
.node--type-service.node--view-mode-card,
.card-radius-style {
  border: 1px solid #E9ECEF;
  border-radius: 0 50px;
  background-color: var(--bs-white);
  transition: all 0.3s ease;
}

.node--type-news.node--view-mode-card:hover,
.node--type-service.node--view-mode-card:hover,
.card-radius-style:hover {
  transform: scale(1.05);
}

.news-category-container {
  top: -0.4rem;
}

.news-category-container.btn.btn-primary {
  height: 2rem;
}
.news-category-container.btn.btn-primary a {
  line-height: 1rem;
  font-size: 0.7rem;
  padding: 0rem 1rem;
}

.material-icon {
  font-size: 3.2rem;
}

/** Views filter */

.view-id-news .view-filters {
  background-color: var(--bs-white);
  padding: 1.5rem;
  -webkit-box-shadow: var(--bs-box-shadow);
  box-shadow: var(--bs-box-shadow);
  border-radius: 0 50px;
  margin-bottom: 1.5rem;
}

.view-id-news .form-item.mb-3,
.view-id-news .form-wrapper.mb-3,
.view-id-news .js-form-item.mb-3 {
  margin-bottom: 0 !important;
}
.view-id-news legend {
  display: none;
}

.form-item .fieldset-wrapper {
  display: flex;
}

.form-type-date {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.form-type-date label {
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.swiper-pagination-bullet-active {
  background-color: var(--bs-primary);
}

.swiper-button-next, .swiper-rtl .swiper-button-prev {
  right: 2rem;
  color: var(--bs-primary);
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
  left: 2rem;
  color: var(--bs-primary);
}

.card-text {
  text-align: justify;
}

.dropdown-item {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-weight: 500;
}

.dropdown-item.active a {
  color: var(--bs-white);
}

[dir="rtl"] .advanced-language-selector .dropdown-menu[data-bs-popper] {
  left: unset;
  right: 0;
}

.advanced-language-selector .dropdown-menu[data-bs-popper] {
  left: 0;
  right: unset;
}
.advanced-language-selector .dropdown-item {
  font-weight: bold;
}
.advanced-language-selector .dropdown-item a {
  display:block;
}

.vertical-menu ul.nav {
  display: block;
}
.vertical-menu ul.nav a {
  color: var(--bs-heading-color);
  font-size: 1rem;
  display: flex;
  align-items: center;
  font-weight: normal;
  transition: all ease 0.2s;
}

.vertical-menu ul.nav a i {
  color: var(--bs-primary);
  font-size: 1.2rem;
  margin-right: 10px; /* LTR */
}

[dir="rtl"] .vertical-menu ul.nav a i {
  margin-right: 0;
  margin-left: 10px;
}

[dir="rtl"] .vertical-menu ul.nav a span {
  direction: ltr;
}

.vertical-menu ul.nav a:hover {
  background-color: unset;
  color: var(--bs-primary);
  transform: scale(1.02);
}

#navbar-main {
  z-index: 2;
}

.captcha-type-challenge--friendlycaptcha legend,
.captcha-type-challenge--friendlycaptcha .captcha__description  {
  display: none;
}

.form-required::after {
  background-image: url("../images/required.svg");
}

#block-lqc-theme-sociallinks i {
  font-size: 1rem !important;
}

.modal-backdrop {
  z-index: 1;
}

figcaption {
  text-align: center;
}

.wp-block-cover .wp-block-cover__background,
.wp-block-cover .wp-block-cover__image-background,
.wp-block-cover video.wp-block-cover__video-background,
.wp-block-cover-image .wp-block-cover__image-background,
.wp-block-cover-image video.wp-block-cover__video-background {
  z-index: -1;
}

.wp-block-cover .wp-block-cover__inner-container, .wp-block-cover-image .wp-block-cover__inner-container {
  z-index: unset;
}

details summary {
  background-color: var(--bs-primary);
  color: var(--bs-white);
  transition: all ease 0.2s;
}

details summary:hover {
  background-color: rgb(227, 18, 31, 0.6);
}

.view-user-menu img {
  border-radius: 50%;
  max-width: 35px;
  max-height: 35px;
}

.view-user-menu .attachment .user-menu-element,
.view-user-menu .attachment a {
  display: block;
  padding: 0.5rem 1rem;
}

.view-user-menu .attachment {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  font-size: small;
  --bs-border-opacity: 1;
  border-color: rgba(var(--bs-light-rgb), var(--bs-border-opacity)) !important;
  -webkit-box-shadow: var(--bs-box-shadow) !important;
  box-shadow: var(--bs-box-shadow) !important;
  min-width: 180px;
  z-index: 9999;
}

[dir="rtl"] .view-user-menu .attachment {
  right: unset;
  left: 0;
}

.view-user-menu .attachment a:hover {
  background-color: #0000000d;
}

.view-user-menu:hover .attachment {
  display: block;
}

.register-form {
   max-width: unset !important;
}

.ar-font p,
.ar-font h1,
.ar-font h2,
.ar-font h3,
.ar-font h4,
.ar-font h5,
.ar-font h6 {
  font-family: 'Cairo', sans-serif;
}

.certificate-qr-code {
  position: fixed;
  bottom: -11rem;
  left: 3rem;
}

/** Sticky card animation style */
#sticky-card-1 {
  --index: 1;
}

#sticky-card-2 {
  --index: 2;
}

#sticky-card-3 {
  --index: 3;
}

#sticky-card-4 {
  --index: 4;
}

#sticky-card-5 {
  --index: 5;
}

#sticky-card-6 {
  --index: 6;
}

#sticky-card-7 {
  --index: 7;
}

#sticky-card-8 {
  --index: 8;
}

#sticky-card-9 {
  --index: 9;
}

#sticky-card-10 {
  --index: 10;
}

.sticky-card {
  position: sticky;
  top: 95px;
  padding-top: calc(var(--index) * 1.5em);
  transition: all ease 1s;
  margin-right: auto;
  margin-left: auto;
}

.sticky-card-content {
  overflow: hidden;
}

.min-width-430 {
  min-width: 450px;
}

.sticky-card-header {
  position: sticky;
  top: 75px;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show, .navbar-nav .nav-link:hover {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  transition: ease all 0.2s;
}

footer ul {
  padding-inline-start: 0;
}

.lock {
  border-radius: 5px;
  width: 55px;
  height: 45px;
  background-color: #333;
  animation: dip 1s;
  animation-delay: 1.5s;
  margin-right: auto;
  margin-left: auto;
  position: relative;
  margin-bottom: 1rem;
}
.lock::before, .lock::after {
  content: "";
  position: absolute;
  border-left: 5px solid #333;
  height: 20px;
  width: 25px;
  left: calc(50% - 12.5px);
}
.lock::before {
  top: -30px;
  border: 5px solid #333;
  border-bottom-color: transparent;
  border-radius: 15px 15px 0 0;
  height: 40px;
  animation: lock 2s, spin 2s;
}
.lock::after {
  top: -10px;
  border-right: 5px solid transparent;
  animation: spin 2s;
}

@keyframes lock {
  0% {
    top: -45px;
  }
  65% {
    top: -45px;
  }
  100% {
    top: -30px;
  }
}
@keyframes spin {
  0% {
    transform: scaleX(-1);
    left: calc(50% - 30px);
  }
  65% {
    transform: scaleX(1);
    left: calc(50% - 12.5px);
  }
}
@keyframes dip {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0px);
  }
}
@media (max-width: 62rem) {
  html {
    font-size: 0.875rem; /* 14px if default is 1rem = 16px */
  }
  .navbar-brand .main-logo {
    max-width: 230px;
  }
  .btn.btn-secondary a,
  .btn.btn-outline-secondary a,
  .btn.btn-primary a,
  .btn.btn-outline-primary a,
  button.btn {
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.5rem;
  }
  .w-50.w-sm-100 {
    width: 100% !important;
  }
  .card-style-1 p {
    font-size: 12px;
    margin-top: 0.5rem;
  }
  .card-style-1 i {
    font-size: 2rem;
  }
  .card-style-1 h3 {
    font-size: 1.8rem !important;
    margin: 0;
  }
}

/* ==========================================================================
   Provider Portal menu — avatar trigger + hover dropdown.
   Mirrors the user_menu view pattern but scoped to .lqc-portal-dropdown
   so it never affects other menus.
   ========================================================================== */

.lqc-portal-dropdown {
  position: relative;
  display: inline-block;
}

.lqc-portal-dropdown__trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.lqc-portal-dropdown__avatar {
  border-radius: 50%;
  max-width: 35px;
  max-height: 35px;
  display: block;
}

.lqc-portal-dropdown__panel {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  min-width: 220px;
  box-shadow: var(--bs-box-shadow);
  border: 1px solid rgba(var(--bs-light-rgb), 1) !important;
  z-index: 9999;
  font-size: small;
}

[dir="rtl"] .lqc-portal-dropdown__panel {
  right: auto;
  left: 0;
}

.lqc-portal-dropdown:hover .lqc-portal-dropdown__panel,
.lqc-portal-dropdown:focus-within .lqc-portal-dropdown__panel {
  display: block;
}

.lqc-portal-dropdown__header {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--bs-secondary, #343a40);
}

.lqc-portal-dropdown__panel ul,
.lqc-portal-dropdown__panel ul.nav,
.lqc-portal-dropdown__panel ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
}

.lqc-portal-dropdown__panel li,
.lqc-portal-dropdown__panel li.nav-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 0 0 100%;
}

.lqc-portal-dropdown__panel li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lqc-portal-dropdown__panel a,
.lqc-portal-dropdown__panel a.nav-link {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: inherit;
}

.lqc-portal-dropdown__panel a:hover,
.lqc-portal-dropdown__panel a:focus,
.lqc-portal-dropdown__panel a.nav-link:hover,
.lqc-portal-dropdown__panel a.nav-link:focus {
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
