@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #707070;
  --primary: #000000;
  --accent: #666666;
  --border: #e5e5e5;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif; */
  font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", sans-serif;
  /* font-family: "Didot", "Bodoni MT", "Times New Roman", serif; */
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.btn-white{
  background: #ffffff;
  border-color: #e1e1e1;
  color: #000000;
  box-shadow: none;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

/* Navigation */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(229, 229, 229, 0.5);
  padding: 0.5rem 0 !important;
  transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary) !important;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.navbar-custom .brand-logo {
  height: 100px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.navbar-custom .navbar-brand:hover .brand-logo {
  opacity: 0.8;
}

.navbar-custom .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-custom .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::before,
.navbar-custom .nav-link.active::before {
  width: 100%;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

main.container {
  flex: 1 0 auto;
  padding: 0;
  max-width: 100%;
}

/* Hero Section */
.hero-section {
  background: var(--surface);
  padding: 1rem 1rem;
  text-align: center;
}

.hero-section .container-fluid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-section .brand-logo {
  height: 10rem;
  width: auto;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0;
  color: var(--text);
}

.hero-section h1 span {
  display: block;
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.hero-section .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 2rem auto;
  line-height: 1.8;
}

/* Cards */
.card {
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 2rem 0;
}

.card:hover {
  transform: none;
  box-shadow: none;
}

.card-body {
  padding: 0;
}

.filters-panel {
  border: none;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.filter-category {
  border-top: 1px solid var(--border);
  margin: 0;
  padding-top: 0.5rem;
}

.filter-category:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.filter-title {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.filter-options {
  max-height: 220px;
  overflow: auto;
  margin-top: 0.35rem;
}

.filter-options::-webkit-scrollbar {
  width: 6px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 0;
  padding: 0.2rem 0;
  transition: background 0.2s ease;
}

.checkbox-wrap:hover {
  background: transparent;
}

.checkbox-wrap input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
}

.badge {
  font-size: 0.75rem;
  background: #f0f0f0;
  color: var(--text-muted);
  padding: 0 0.45rem;
  border-radius: 999px;
  line-height: 1.6;
}

@media (max-width: 991.98px) {
  .filters-panel {
    max-width: 100%;
  }

  .filter-options {
    max-height: 170px;
  }
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--primary);
}

.card-text,
.text-muted {
  color: var(--text-muted) !important;
}

/* Buttons */
.btn-primary,
.btn-primary:focus,
.btn-primary:hover {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #ffffff;
  box-shadow: none;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #333333;
  border-color: #333333;
}

.btn-secondary,
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--border);
  background: transparent;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  font-weight: 500;
  border: 2px solid var(--border);
}

.btn-outline-primary:hover {
  color: var(--primary);
  background: var(--bg);
  border-color: var(--primary);
}

