/* ═══════════════════════════════════════════════════════════════
   Matrimonial Ads — Premium MSBD / HomeNew3 design
   Glass · floating · violet brand · animated
   ═══════════════════════════════════════════════════════════════ */

.ma-scene,
.ma-home {
  --ma-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ma-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ma-font-bn: 'Noto Serif Bengali', var(--hn2-serif), serif;
}

/* ─── Homepage section ─── */
.ma-home {
  position: relative;
  padding: 5rem 0 5.5rem;
  background: linear-gradient(165deg, #faf8ff 0%, #f3eeff 35%, #ede9fe 70%, #f8fafc 100%);
  overflow-x: clip;
  overflow-y: visible;
}

.ma-home__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ma-home__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: maOrbDrift 11s ease-in-out infinite alternate;
}

.ma-home__orb--1 {
  width: 380px; height: 380px;
  top: -12%; left: -8%;
  background: rgba(var(--hn2-primary-rgb), 0.18);
}

.ma-home__orb--2 {
  width: 300px; height: 300px;
  top: 30%; right: -6%;
  background: rgba(139, 92, 246, 0.14);
  animation-delay: -4s;
}

.ma-home__orb--3 {
  width: 260px; height: 260px;
  bottom: -8%; left: 38%;
  background: rgba(109, 40, 217, 0.1);
  animation-delay: -7s;
}

.ma-home__spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--hn2-primary-light);
  box-shadow: 0 0 12px rgba(var(--hn2-primary-rgb), 0.6);
  animation: maSpark 4s ease-in-out infinite;
  opacity: 0.5;
}

.ma-home__spark--1 { top: 18%; left: 12%; animation-delay: 0s; }
.ma-home__spark--2 { top: 55%; right: 15%; animation-delay: -1.5s; }
.ma-home__spark--3 { bottom: 22%; left: 28%; animation-delay: -3s; }

@keyframes maOrbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(24px, -20px) scale(1.08); }
}

@keyframes maSpark {
  0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.8); }
  50%      { opacity: 0.8; transform: translateY(-12px) scale(1.2); }
}

.ma-home__head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.ma-home__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(var(--hn2-primary-rgb), 0.1);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.2);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hn2-primary);
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 28px rgba(var(--hn2-primary-rgb), 0.12);
  animation: maBadgePulse 3s ease-in-out infinite;
}

@keyframes maBadgePulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(var(--hn2-primary-rgb), 0.12); }
  50%      { box-shadow: 0 8px 36px rgba(var(--hn2-primary-rgb), 0.22); }
}

.ma-home__title {
  margin: 0 0 0.5rem;
  font-family: var(--ma-font-bn);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--hn2-primary-deep);
  line-height: 1.25;
}

.ma-home__sub {
  margin: 0;
  font-family: var(--ma-font-bn);
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.65;
}

.ma-home__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

.ma-home__cta {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 2.5rem;
}

.ma-home__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hn2-primary) 0%, var(--hn2-primary-dark) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 32px rgba(var(--hn2-primary-rgb), 0.35);
  transition: transform 0.4s var(--ma-spring), box-shadow 0.4s, gap 0.35s;
}

.ma-home__cta-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(var(--hn2-primary-rgb), 0.45);
  gap: 0.75rem;
}

.ma-home__cta-btn i {
  transition: transform 0.35s var(--ma-spring);
}

.ma-home__cta-btn:hover i {
  transform: translateX(4px);
}

@media (max-width: 1100px) {
  .ma-home__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ma-home__grid { grid-template-columns: 1fr; }
}

/* ─── Full listing page scene ─── */
.ma-scene {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(180deg, #0f0720 0%, #1a0b3a 18%, #f8fafc 42%);
  overflow-x: clip;
  overflow-y: visible;
}

.ma-scene__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ma-scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: maOrbDrift 12s ease-in-out infinite alternate;
}

.ma-scene__orb--1 {
  width: 420px; height: 420px;
  top: -5%; left: -10%;
  background: rgba(var(--hn2-primary-rgb), 0.35);
}

.ma-scene__orb--2 {
  width: 340px; height: 340px;
  top: 8%; right: -8%;
  background: rgba(139, 92, 246, 0.25);
  animation-delay: -5s;
}

