/* Links */
a {
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

a:focus {
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -1px;
}

/*
 * Base structure
 */

body {
  background-color: #f8f9fa;
  color: #333;
}

/*
 * Typography
 */

hr {
  margin: 0.5rem 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .nav-link {
  color: #333;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: #e8350a;
}

.nav-add-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  margin: 0.3rem 0.35rem;
  padding: 0.55rem 1rem;
  border: 2px solid #f4b41a;
  border-radius: 0.5rem;
  background-color: #f4b41a;
  color: #17202a;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nav-add-ad:hover {
  border-color: #ffd166;
  background-color: #ffd166;
  color: #17202a;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-add-ad:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #17202a;
}

.nav-add-ad i {
  font-size: 1.1rem;
}

@media (max-width: 991.98px) {
  .nav-add-ad {
    width: 100%;
    margin: 0.5rem 0;
  }
}

.mobile-navbar-actions {
  gap: 0.5rem;
  margin-inline-start: auto;
}

.mobile-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.mobile-language-link:hover,
.mobile-language-link:focus {
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}

.mobile-search-bar {
  width: 100%;
  padding: 0 0 0.75rem;
}

.mobile-search-form {
  display: flex;
  gap: 0.5rem;
}

.mobile-search-form .search-input {
  min-width: 0;
}

.mobile-search-form .search-btn {
  flex: 0 0 auto;
}

@media (max-width: 991.98px) {
  .navbar .container {
    gap: 0.5rem;
  }

  .navbar-brand {
    max-width: min(42vw, 12rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.dropdown-menu {
  border-radius: 0.5rem;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-menu {
  animation: fadeIn 0.15s ease-in-out;
}

.page-block-thumb {
  max-height: 120px;
  max-width: 180px;
  object-fit: contain;
}

.page-block-editor-header {
  gap: 1rem;
}

.page-block-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.page-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}

.page-icon-option {
  cursor: pointer;
  margin: 0;
  position: relative;
}

.page-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-icon-option-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.page-icon-option-content i,
.page-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #104f95;
}

.page-icon-option input:checked + .page-icon-option-content {
  border-color: #104f95;
  background: #eef5fd;
  box-shadow: 0 0 0 1px #104f95 inset;
}

.cms-page {
  max-width: 1040px;
  margin: 0 auto;
}

.cms-block {
  display: flow-root;
  clear: both;
  margin: 2.5rem 0;
}

.cms-block h1,
.cms-block h2 {
  text-align: inherit;
  margin-bottom: 1rem;
}

.cms-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f6f8;
}

.cms-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cms-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  .btn {
    background: #104f95;
    color: #fff;
    margin-top: 0.5rem;
  }
}

.cms-hero.has-image .cms-hero-content {
  color: #1f2937;
  margin: 3rem;
  border-radius: 8px;
  background: rgba(172, 172, 172, 0.69);
  padding: 0.8rem;
}

.cms-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background: #104f95;
}

.cms-block-icon i {
  line-height: 1;
}

img.cms-block-image,
img.cms-full-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
}

img.cms-full-image {
  margin-bottom: 1rem;
}