.btn-danger{
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: none;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-outline-danger{
  color: #ef4444;
  border-color: #ef4444;
  background: transparent;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  font-weight: 500;
  border: 2px solid #ef4444;
}

.btn-outline-secondary{
  color: var(--text-muted);
  border-color: var(--border);
  background: transparent;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  font-weight: 500;
  border: 2px solid var(--border);
}

.btn-success{
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: none;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.btn-info{
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: none;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}


/* Pagination */
.pagination-nav {
  margin-top: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-item {
  margin: 0;
}

.page-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: #000000;
  background: #ffffff;
  border: 1px solid #000000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-radius: 0;
  min-width: 2.5rem;
  text-align: center;
}

.page-link:hover {
  color: #ffffff;
  background: #4c4c4c;
  border-color: #000000;
}

.page-item.active .page-link {
  color: #ffffff;
  background: #000000;
  border-color: #000000;
}

.page-item.active .page-link:hover {
  background: #333333;
  border-color: #333333;
}

footer {
  background: var(--surface);
  color: var(--text-muted);
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--primary);
}

img.img-fluid,
.card-img-top {
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Section Headings */
.section-heading {
  margin-bottom: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.8rem;
}

.section-subtitle {
  color: var(--text);
  font-size: 1rem;
}

.artwork-card .card-body {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.artwork-card .card-footer {
  border-top: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
}

/* Collection Panel */
.collection-panel {
  background: var(--surface);
  padding: 2rem;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--border);
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.collection-header h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 0;
  font-weight: 600;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 1rem;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.collection-grid .collection-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-grid .collection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.collection-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.fallback-image {
  width: 100%;
  height: 100%;
}

.collection-card .card-body {
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  background: transparent;
  color: var(--text);
  padding: 1rem;
  min-height: auto;
}

.fallback-image {
  height: 100%;
  background: var(--bg);
  color: var(--text-muted);
}

.collection-card .card-title {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.collection-card .text-muted {
  color: var(--text-muted) !important;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.collection-card .btn-sm {
  padding: 0.26rem 0.62rem;
  font-size: 0.72rem;
}

.collection-grid .collection-card:nth-child(1) { grid-row: span 1; }
.collection-grid .collection-card:nth-child(3) { grid-row: span 1; }
.collection-grid .collection-card:nth-child(5) { grid-column: span 1; }
.collection-grid .collection-card:nth-child(7) { grid-row: span 1; }
.collection-grid .collection-card:nth-child(9) { grid-column: span 1; }

@media (max-width: 992px) {
  .collection-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .collection-grid .collection-card:nth-child(5),
  .collection-grid .collection-card:nth-child(9),
  .collection-grid .collection-card:nth-child(1),
  .collection-grid .collection-card:nth-child(3),
  .collection-grid .collection-card:nth-child(7) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 576px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card .card-body {
    min-height: 60px;
  }
}

.carousel-card {
  flex: 0 0 calc((100% - 4rem) / 5);
  max-width: calc((100% - 4rem) / 5);
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.carousel .carousel-item {
  padding: 0.5rem 0;
}

/* Responsive */
@media (max-width: 1200px) {
  .carousel-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
  }
}

@media (max-width: 992px) {
  main.container {
    padding: 1.5rem 1rem;
  }

  .page-hero,
  .card {
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .navbar .nav-item {
    margin-bottom: 0.35rem;
  }

  .card-body {
    padding: 1rem;
  }

  .carousel-card {
    flex: 0 0 calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }

  .hero-section {
    padding: 1rem 1rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .page-hero {
    padding: 1.1rem;
  }

  .btn-block-mobile,
  .btn-lg {
    width: 100%;
  }

  .carousel-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero-section {
    padding: 1rem 1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }
}

/* Form Styles */
.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05);
}

.form-label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  /* margin-top: 0.05rem; */
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  color: var(--text);
  margin-left: 0.5rem;
}

/* Page Hero */
.page-hero {
  background: var(--surface);
  border-radius: 0;
  box-shadow: none;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
}

/* Link Styles */
a[href] {
  position: relative;
}

a[href]:hover {
  opacity: 0.7;
}

/* Alert Styles */
.alert {
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
}

.alert-success {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.alert-danger {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.alert-info {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}

/* Gallery overlay */
.card-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.card-img-overlay .overlay-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  border-radius: 4px;
  width: 90%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.collection-card-link:hover .overlay-content {
  opacity: 1;
}

/* ===============================================
   CONTEMPORARY GALLERY HOME PAGE STYLES
   =============================================== */

/* Enhanced Hero Section */
.hero-contemporary {
  /* background-image is set inline from admin (HomePageContent.heroBackgroundImage) */
  background-blend-mode: darken;
  padding: 10rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-position: center;
  background-size: cover;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 0 0;
  text-align: left !important;
  color: #000 !important;
}

.hero-content .text-white,
.hero-content .hero-title,
.hero-content .hero-subtitle-text,
.hero-content .hero-description {
  color: #000 !important;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #000 !important;
  letter-spacing: -0.02em;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0 0 2rem;
}

.hero-subtitle-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

.hero-description {
  font-size: 1.1rem;
  color: #000;
  max-width: 600px;
  margin: 0 0 2rem;
  line-height: 1.8;
}

.btn-lg {
  padding: 0.9rem 2.5rem !important;
  font-size: 1rem !important;
  font-weight: 600;
}

/* Featured Section */
.featured-section {
  background: var(--surface);
  padding: 8rem 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.title-underline {
  width: 50px;
  height: 2px;
  background: var(--primary);
  margin-top: 0.5rem;
}

.section-header > div {
  flex: 1;
  min-width: 250px;
}

/* ===============================================
   FEATURED SLIDER STYLES
   =============================================== */

.featured-slider {
  position: relative;
  width: 100%;
}

/* Main Slider Container */
.slider-main {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 500px;
}

.slider-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.slider-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.slider-image {
  width: 65%;
  height: 100%;
  object-fit: cover;
}

.slider-info {
  width: 35%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.slider-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.slider-artist {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.slider-year {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 1.5rem 0;
}

/* Navigation Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.slider-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.2);
}

.slider-prev {
  left: 2rem;
}

.slider-next {
  right: 2rem;
}

/* Thumbnails */
.slider-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: center;
  overflow-x: auto;
  padding: 1.5rem 0;
  scroll-behavior: smooth;
}

.slider-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.slider-thumbnails::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.thumbnail-item {
  flex: 0 0 80px;
  height: 80px;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover {
  border-color: var(--text-muted);
  transform: scale(1.05);
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

.thumbnail-item.active {
  border-color: var(--primary);
}

.thumbnail-fallback {
  width: 100%;
  height: 100%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.slider-footer {
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .slider-container {
    height: 400px;
  }

  .slider-image {
    width: 60%;
  }

  .slider-info {
    width: 40%;
    padding: 2rem;
  }

  .slider-title {
    font-size: 1.5rem;
  }

  .slider-artist {
    font-size: 1rem;
  }

  .slider-prev {
    left: 1.5rem;
  }

  .slider-next {
    right: 1.5rem;
  }

  .slider-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .slider-container {
    height: 350px;
  }

  .slider-image {
    width: 100%;
  }

  .slider-info {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.95) 100%);
    color: white;
    z-index: 15;
  }

  .slider-title,
  .slider-artist,
  .slider-year {
    color: white;
  }

  .slider-artist {
    color: rgba(255, 255, 255, 0.9);
  }

  .slider-year {
    color: rgba(255, 255, 255, 0.8);
  }

  .slider-prev {
    left: 1rem;
  }

  .slider-next {
    right: 1rem;
  }

  .slider-arrow svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 576px) {
  .slider-container {
    height: 300px;
  }

  .slider-info {
    padding: 1.5rem;
  }

  .slider-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .slider-artist {
    font-size: 0.9rem;
  }

  .slider-year {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .slider-prev,
  .slider-next {
    padding: 0.5rem;
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }

  .slider-thumbnails {
    gap: 0.75rem;
  }

  .thumbnail-item {
    flex: 0 0 60px;
    height: 60px;
  }
}

/* Fallback image */
.fallback-image {
  background: linear-gradient(135deg, var(--bg) 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fallback-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg) 0%, #f5f5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, var(--bg) 0%, #f5f5f5 100%);
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.about-header .section-title {
  margin-bottom: 1rem;
  font-size: 2.5rem;            /* même taille que "Œuvres en vedette" */
  letter-spacing: -0.02em;
}

.about-header .title-underline {
  margin: 0 auto 2rem;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.about-intro {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.about-card {
  padding: 2.5rem;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(102, 102, 102, 0.05));
  border-radius: 8px;
  transition: all 0.3s ease;
}

.about-card:hover .card-icon,
.guarantee-card:hover .card-icon {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(102, 102, 102, 0.1));
  transform: scale(1.08);
}

.card-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.about-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* En-tête repliable des cartes « Qui nous sommes ».
   Sur desktop : rendu identique à avant (icône en haut, titre dessous,
   corps toujours visible, chevron masqué). Le comportement accordéon n'est
   activé que sur mobile — voir @media (max-width:576px). */
.about-card-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: default;
}

.about-card-chevron {
  display: none;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--surface) 0%, #fafaf9 100%);
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 100% 50%, rgba(102, 102, 102, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.02) 0%, transparent 40%);
  pointer-events: none;
}

.cta-content {
  max-width: 950px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content .section-title {
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.cta-content .title-underline {
  margin: 0 auto 2.5rem;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cta-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.faq-section {
  margin-bottom: 3rem;
  text-align: left;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.faq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.faq-header .card-icon {
  margin-bottom: 1rem;
}

.faq-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--primary);
  text-align: center;
  letter-spacing: -0.01em;
}

.accordion {
  border: none;
  gap: 0.75rem;
}

.accordion-item {
  background: transparent;
  border: none;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-button {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: none;
  padding: 1.2rem 0;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.accordion-button.collapsed {
  color: var(--text-muted);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: translateY(-50%) rotate(0deg);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
  outline: none;
}

.accordion-button:hover:not(.collapsed) {
  color: var(--primary);
}

.accordion-collapse {
  background: transparent;
}

.accordion-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 1.2rem 0 1.5rem 0;
  background: transparent;
  border: none;
}

.cta-section .btn-lg {
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 992px) {
  /* Mobile : on empile la photo (bande en haut, tête excentrée à droite)
     et le texte (en dessous), au lieu de superposer le texte sur l'image
     de fond rognée qui n'apparaissait que comme une "tache sombre".
     La bande réutilise l'image hero posée en inline par l'admin. */
  .hero-contemporary {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }

  .hero-contemporary::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 440px;                /* évite une bande trop haute sur tablette */
    background-image: inherit;        /* réutilise l'image hero inline */
    background-size: cover;
    background-position: 75% center;   /* cadre sur la tête (excentrée à droite) */
    background-repeat: no-repeat;
    background-color: #eceae7;         /* fond neutre clair de secours */
  }

  /* le texte est dans un .container-fluid (.px-4) : on lui met un fond blanc
     plein pour masquer l'image de fond de la section dans ses gouttières */
  .hero-contemporary > .container-fluid {
    width: 100%;
    background: #fff;
  }

  .hero-content {
    max-width: 100%;
    margin: 0;
    padding: 2.5rem 1.75rem;
    background: #fff;
    color: #000 !important;
    /* annule l'ancien panneau translucide */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .featured-section,
  .about-section,
  .cta-section,
  .buyer-guarantee-section {
    padding: 5rem 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
  }

  .about-grid,
  .guarantee-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-contemporary {
    padding: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle-text {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .featured-section,
  .about-section,
  .cta-section,
  .buyer-guarantee-section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-header {
    gap: 1rem;
  }

  .section-header > a.btn {
    width: 100%;
  }

  .about-card,
  .guarantee-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
  }

  .about-card h3,
  .guarantee-card h3 {
    font-size: 1.1rem;
  }

  .faq-section {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-contemporary {
    padding: 0;
  }

  .hero-content {
    padding: 2rem 1.25rem;
    border-radius: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle-text {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .featured-section,
  .about-section,
  .cta-section,
  .buyer-guarantee-section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* "Qui nous sommes" : même taille que "Œuvres en vedette" (1.8rem)
     + description resserrée pour éviter le long bloc sur mobile */
  .about-header {
    margin-bottom: 2rem;
  }

  .about-header .section-title {
    font-size: 1.8rem;
  }

  .about-header .title-underline {
    margin: 0 auto 1.25rem;
  }

  .about-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  /* Cartes « Qui nous sommes » en accordéon (mobile uniquement) :
     en-tête cliquable (icône + titre + chevron) et corps replié animé.
     Fermées par défaut ; le 1er item est ouvert au chargement (via JS). */
  .about-card {
    padding: 0;
  }

  .about-card-header {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
  }

  .about-card .card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    flex: 0 0 auto;
  }

  .about-card .card-icon svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .about-card h3 {
    flex: 1;
    margin: 0;
    font-size: 1.05rem;
  }

  .about-card-chevron {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    color: #888;
    font-size: 1rem;
    transition: transform 0.3s ease;
  }

  .about-card.is-open .about-card-chevron {
    transform: rotate(180deg);
  }

  .about-card-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .about-card.is-open .about-card-body {
    grid-template-rows: 1fr;
  }

  /* le wrapper (sans padding) est l'élément de grille : il peut se réduire à 0,
     donc rien ne dépasse quand la carte est fermée */
  .about-card-body-inner {
    overflow: hidden;
    min-height: 0;
  }

  .about-card-body p {
    margin: 0;
    padding: 0 1.25rem 1.25rem;
  }

  .about-grid,
  .guarantee-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .cta-section .btn-lg {
    width: 100%;
  }

  .faq-section {
    padding: 1.5rem;
  }

  .faq-title {
    font-size: 1.4rem;
  }

  .accordion-button {
    padding: 1rem 0;
    font-size: 0.95rem;
  }

  .accordion-body {
    font-size: 0.9rem;
    padding: 1rem 0 1.2rem 0;
  }
}

/* Buyer Guarantee Section */
.buyer-guarantee-section {
  background: linear-gradient(135deg, var(--bg) 0%, #f5f5f5 100%);
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.buyer-guarantee-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.guarantee-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.guarantee-header .section-title {
  margin-bottom: 1rem;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.guarantee-header .title-underline {
  margin: 0 auto 2rem;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.guarantee-card {
  padding: 2.5rem;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.guarantee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.guarantee-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.guarantee-card:hover::before {
  transform: scaleX(1);
}



.guarantee-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.guarantee-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .buyer-guarantee-section {
    padding: 5rem 2rem;
  }

  .guarantee-grid {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .buyer-guarantee-section {
    padding: 3rem 1.5rem;
  }

  .guarantee-card {
    padding: 1.5rem;
  }

  .guarantee-card-number {
    font-size: 2.5rem;
  }

  .guarantee-card h3 {
    font-size: 1.1rem;
  }
}

/* Contact Section */
.contact-section {
  background: var(--surface);
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header .section-title {
  margin-bottom: 1rem;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.contact-header .title-underline {
  margin: 0 auto 2rem;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.contact-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.contact-form-wrapper {
  background: var(--bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: capitalize;
}

.contact-form .form-control {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.05);
}

.contact-form .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 0.05rem;
}

.contact-form .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.contact-form .g-recaptcha {
  margin: 1rem 0;
}

@media (max-width: 992px) {
  .contact-section {
    padding: 5rem 2rem;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 3rem 1.5rem;
  }

  .contact-header .section-title {
    font-size: 1.8rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-header .section-title {
    font-size: 1.5rem;
  }

  .contact-form .form-control {
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem;
  }

  .contact-form-wrapper {
    padding: 1rem;
  }
}

/* Footer Styles */
.collection-grid-section {
  background: #46464628;
  padding: 6rem 2rem;
}

.collection-grid-section-2 {
  background: #46464628;
  padding-top: 1rem;
  padding-right: 2rem;
  padding-bottom: 6rem;
  padding-left: 2rem;
}

.collection-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.collection-grid-header .section-title {
  color: #000000;
  margin: 0;
  font-size: 2.5rem;
}

.collection-grid-header .btn {
  white-space: nowrap;
}

.artworks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 375px 375px;
  grid-template-areas:
    "left top    right"
    "left bottom right";
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.artwork-grid-item {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
  border-radius: 18px;
}

/* Emplacements de la section « Œuvres en vedette »
   (pilotés depuis l'admin via Artwork.featuredSlot) */
.artwork-slot-1 { grid-area: left; }    /* grande gauche */
.artwork-slot-2 { grid-area: top; }     /* centre haut */
.artwork-slot-3 { grid-area: bottom; }  /* centre bas */
.artwork-slot-4 { grid-area: right; }   /* grande droite */

.artwork-grid-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.artwork-grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.artwork-grid-link:hover .artwork-grid-image {
  transform: scale(1.05);
}

.artwork-grid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artwork-grid-link:hover .artwork-grid-overlay {
  opacity: 1;
}

.artwork-grid-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.artwork-grid-artist {
  color: #cccccc;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 400;
}

.fallback-image {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .collection-grid-section {
    padding: 4rem 1.5rem;
  }

  .collection-grid-section-2 {
    padding: 4rem 1.5rem;
  }

  .artworks-grid {
    grid-template-rows: 240px 240px;
    gap: 1.2rem;
  }

  .collection-grid-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
  }

  .collection-grid-header .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .collection-grid-section {
    padding: 2rem 1rem;
  }

  .collection-grid-section-2 {
    padding: 2rem 1rem;
  }

  /* Mobile : grille 2x2, 4 tuiles parfaitement identiques */
  .artworks-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-template-areas: none;
    gap: 1rem;
  }

  /* placement naturel en 2x2 : on annule les emplacements desktop */
  .artwork-slot-1,
  .artwork-slot-2,
  .artwork-slot-3,
  .artwork-slot-4 {
    grid-area: auto;
  }

  /* chaque tuile = carré identique, image recadrée pour remplir tout le cadre */
  .artwork-grid-item {
    aspect-ratio: 1 / 1;
  }

  .artwork-grid-link {
    height: 100%;
  }

  .artwork-grid-image {
    height: 100%;
    object-fit: cover;
  }

  .collection-grid-header .section-title {
    font-size: 1.8rem;
  }
}

/* ===============================================
   GLOBAL RESPONSIVE FIXES
   =============================================== */

/* Allow cards to wrap content without overflow */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll on narrow viewports */
html, body {
  overflow-x: hidden;
}

/* Tablet step for the homepage featured grid (between 576 and 992) */
@media (min-width: 577px) and (max-width: 991.98px) {
  .artworks-grid {
    grid-template-rows: 200px 200px;
  }
}

/* Gallery list view: stack image and details on mobile */
@media (max-width: 767.98px) {
  .collection-list .collection-card {
    grid-template-columns: 1fr !important;
  }

  .collection-list .card-image-container {
    min-height: 200px;
    max-height: 320px;
  }

  .collection-list .details-actions .btn {
    flex: 1 1 auto;
  }

  .collection-list .details-actions {
    width: 100%;
  }
}

/* Gallery filters sidebar adjustments on mobile */
@media (max-width: 991.98px) {
  .filters-panel {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
  }
}

/* Artwork show page: kill the desktop-only inline padding on info column */
@media (max-width: 991.98px) {
  .artwork-info-col {
    padding-left: 0 !important;
    padding-top: 1rem;
  }

  .news-content-col {
    padding-left: 0 !important;
    padding-top: 2rem;
  }
}

/* About-grid: avoid 320px overflow on very small phones */
@media (max-width: 400px) {
  .about-grid,
  .guarantee-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Feedbacks section: reduce padding on small screens */
@media (max-width: 992px) {
  .feedbacks-section {
    padding: 4rem 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .feedbacks-section {
    padding: 2.5rem 1rem !important;
  }

  .feedback-card {
    padding: 20px !important;
    min-height: auto !important;
  }
}

/* News swiper card on small screens */
@media (max-width: 576px) {
  .news-card {
    min-height: auto !important;
  }
}

/* News show page: stack image and content vertically on mobile */
@media (max-width: 991.98px) {
  .news-image-col {
    margin-bottom: 1.5rem;
  }
}

/* Buyer guarantee items: stack icon and content nicely on small screens */
@media (max-width: 480px) {
  .guarantee-item {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }
}

/* Criterion description wrapper: tighten on mobile */
@media (max-width: 576px) {
  .criterion-description-wrapper {
    padding: 1.75rem 1rem !important;
  }

  .criterion-description-wrapper::before,
  .criterion-description-wrapper::after {
    font-size: 4rem !important;
  }
}

/* Contact form recaptcha: avoid overflow on small screens */
.g-recaptcha {
  max-width: 100%;
  overflow-x: auto;
}

/* Tables responsive: artworks list view */
@media (max-width: 768px) {
  .table-responsive table {
    font-size: 0.875rem;
  }
}

/* Hero CTA button: avoid being squeezed on tiny phones */
@media (max-width: 360px) {
  .btn-lg {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

/* Section titles: prevent overflow on long words */
.section-title,
.hero-title,
h1, h2, h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* News show + Artwork show large titles: scale down on mobile */
@media (max-width: 576px) {
  .news-content-col h1 {
    font-size: 1.7rem !important;
  }

  .artwork-info-col h1 {
    font-size: 1.6rem !important;
  }
}

/* Flash message container alignment */
main > .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