.ma-scene__orb--3 {
  width: 280px; height: 280px;
  top: 25%; left: 40%;
  background: rgba(76, 29, 149, 0.2);
  animation-delay: -8s;
}

/* Hero band */
.ma-hero {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0 3rem;
}

.ma-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.ma-hero__breadcrumb {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
  animation: maFadeUp 0.7s var(--ma-ease) both;
}

.ma-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s;
}

.ma-hero__breadcrumb a:hover {
  color: #fff;
}

.ma-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ma-hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--ma-font-bn);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  animation: maFadeUp 0.7s var(--ma-ease) 0.1s both;
}

.ma-hero__desc {
  margin: 0;
  font-family: var(--ma-font-bn);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  line-height: 1.6;
  animation: maFadeUp 0.7s var(--ma-ease) 0.2s both;
}

.ma-hero__stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  animation: maFadeUp 0.7s var(--ma-ease) 0.3s both;
}

.ma-hero__stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.ma-hero__stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Content wrap */
.ma-wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 5rem;
}

/* Glass toolbar */
.ma-toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1rem 1.15rem;
  margin-bottom: 1.75rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.12);
  backdrop-filter: blur(20px);
  box-shadow:
    0 4px 24px rgba(var(--hn2-primary-rgb), 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  animation: maFadeUp 0.8s var(--ma-ease) 0.15s both;
  transition: box-shadow 0.4s, transform 0.4s var(--ma-ease);
}

.ma-toolbar:focus-within {
  box-shadow: 0 8px 36px rgba(var(--hn2-primary-rgb), 0.16);
  transform: translateY(-2px);
}

.ma-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 220px;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(var(--hn2-primary-rgb), 0.04);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.1);
  transition: border-color 0.3s, background 0.3s;
}

.ma-search-box:focus-within {
  border-color: rgba(var(--hn2-primary-rgb), 0.35);
  background: #fff;
}

.ma-search-box i {
  color: var(--hn2-primary);
  font-size: 0.85rem;
}

.ma-search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-family: var(--ma-font-bn);
  font-size: 0.875rem;
  background: transparent;
  color: #1e293b;
}

.ma-toolbar select {
  font-family: var(--hn2-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.15);
  background: #fff;
  color: var(--hn2-primary-dark);
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ma-toolbar select:hover {
  border-color: rgba(var(--hn2-primary-rgb), 0.35);
  box-shadow: 0 4px 12px rgba(var(--hn2-primary-rgb), 0.1);
}

/* Listing layout */
.ma-listing-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.ma-listing-main {
  min-width: 0;
  width: 100%;
}

@media (max-width: 860px) {
  .ma-listing-body { grid-template-columns: 1fr; }
}

/* Glass filters */
.ma-filters {
  position: sticky;
  top: 90px;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(var(--hn2-primary-rgb), 0.07);
  animation: maFadeUp 0.8s var(--ma-ease) 0.25s both;
}

.ma-filters h4 {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--hn2-primary-rgb), 0.1);
  font-family: var(--hn2-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hn2-primary);
}

.ma-f-group { margin-bottom: 1rem; }

.ma-f-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--hn2-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.ma-f-group select,
.ma-f-group input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--ma-font-bn);
  font-size: 0.8125rem;
  color: #1e293b;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ma-f-group select:focus,
.ma-f-group input:focus {
  outline: none;
  border-color: var(--hn2-primary);
  box-shadow: 0 0 0 3px rgba(var(--hn2-primary-rgb), 0.12);
}

.ma-age-row { display: flex; gap: 0.4rem; align-items: center; }
.ma-age-row input { width: 100%; }

.ma-chk-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-family: var(--hn2-sans);
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
}

.ma-chk-row input {
  accent-color: var(--hn2-primary);
  width: 16px; height: 16px;
}

.ma-reset-btn {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.2);
  background: transparent;
  font-family: var(--hn2-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hn2-primary);
  text-align: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ma-spring);
}

.ma-reset-btn:hover {
  background: var(--hn2-primary);
  color: #fff;
  transform: translateY(-1px);
}

a.ma-reset-btn { text-decoration: none; }