.cms-image-content {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.cms-image-content h2,
.cms-image-content .cms-rich-text,
.cms-image-content .cms-rich-text p {
  margin: 0;
}

.cms-rich-text {
  line-height: 1.8;
}

.cms-page-links {
  max-width: 1040px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #d8dee4;
}

.cms-page-links h2 {
  margin-bottom: 1rem;
  text-align: inherit;
  font-size: 1.25rem;
}

.cms-page-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cms-page-links a {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8dee4;
  border-radius: 6px;
  background: #fff;
}

.cms-block-quote blockquote {
  border-inline-start: 4px solid #104f95;
  padding: 1.5rem;
  background: #f8f9fa;
}

.cms-cta {
  padding: 2rem;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  text-align: center;
}

.breadcrumb {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: medium;
  text-transform: none;
  color: white;
  h4 {
    font-weight: 600;
    margin-top: 7px;
  }
  a {
    color: #000;
  }
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  border-bottom: solid thin lightgray;
}

.breadcrumb .page-heading {
  color: white;
  font-style: normal;
  font-weight: 500;
  text-transform: none;
}

.breadcrumb ol {
  margin-bottom: 0;
  display: flex;
  justify-content: center;
}

.breadcrumb li {
  color: white;
  list-style: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-weight: 700;
  font-size: medium;
}

.breadcrumb-item+.breadcrumb-item {
  padding-right: 0px;
  padding-left: 0px;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #000;
  padding: 0px 3px;
}

.breadcrumb li:after {
  margin: 0 10px;
}

.breadcrumb li:last-child:after {
  margin: 0;
}


/* Lexxy css */
lexxy-editor.form-control .lexxy-content__table-wrapper {
  margin: 0;
  margin-block: 1ch;
  overflow-x: auto;
}

lexxy-editor.form-control table {
  border-collapse: collapse;
  border-spacing: 0;
  inline-size: calc(100% - 0.5ch);
  margin: 0.25ch;
}

lexxy-editor.form-control table th,
lexxy-editor.form-control table td {
  border: 1px solid var(--lexxy-color-table-cell-border);
  min-width: 5ch;
  max-width: 50ch;
  padding: 1ch;
  text-align: start;
  word-break: normal;
}

lexxy-editor.form-control table th.lexxy-content__table-cell--header,
lexxy-editor.form-control table td.lexxy-content__table-cell--header {
  background-color: var(--lexxy-color-table-header-bg);
  font-weight: bold;
}

.cms-video,
.cms-video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

.cms-video-embed {
  margin-bottom: 1rem;
}

.advertisement-status {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 50rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.advertisement-status.published {
  background-color: #198754;
  color: white;
  --bs-table-bg: #198754;
}

.advertisement-status.rejected {
  background-color: #ffc107;
  color: #212529;
  --bs-table-bg: orange;
}

.advertisement-status.expired {
  background-color: #6c757d;
  color: white;
  --bs-table-bg: #6c757d;
}

.navbar-dropdown-icon {
  font-size: 0.75rem;
}

.market-section {
  margin-bottom: 1.5rem;
}

.market-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.market-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.market-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.advertisement-card {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.advertisement-card:hover,
.advertisement-card:focus-within {
  border-color: #adb5bd;
  transform: translateY(-1px);
}

.advertisement-card-image {
  height: 220px;
  object-fit: cover;
  background: #f1f3f5;
}

.category-card {
  display: block;
}

.category-card-media {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: #f8f9fa;
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f9fa;
}

.category-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #adb5bd;
  font-size: 2rem;
}

.category-card-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2rem 0.75rem 0.6rem;
  background: linear-gradient(to bottom, rgba(73, 80, 87, 0), rgba(10, 10, 10, 0.92));
  color: #fff;
}

.category-card-overlay h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.category-card-body {
  padding: 0.85rem;
}

.category-card-body p {
  margin: 0;
  color: #6c757d;
  font-size: 0.925rem;
}

.home-marketplace {
  padding-top: 1rem;
}

.home-topbar {
  display: grid;
  grid-template-columns: minmax(80px, 120px) 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
}

.home-logo {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.home-category-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
}

.home-category-nav a {
  color: #495057;
  font-weight: 600;
  white-space: nowrap;
}

.home-menu-button {
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.home-banner-carousel {
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
}

.home-banner-image,
.home-banner-placeholder {
  object-fit: cover;
  background: #f8f9fa;
}

.home-banner-image-desktop,
.home-banner-placeholder.home-banner-image-desktop {
  height: 260px;
}

.home-banner-image-mobile,
.home-banner-placeholder.home-banner-image-mobile {
  height: 180px;
}

.home-banner-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-weight: 700;
}

.ad-panel {
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
}

.ad-gallery {
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
}

.ad-gallery-image {
  height: 520px;
  object-fit: contain;
}

.ad-gallery-thumbnails {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border-top: 1px solid #dee2e6;
}

/* Carousel indicators (dots) styling for ad gallery */
.ad-gallery .carousel-indicators {
  bottom: 80px;
}
.ad-gallery .carousel-indicators [data-bs-target],
.ad-gallery .carousel-indicators button {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: #e9ecef;
  border: none;
  opacity: 1;
}
.ad-gallery .carousel-indicators .active,
.ad-gallery .carousel-indicators [aria-current="true"] {
  background-color: #6c757d;
}

@media (max-width: 575px) {
  .ad-gallery .carousel-indicators [data-bs-target],
  .ad-gallery .carousel-indicators button {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

.ad-gallery-thumbnails button {
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  text-indent: 0;
  background: #f8f9fa;
  opacity: 1;
}

.ad-gallery-thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-price {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
  font-weight: 700;
  font-size: 20px;
  color: green;
}

.ad-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.ad-spec-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-spec-item {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
}

.ad-spec-item dt,
.ad-admin-specs dt {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 600;
}

.ad-spec-item dd,
.ad-admin-specs dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ad-admin-specs {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dee2e6;
}

.ad-admin-specs > div {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  gap: 0.75rem;
}

.ad-description {
  line-height: 1.8;
}

.ad-description p:last-child {
  margin-bottom: 0;
}

.ad-contain-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f8f9fa;
}

.admin-table {
  font-size: 0.925rem;
}

.admin-thumb {
  width: 80px;
  height: 56px;
  object-fit: cover;
}

.toggle-check {
  cursor: pointer;
}

.action-inline-form {
  display: inline-block;
}

.form-error-block {
  color: #dc3545;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border: 1px solid #212529;
  border-radius: 6px;
}

.audit-toggle {
  padding: 0;
  border: 0;
}

.audit-field-col {
  width: 25%;
}

.audit-value-col {
  width: 37.5%;
}

.developed-by-logo {
  height: 60px;
  width: auto;
}

.post-image-cell {
  width: 25%;
}

.ad-gallery .carousel-control-prev,
.ad-gallery .carousel-control-next {
  position: absolute;
  z-index: 3;
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  opacity: 0.95;
}

.ad-gallery .carousel-control-prev-icon,
.ad-gallery .carousel-control-next-icon {
  width: 18px;
  height: 18px;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
}

.ad-gallery .carousel-control-prev {
  right: 12px;
  left: auto;
}

.ad-gallery .carousel-control-next {
  left: 12px;
  right: auto;
}

.ad-gallery-modal .modal-content {
  background: rgba(15, 15, 15, 0.96);
  border-radius: 12px;
  overflow: hidden;
}

.ad-gallery-modal .modal-body {
  min-height: 70vh;
  padding: 1.5rem !important;
}

.ad-gallery-modal-image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.ad-gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;

  width: 2.5rem;
  height: 2.5rem;
  padding: 0.65rem;

  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  opacity: 1;
}

.ad-gallery-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 1;
}

