/* Custom brand overrides */
:root {
  --brand-dark: #1e3a5f; /* deep blue bottom/edges */
  --brand-mid:  #2f5d79; /* medium blue top */
  --glow:       rgba(255,255,255,.28); /* soft glow */
  --brand-gradient: linear-gradient(180deg, var(--brand-mid) 0%, var(--brand-dark) 100%);
  /* Bootstrap primary base color (used for text-primary etc.) */
  --bs-primary: var(--brand-mid);
}

.auction-price-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.auction-price-board .tile {
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(30,58,95,.08);
}
.auction-price-board .tile .label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
  color: #6b7280; /* gray-500 */
  font-weight: 700;
}
.auction-price-board .tile .value {
  font-weight: 800;
  font-size: clamp(1.1rem, 1.4vw + .6rem, 1.6rem);
  line-height: 1.1;
  color: #0f172a; /* slate-900 */
}
.auction-price-board .tile.current {
  background-image: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
}
.auction-price-board .tile.current .label { color: rgba(255,255,255,.9); }
.auction-price-board .tile.current .value {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.auction-price-board .tile.next {
  background: #ffffff;
  border: 1px solid rgba(47,93,121,.25);
}
.auction-price-board .tile.next .value { color: var(--brand-mid); }
@media (max-width: 576px) {
  .auction-price-board { grid-template-columns: 1fr; }
}

/* Primary surfaces use gradient */
.btn-primary,
.bg-primary,
.badge.bg-primary,
.list-group-item.active,
.pagination .page-item.active .page-link,
.nav-pills .nav-link.active,
.dropdown-item.active,
.btn--primary {
  color: #fff !important;
  background-image: var(--brand-gradient) !important;
  background-color: var(--brand-mid) !important; /* fallback for older browsers */
  border-color: var(--brand-dark) !important;
}

/* Outline primary */
.btn-outline-primary {
  color: var(--brand-mid) !important;
  border-color: var(--brand-mid) !important;
  background-image: none !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  color: #fff !important;
  background-image: var(--brand-gradient) !important;
  border-color: var(--brand-dark) !important;
}

/* Text and border primary */
.text-primary { color: var(--brand-mid) !important; }
.border-primary { border-color: var(--brand-mid) !important; }

/* Focus rings / glow */
.btn-primary:focus,
.btn-outline-primary:focus,
.form-control:focus,
.form-select:focus,
.page-link:focus {
  box-shadow: 0 0 0 .25rem var(--glow) !important;
  outline: 0;
}

/* Global typography: Inter for body, Montserrat for headings */
html, body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  font-size: 16px; /* Balanced: base 16 on mobile */
  line-height: 1.65;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Montserrat', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px; /* Balanced */
}

/* Balanced: raise base font-size on larger screens */
@media (min-width: 576px) {
  html, body { font-size: 17px; }
}
@media (min-width: 992px) {
  html, body { font-size: 18px; }
}

/* Balanced: heading scales (adaptive) */
h1, .h1 { font-size: clamp(32px, 4vw + 1rem, 44px); }
h2, .h2 { font-size: clamp(26px, 3vw + 0.8rem, 36px); }
h3, .h3 { font-size: clamp(22px, 2vw + 0.6rem, 28px); }
h4, .h4 { font-size: clamp(18px, 1.2vw + 0.5rem, 22px); }
/* h5/h6 step with breakpoints */
h5, .h5 { font-size: 16px; }
@media (min-width: 576px) { h5, .h5 { font-size: 17px; } }
@media (min-width: 992px) { h5, .h5 { font-size: 18px; } }
h6, .h6 { font-size: 14px; }
@media (min-width: 576px) { h6, .h6 { font-size: 15px; } }
@media (min-width: 992px) { h6, .h6 { font-size: 16px; } }

/* Balanced: heading weights (h4–h6 slightly lighter) */
h4, .h4, h5, .h5, h6, .h6 { font-weight: 600; }

/* Hover/active states */
.btn-primary:hover,
.nav-pills .nav-link.active:hover,
.list-group-item.active:hover,
.pagination .page-item.active .page-link:hover {
  filter: brightness(1.02);
}
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
  filter: brightness(0.98);
}

/* Primary links */
a.link-primary,
a.text-primary:hover {
  color: var(--brand-mid) !important;
}

/* Optional legacy badge class */
.badge-primary {
  color: #fff !important;
  background-image: var(--brand-gradient) !important;
  background-color: var(--brand-mid) !important;
  border-color: var(--brand-dark) !important;
}

/* Logo sizing and fixes (admin header/classes) */
.header-brand-img,
.logo-horizontal .header-brand-img,
.header-brand1 .header-brand-img {
  max-height: 44px;
  width: auto !important; /* override .img-fluid { width:100% } */
  height: auto;
  max-width: 100%;
}