.ma-result-count {
  margin-bottom: 1rem;
  font-family: var(--hn2-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
  animation: maFadeUp 0.6s var(--ma-ease) both;
}

/* Card grid */
.ma-ad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 1100px) {
  .ma-ad-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ma-ad-grid { grid-template-columns: 1fr; }
}

/* ─── Premium glass ad card ─── */
.ma-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: visible;
  animation: maCardIn 0.75s var(--ma-ease) var(--ma-delay, 0s) both;
}

.ma-card[data-ma-reveal] {
  animation: none;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s var(--ma-ease),
    transform 0.65s var(--ma-ease);
  transition-delay: var(--ma-delay, 0s);
}

.ma-card[data-ma-reveal][data-ma-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.ma-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  padding: 1.25rem 1.15rem 1.1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.1);
  backdrop-filter: blur(16px);
  box-shadow:
    0 4px 20px rgba(var(--hn2-primary-rgb), 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.45s var(--ma-spring),
    box-shadow 0.45s,
    border-color 0.35s;
}

.ma-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--hn2-primary-rgb), 0.25), transparent 50%, rgba(139, 92, 246, 0.15));
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
  z-index: 0;
}

.ma-card__shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transition: left 0.65s var(--ma-ease);
  pointer-events: none;
  z-index: 1;
}

.ma-card:hover .ma-card__link {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(var(--hn2-primary-rgb), 0.28);
  box-shadow:
    0 20px 48px rgba(var(--hn2-primary-rgb), 0.18),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

.ma-card:hover .ma-card__glow { opacity: 1; }
.ma-card:hover .ma-card__shine { left: 120%; }

.ma-card--premium .ma-card__link {
  border-color: rgba(var(--hn2-primary-rgb), 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(237, 233, 254, 0.6) 100%);
}

.ma-card--premium .ma-card__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hn2-primary), var(--hn2-primary-light));
  z-index: 5;
}

.ma-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ma-card__id {
  font-family: var(--hn2-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ma-badges {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ma-badge {
  font-family: var(--hn2-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ma-badge--new {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  animation: maBadgeBlink 2s ease-in-out infinite;
}

@keyframes maBadgeBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.85; }
}

.ma-badge--premium {
  background: linear-gradient(135deg, var(--hn2-primary), var(--hn2-primary-dark));
  color: #fff;
}

.ma-badge--featured {
  background: rgba(var(--hn2-primary-rgb), 0.12);
  color: var(--hn2-primary-dark);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.2);
}

.ma-card__kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 0.65rem;
  font-family: var(--ma-font-bn);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hn2-primary-deep);
  line-height: 1.3;
}

.ma-card__facts {
  position: relative;
  z-index: 2;
  font-family: var(--ma-font-bn);
  font-size: 0.8rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 0.5rem;
}

.ma-card__facts b {
  color: #94a3b8;
  font-weight: 600;
}

.ma-card__desc {
  position: relative;
  z-index: 2;
  flex: 1;
  font-family: var(--ma-font-bn);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.ma-card__foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-top: auto;
  border-top: 1px dashed rgba(var(--hn2-primary-rgb), 0.15);
}

.ma-card__posted {
  font-family: var(--hn2-sans);
  font-size: 0.65rem;
  color: #94a3b8;
}

.ma-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hn2-primary) 0%, var(--hn2-primary-dark) 100%);
  color: #fff;
  font-family: var(--hn2-sans);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.35s var(--ma-spring), box-shadow 0.35s;
}

.ma-card:hover .ma-card__btn {
  transform: translateX(2px);
  box-shadow: 0 4px 14px rgba(var(--hn2-primary-rgb), 0.4);
}

/* Animations */
@keyframes maCardIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes maFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Empty state */
.ma-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(var(--hn2-primary-rgb), 0.2);
  backdrop-filter: blur(12px);
}

.ma-empty .ma-home__badge {
  margin-bottom: 0.75rem;
}

.ma-empty p {
  margin: 0;
  font-family: var(--ma-font-bn);
  color: #64748b;
}

/* Pagination — Bootstrap 4 markup */
.ma-pagination {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  display: flex;
  justify-content: center;
  width: 100%;
  clear: both;
}

.ma-pagination nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

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

.ma-pagination .page-item {
  list-style: none;
  margin: 0;
}