@media (max-width: 575.98px) {
  .ad-gallery-modal .modal-content {
    border-radius: 0;
  }

  .ad-gallery-modal .modal-body {
    min-height: 100vh;
    padding: 1rem !important;
  }

  .ad-gallery-modal-image {
    max-height: 90vh;
    border-radius: 0;
  }

  .ad-gallery-modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

@media (max-width: 575px) {
  .ad-gallery .carousel-control-prev,
  .ad-gallery .carousel-control-next {
    width: 36px;
    height: 36px;
  }

  .ad-gallery .carousel-control-prev-icon,
  .ad-gallery .carousel-control-next-icon {
    width: 14px;
    height: 14px;
    background-size: 14px 14px;
  }
}

@media (max-width: 991px) {
  .ad-gallery-image {
    height: 340px;
  }

  .ad-spec-grid {
    grid-template-columns: 1fr;
  }

  .market-section-header h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 575px) {
  .advertisement-card-image {
    height: 160px;
  }

  .category-card-media {
    height: 160px;
  }

  .ad-gallery-image {
    height: 280px;
  }

  .ad-panel {
    padding: 0.85rem;
  }

  .ad-admin-specs > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
@media (max-width: 800px) {
  .cms-hero {
    min-height: 280px;
  }

  .cms-hero-content {
    padding: 1.5rem;
  }

  .cms-hero.has-image .cms-hero-content {
    margin: 1rem;
  }

  .page-block-editor-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .page-block-editor-actions {
    justify-content: flex-start;
  }
}

.advertising-layout {
  display: grid;
}
.advertising-content {
  min-width: 0;
}
.advertising-main {
  min-width: 0;
}
.advertising-banner {
  margin-block: 1rem;
  text-align: center;
}
.advertising-banner--top,
.advertising-banner--middle {
  /* width: 728px;   */
  max-width: 100%;
  margin-inline: auto;
}
.advertising-banner-image {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: fill;
  margin-inline: auto;
}
.advertising-banner--side .advertising-banner-image {
  max-width: 300px;
  max-height: 800px !important;
  height: 1500px !important;

  aspect-ratio: 1 / 2;
}
.advertising-sidebar {
  width: 250px;
  max-width: 100%;
  justify-self: center;
}
@media (min-width: 1200px) {
  .advertising-layout--with-side {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}