@media (max-width: 576px) {
  .header-brand-img,
  .logo-horizontal .header-brand-img,
  .header-brand1 .header-brand-img { max-height: 36px; }
}

@media (min-width: 1200px) {
  .header-brand-img,
  .logo-horizontal .header-brand-img,
  .header-brand1 .header-brand-img { max-height: 48px; }
}

/* Maintain testimonials overflow fixes */
.testimonial-section { overflow-x: hidden; background: none !important; background-image: none !important; }
.testimonial-section::before,
.testimonial-section::after { background: none !important; background-image: none !important; }
.swiper { width: 100%; overflow: hidden; }
.swiper .swiper-slide img { max-width: 100%; height: auto; }

/* Live Auction - Ad Gallery styling */
.ad-gallery { --gallery-radius: 16px; --gallery-bg: #0b1d2e; --gallery-shadow: 0 14px 40px rgba(30,58,95,.25); }

.ad-gallery .ad-gallery-main {
  border-radius: var(--gallery-radius);
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--gallery-bg), var(--gallery-bg)) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: var(--gallery-shadow);
  position: relative;
}

.ad-gallery .ad-gallery-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 400px at 50% 10%, rgba(255,255,255,.05), transparent), var(--gallery-bg);
  aspect-ratio: 16 / 10;
  min-height: 320px; /* fallback for browsers without aspect-ratio */
}

@media (min-width: 576px) {
  .ad-gallery .ad-gallery-main .swiper-slide { min-height: 380px; }
}
@media (min-width: 992px) {
  .ad-gallery .ad-gallery-main .swiper-slide { min-height: 440px; }
}

.ad-gallery .ad-gallery-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep full image visible */
}

/* Make the zoom anchor fill the slide for full click area */
.ad-gallery .ad-gallery-main .swiper-slide .ad-gallery-zoom {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.ad-gallery .ad-gallery-main .swiper-slide .ad-gallery-zoom img { display: block; }

/* Navigation buttons */
.ad-gallery .ad-gallery-main .swiper-button-next,
.ad-gallery .ad-gallery-main .swiper-button-prev {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(47,93,121,.4);
  top: 50%;
  transform: translateY(-50%);
}
.ad-gallery .ad-gallery-main .swiper-button-next::after,
.ad-gallery .ad-gallery-main .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}
.ad-gallery .ad-gallery-main .swiper-button-prev { left: 12px; }
.ad-gallery .ad-gallery-main .swiper-button-next { right: 12px; }
@media (max-width: 576px) {
  .ad-gallery .ad-gallery-main .swiper-button-next,
  .ad-gallery .ad-gallery-main .swiper-button-prev { width: 36px; height: 36px; }
}

/* Thumbnails */
.ad-gallery .ad-gallery-thumbs { padding-top: 6px; padding-bottom: 2px; }
.ad-gallery .ad-gallery-thumbs .swiper-slide {
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--gallery-bg), var(--gallery-bg)) padding-box,
    rgba(255,255,255,.15) border-box;
  cursor: pointer;
  opacity: .85;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease, filter .2s ease;
}
@media (max-width: 576px) {
  .ad-gallery .ad-gallery-thumbs .swiper-slide { height: 64px; }
}
.ad-gallery .ad-gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-gallery .ad-gallery-thumbs .swiper-slide:hover { opacity: 1; filter: brightness(1.05); }
.ad-gallery .ad-gallery-thumbs .swiper-slide-thumb-active {
  background:
    linear-gradient(var(--gallery-bg), var(--gallery-bg)) padding-box,
    var(--brand-gradient) border-box;
  box-shadow: 0 0 0 .2rem var(--glow);
  opacity: 1;
  transform: translateY(-1px);
}

/* Prevent WOW.js delayed init from flashing content */
.wow { visibility: visible !important; }

@media (max-width: 576px) {
  .testimonial-section .vector,
  .testimonial-section [data-decorative="true"] {
    display: none !important;
  }
}

/* Global mobile overflow fixes */
body {
  overflow-x: hidden;
}

/* Header collapse sizing */
@media (max-width: 991.98px) {
  .header-ornament .navbar .navbar-collapse { max-height: 70vh; overflow-y: auto; }
}