.ma-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: 0.65rem;
  font-family: var(--hn2-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--hn2-primary-dark);
  text-decoration: none;
  line-height: 1;
  transition: background 0.25s, transform 0.25s var(--ma-spring), border-color 0.25s, box-shadow 0.25s;
}

.ma-pagination .page-link:hover {
  background: var(--hn2-primary-soft);
  border-color: rgba(var(--hn2-primary-rgb), 0.28);
  color: var(--hn2-primary-dark);
  transform: translateY(-2px);
}

.ma-pagination .page-item.active .page-link {
  background: var(--hn2-primary);
  color: #fff;
  border-color: var(--hn2-primary);
  box-shadow: 0 4px 14px rgba(var(--hn2-primary-rgb), 0.35);
  cursor: default;
}

.ma-pagination .page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.6);
}

/* ─── Detail page ─── */
.ma-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .ma-detail-grid { grid-template-columns: 1fr; }
}

.ma-detail-card {
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(var(--hn2-primary-rgb), 0.1);
  overflow: hidden;
  animation: maFadeUp 0.8s var(--ma-ease) both;
}

.ma-detail-banner {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--hn2-primary-deep) 0%, var(--hn2-primary) 55%, var(--hn2-primary-light) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.ma-detail-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.ma-detail-banner h1 {
  position: relative;
  margin: 0 0 0.35rem;
  font-family: var(--ma-font-bn);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
}

.ma-detail-banner .sub {
  position: relative;
  font-family: var(--hn2-sans);
  font-size: 0.75rem;
  opacity: 0.8;
}

.ma-detail-fields {
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

@media (max-width: 520px) {
  .ma-detail-fields { grid-template-columns: 1fr; }
}

.ma-field dt {
  font-family: var(--hn2-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.2rem;
}

.ma-field dd {
  margin: 0;
  font-family: var(--ma-font-bn);
  font-size: 0.9rem;
  color: #1e293b;
}

.ma-detail-section {
  padding: 0 1.75rem 1.25rem;
}

.ma-detail-section h3 {
  margin: 0 0 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(var(--hn2-primary-rgb), 0.1);
  font-family: var(--hn2-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hn2-primary);
}

.ma-detail-section p {
  margin: 0;
  font-family: var(--ma-font-bn);
  font-size: 0.9rem;
  line-height: 1.8;
  color: #334155;
}

.ma-detail-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-top: 1px dashed rgba(var(--hn2-primary-rgb), 0.12);
  font-family: var(--hn2-sans);
  font-size: 0.75rem;
  color: #94a3b8;
}

.ma-side-card {
  padding: 1.25rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(var(--hn2-primary-rgb), 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(var(--hn2-primary-rgb), 0.08);
  margin-bottom: 1rem;
  animation: maFadeUp 0.8s var(--ma-ease) 0.15s both;
  transition: transform 0.4s var(--ma-spring), box-shadow 0.4s;
}

.ma-side-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(var(--hn2-primary-rgb), 0.14);
}

.ma-side-card h4 {
  margin: 0 0 1rem;
  font-family: var(--hn2-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hn2-primary);
}

.ma-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 0.75rem;
  border: none;
  font-family: var(--hn2-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ma-spring), box-shadow 0.35s;
}

.ma-cta-btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.ma-cta-whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.ma-cta-apply {
  background: linear-gradient(135deg, var(--hn2-primary-light), var(--hn2-primary));
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--hn2-primary-rgb), 0.3);
}

.ma-cta-contact {
  background: linear-gradient(135deg, var(--hn2-primary-dark), var(--hn2-primary-deep));
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--hn2-primary-rgb), 0.25);
}

.ma-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-family: var(--hn2-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s, gap 0.3s;
}

.ma-back-link:hover {
  color: #fff;
  gap: 0.55rem;
}

.ma-related-title {
  margin: 2.5rem 0 1rem;
  font-family: var(--ma-font-bn);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hn2-primary-deep);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ma-home__orb,
  .ma-scene__orb,
  .ma-home__spark,
  .ma-home__badge,
  .ma-badge--new,
  .ma-card {
    animation: none !important;
  }

  .ma-card:hover .ma-card__link,
  .ma-card:hover .ma-card__shine {
    transform: none;
  }
}
