/* ==========================================================================
   Jean d'Arcel Việt Nam - Mẫu 8312 Custom Styles
   Colors: Gray (#6b7280), Dark gray (#4b5563), Gold Accent (#c5a880) — tông xám nhạt theo jda.de
   ========================================================================== */

:root {
  --jda-blue: #6b7280;
  --jda-dark: #4b5563;
  --jda-navy: #4b5563;
  --jda-light: #f5f5f5;
  --jda-gold: #c5a880;
  --jda-gold-dark: #a6855b;
  --jda-gray: #f8f9fa;
  --jda-border: #e2e8f0;
}

body {
  font-family: 'Mulish', sans-serif;
  color: #334155;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Josefin Sans', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--jda-blue);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--jda-blue);
}
.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Swiper custom overrides */
.swiper-pagination-bullet {
  background: #ffffff !important;
  opacity: 0.6 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
}
.swiper-pagination-bullet-active {
  background: #fbbf24 !important;
  opacity: 1 !important;
  width: 24px !important;
  border-radius: 5px !important;
}

.heroSwiper .swiper-button-next::after,
.heroSwiper .swiper-button-prev::after {
  display: none !important;
  content: "" !important;
}
.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Animations */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scaleUp {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Google Translate hidden attribution banner */
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-te-gadget-icon {
  display: none !important;
}
.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 11px !important;
}

/* ==========================================================================
   IMAGE QUALITY, CRISP RENDERING & ANTI-BLUR RULES
   Prevents low-res stretching and ensures sharp rendering across all viewports
   ========================================================================== */

/* Standard Content Images (Prose / Blog / Pages / Articles) */
.prose img,
.prose-slate img,
article img,
.entry-content img,
.content-body img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 0.875rem;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.08);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

/* Aligned Images */
img.aligncenter,
.aligncenter {
  display: block !important;
  margin: 1.5rem auto !important;
  text-align: center;
}

img.alignleft,
.alignleft {
  float: left !important;
  margin: 0.5rem 1.5rem 1rem 0 !important;
}

img.alignright,
.alignright {
  float: right !important;
  margin: 0.5rem 0 1rem 1.5rem !important;
}

/* Captions and figures */
figure,
.wp-caption {
  max-width: 100% !important;
  margin: 1.5rem auto !important;
  text-align: center;
}

figcaption,
.wp-caption-text {
  font-size: 0.825rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

/* Crisp rendering on Retina & High-DPI screens */
img {
  image-rendering: auto;
}

/* Responsive Video & Iframes (YouTube / Vimeo / Embeds) */
.prose iframe,
.prose-slate iframe,
article iframe,
.entry-content iframe {
  max-width: 100% !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  border-radius: 1rem !important;
  margin: 1.5rem 0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
  border: none !important;
}


/* Tiêu đề mục kiểu jda.de: in hoa, nét mảnh, giãn chữ rộng */
h1.font-heading.uppercase,
h2.font-heading.uppercase {
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #1f2937;
}