/* Header ornament and creative navbar */
.header-ornament {
  position: relative;
  overflow: visible;
  background: transparent !important; /* remove ornamental background */
  border-bottom: 0;
}
.header-ornament::before {
  content: none; /* remove top accent stripe */
  display: none;
}
.header-ornament .navbar {
  background: rgba(255,255,255,.84); /* translucent panel */
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(30,58,95,.08);
  padding: 8px 12px;
  z-index: 10;
}
.header-ornament .navbar .nav-link { margin: 0 .25rem; }
.header-ornament .navbar-nav .nav-link { font-weight: 600; font-size: 16px; letter-spacing: 0.2px; }
.header-ornament .navbar-actions { gap: .5rem; }
.header-ornament .dropdown-menu { border-radius: 12px; box-shadow: 0 10px 30px rgba(30,58,95,.12); }

/* Desktop top contacts band */
.header-ornament .header-contacts-inner .phone { color: #4b4b4b; }
.header-ornament .header-contacts-inner .phone i { color: var(--brand-mid); }
.header-ornament .header-contacts-inner .social a {
  color: #4b4b4b;
  opacity: .9;
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}
.header-ornament .header-contacts-inner .social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Messenger brand colors (desktop header) */
.header-ornament .header-contacts-inner .social i {
  transition: transform .2s ease, opacity .2s ease, color .2s ease, background .2s ease;
  display: inline-block;
}
.header-ornament .header-contacts-inner .social i.fa-tiktok { color: #EE1D52; }
.header-ornament .header-contacts-inner .social i.fa-telegram { color: #229ED9; }
.header-ornament .header-contacts-inner .social i.fa-whatsapp { color: #25D366; }
.header-ornament .header-contacts-inner .social i.fa-viber { color: #7360F2; }
.header-ornament .header-contacts-inner .social i.fa-instagram {
  background: linear-gradient(45deg, #F58529, #FEDA77, #DD2A7B, #8134AF, #515BD4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Mobile contacts row under click-to-call */
.header-contacts-mobile .mobile-social { font-size: 18px; color: #444; }
.header-contacts-mobile .mobile-social:hover { color: var(--brand-mid); }

/* Messenger brand colors (mobile header) */
.header-contacts-mobile i {
  transition: transform .2s ease, opacity .2s ease, color .2s ease, background .2s ease;
  display: inline-block;
}
.header-contacts-mobile i.fa-tiktok { color: #EE1D52; }
.header-contacts-mobile i.fa-telegram { color: #229ED9; }
.header-contacts-mobile i.fa-whatsapp { color: #25D366; }
.header-contacts-mobile i.fa-viber { color: #7360F2; }
.header-contacts-mobile i.fa-instagram {
  background: linear-gradient(45deg, #F58529, #FEDA77, #DD2A7B, #8134AF, #515BD4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.header-ornament .navbar-actions .lang-switch .nav-link i {
  color: var(--brand-mid);
  transition: color .2s ease;
}
.header-ornament .navbar-actions .lang-switch .nav-link:hover i {
  color: var(--brand-dark);
}

@media (max-width: 991.98px) {
  /* background-size removed intentionally */
  .header-ornament .navbar {
    border-radius: 10px; box-shadow: 0 8px 24px rgba(30,58,95,.10);
    flex-direction: column; /* stack left and right blocks */
    align-items: stretch;
    position: relative; /* anchor actions top-right */
    padding-right: 64px; /* reserve space for toggler + globe */
  }
  .header-ornament .navbar > .h-100 { width: 100%; display: flex; align-items: center; min-height: 52px; }
  .header-ornament .navbar-brand img { height: 40px; width: auto; max-height: none; }
  /* Actions (toggler + language) in the top-right */
  .header-ornament .navbar-actions { position: absolute; right: 12px; top: 8px; display: flex; align-items: center; gap: .5rem; z-index: 5; }
  .header-ornament .navbar-actions .navbar-toggler { padding: .25rem .5rem; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; }
  .header-ornament .navbar-actions .navbar-toggler:focus { box-shadow: none !important; outline: none !important; }
  .header-ornament .navbar-actions .navbar-toggler .navbar-toggler-icon { width: 36px; height: 36px; }
  .header-ornament .navbar-actions .lang-switch .nav-link { padding: 0; border: 0; background: transparent; box-shadow: none; display: flex; align-items: center; }
  .header-ornament .navbar-actions .lang-switch i { font-size: 26px; }
  /* Bottom row becomes block so collapse takes full width */
  .header-ornament .navbar > .d-flex.flex-column > .d-flex { display: block; }
  .header-ornament .navbar .navbar-collapse { margin-top: .25rem; width: 100%; }
}

/* Mobile navbar: ordering follows DOM; spacing handled by base rules */

/* Desktop: keep menu before actions and hide toggler */
@media (min-width: 992px) {
  .header-ornament .navbar .navbar-brand { order: 1; }
  .header-ornament .navbar .navbar-collapse { order: 2; }
  .header-ornament .navbar .navbar-actions { order: 3; }
  .header-ornament .navbar .navbar-actions .navbar-toggler { display: none !important; }

  /* Desktop: two-column header (logo left, two rows right) */
  .header-ornament .navbar { align-items: center; }
  .header-ornament .navbar > .h-100 { flex: 0 0 auto; display: flex; align-items: center; margin-right: 1rem; }
  .header-ornament .navbar-brand { display: flex; align-items: center; }
  .header-ornament .navbar-brand img { height: 80px; width: auto; max-height: none; }
  .header-ornament .navbar > .d-flex.flex-column { flex: 1 1 auto; gap: .25rem; }
  .header-ornament .header-contacts-inner { padding-top: .25rem; padding-bottom: .25rem; }

  /* Bottom row: menu left, actions right regardless of DOM order */
  .header-ornament .navbar > .d-flex.flex-column > .d-flex { align-items: center; }
  .header-ornament .navbar > .d-flex.flex-column > .d-flex .navbar-collapse { order: 1; flex: 1 1 auto; }
  .header-ornament .navbar > .d-flex.flex-column > .d-flex .navbar-actions { order: 2; margin-left: auto; }
}

/* Ensure slick tracks are clipped */
.slick-list { overflow: hidden; }

/* Remove slick loader gif to avoid 404 */
.slick-loading .slick-list { background: #fff none !important; }

/* Sponsor logos sizing for consistency */
.sponsor-section .slide-item img { max-height: 64px; width: auto; height: auto; }

/* Media safety */
img, video, svg {
  max-width: 100%;
  height: auto;
}

/* Global decorative image hiding + dotted background on small screens */
@media (max-width: 576px) {
  [data-decorative="true"],
  .dotted3 {
    display: none !important;
  }
}

/* Prevent horizontal scroll on key sections */
.live-auction,
.upcoming-seciton,
.sponsor-section,
.recent-news-section,
.category-section2,
.hero-area.hero-style-two { position: relative; overflow-x: hidden; }

/* Provide hero background fallback to avoid missing banner2-bg.png */
.hero-area.hero-style-two {
  background: var(--brand-gradient) !important;
  background-size: cover;
  background-position: center;
}

/* Trim hero spacing on mobile */
@media (max-width: 576px) {
  .hero-area.hero-style-two { padding-top: 64px; padding-bottom: 64px; }
  .hero-area.hero-style-two .banner2-content h1 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
  .hero-area.hero-style-two .banner2-content p { margin-bottom: 16px; }
}

.pt-120 { padding-top: 10px; }

.wow, .wow.animated { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Category card - responsive, readable overlay, consistent sizing */
.category-section2 .category2-slider { --cat-radius: 14px; --cat-shadow: 0 12px 32px rgba(30,58,95,.18); }

/* Bid Step radio group styling */
.bid-step-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.bid-step-group .form-check {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.bid-step-group .form-check-input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cdd1d5;
  background-color: #fff;
  margin-top: 0;
  margin-right: 8px;
  display: inline-block;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: none !important;
  outline: none !important;
}
.bid-step-group .form-check-input[type="radio"]:hover {
  border-color: var(--brand-mid);
}
.bid-step-group .form-check-input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 .18rem var(--glow) !important;
}
.bid-step-group .form-check-input[type="radio"]:checked {
  border-color: var(--brand-mid);
  /* ring style: brand ring with white center */
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 56%, transparent 57%),
    var(--brand-mid);
}
.bid-step-group .form-check-label {
  margin: 0;
  font-weight: 600;
  color: #333;
  vertical-align: middle;
}
@media (max-width: 576px) {
  .bid-step-group { gap: 10px; }
  .bid-step-group .form-check-label { font-weight: 600; }
}

.category-section2 .category-card2 {
  position: relative;
  border: 0;
  border-radius: var(--cat-radius);
  overflow: hidden;
  box-shadow: var(--cat-shadow);
  background: #0b1d2e; /* fallback behind image */
}

.category-section2 .category-card2 .category-img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  aspect-ratio: 16 / 10; /* keep cards uniform */
}
@media (max-width: 576px) {
  .category-section2 .category-card2 .category-img { height: 160px; }
}
@media (min-width: 992px) {
  .category-section2 .category-card2 .category-img { height: 220px; }
}

/* readable gradient overlay */
.category-section2 .category-card2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.category-section2 .category-card2 .content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  z-index: 1;
}

.category-section2 .category-card2 .category-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 6px;
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
@media (max-width: 576px) {
  .category-section2 .category-card2 .category-icon { width: 32px; height: 32px; flex-basis: 32px; padding: 4px; }
}

.category-section2 .category-card2 h5 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
@media (max-width: 576px) {
  .category-section2 .category-card2 h5 { font-size: 15px; }
}
