/* ============================================================
   AUREL Shortcodes v1.0
   File: wp-content/themes/flatsome-child/inc/shortcodes/shortcodes.css
   Auto-loaded qua shortcodes-loader.php
   ============================================================ */

/* ──────────────────────────────────────────
   [aurel_heading] — Section heading
   ────────────────────────────────────────── */
.ahd {
  display: flex;
  margin-bottom: 32px;
  gap: 24px;
}
.ahd__text { flex: 1; min-width: 0; }
.ahd__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #999;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.ahd__title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
  line-height: 1.1;
}
.ahd__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  max-width: 480px;
  margin: 8px 0 0;
}
.ahd__cta {
  align-self: center;
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid #111;
  border-radius: 24px;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.ahd__cta:hover { background: #111; color: #fff; }

/* Align variants */
.ahd--align-left    { justify-content: flex-start; align-items: flex-end; }
.ahd--align-center  { flex-direction: column; align-items: center; text-align: center; }
.ahd--align-center .ahd__text { text-align: center; }
.ahd--align-center .ahd__desc { margin-left: auto; margin-right: auto; }
.ahd--align-between { justify-content: space-between; align-items: flex-end; }

/* Size variants */
.ahd--size-small  .ahd__title { font-size: 22px; }
.ahd--size-large  .ahd__title { font-size: 42px; }

/* ──────────────────────────────────────────
   [aurel_services] — Container grid
   ────────────────────────────────────────── */
.asec {
  padding: 32px 0;
  width: 100%;
}
.asec__inner {
  display: grid;
  gap: 24px;
  width: 100%;
}

/* Columns */
.asec--cols-2 .asec__inner { grid-template-columns: repeat(2, 1fr); }
.asec--cols-3 .asec__inner { grid-template-columns: repeat(3, 1fr); }
.asec--cols-4 .asec__inner { grid-template-columns: repeat(4, 1fr); }

/* Gap variants */
.asec--gap-small  .asec__inner { gap: 12px; }
.asec--gap-medium .asec__inner { gap: 24px; }
.asec--gap-large  .asec__inner { gap: 40px; }

/* Divider variant — vertical lines giữa items */
.asec--divider .asec__inner > * {
  position: relative;
  padding: 0 20px;
}
.asec--divider .asec__inner > *:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(0,0,0,0.1);
}

/* Style: bordered */
.asec--bordered .afb {
  border: 1px solid #ececea;
  border-radius: 12px;
  padding: 24px 20px;
}

/* Style: minimal — không padding extra */
.asec--minimal .afb { padding: 0; }

/* ──────────────────────────────────────────
   [aurel_feature_box]
   ────────────────────────────────────────── */
.afb {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s ease;
}
a.afb:hover { opacity: 0.7; }

.afb__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.afb__icon {
  width: 28px;
  height: 28px;
  color: #111;
  stroke-width: 1.7;
}
.afb__icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.afb__content { flex: 1; min-width: 0; }

.afb__title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.afb__text {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Align variants */
.afb--align-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.afb--align-center .afb__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f4f4f2;
}
.afb--align-center .afb__icon {
  width: 24px;
  height: 24px;
}

/* Style variants */
.afb--bordered {
  border: 1px solid #ececea;
  border-radius: 12px;
  padding: 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.afb--bordered:hover {
  border-color: #111;
  opacity: 1;
  transform: translateY(-2px);
}

.afb--filled {
  background: #f4f4f2;
  border-radius: 12px;
  padding: 24px 20px;
  transition: background .15s ease;
}
.afb--filled:hover {
  background: #e8e8e6;
  opacity: 1;
}

/* ──────────────────────────────────────────
   Responsive
   ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .asec--cols-4 .asec__inner { grid-template-columns: repeat(2, 1fr); }
  .asec--cols-3 .asec__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .asec--cols-4 .asec__inner,
  .asec--cols-3 .asec__inner,
  .asec--cols-2 .asec__inner { grid-template-columns: 1fr; }

  .asec--divider .asec__inner > *:not(:last-child)::after {
    display: none; /* bỏ divider trên mobile */
  }
  .asec--divider .asec__inner > * { padding: 0; }

  .ahd {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  .ahd--align-between { align-items: flex-start; }
  .ahd__title { font-size: 22px; }
  .ahd__cta { align-self: flex-start; }

  .afb { gap: 12px; }
  .afb__icon { width: 24px; height: 24px; }
  .afb__title { font-size: 13px; }
  .afb__text { font-size: 12px; }
}

/* ──────────────────────────────────────────
   [aurel_feature_box] — v2 cream card style
   (override .afb--cream for the cream card with gold icon)
   ────────────────────────────────────────── */
.afb--cream {
  background: #faf6ee;
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.afb--cream .afb__icon-wrap {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  margin: 0;
}
.afb--cream .afb__icon {
  width: 36px;
  height: 36px;
  color: #c9a961;   /* gold accent */
  stroke-width: 1.4;
}
.afb--cream .afb__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 8px;
}
.afb--cream .afb__text {
  font-size: 13px;
  color: #8a8580;
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
}

/* ──────────────────────────────────────────
   [aurel_faq] — FAQ Accordion
   ────────────────────────────────────────── */
.afaq {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 0;
}

.afaq__title {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 32px;
}
.afaq__title::before,
.afaq__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d9d4cb;
}
.afaq__title--left { justify-content: flex-start; }
.afaq__title--left::before { display: none; }
.afaq__title--left { gap: 0; }

.afaq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.afaq__item {
  background: #faf6ee;
  border-radius: 8px;
  overflow: hidden;
  transition: background .2s ease;
}
.afaq__item[open] { background: #fff; border: 1px solid #ece5d5; }

.afaq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  list-style: none;
  user-select: none;
}
.afaq__q::-webkit-details-marker { display: none; }
.afaq__q-text { flex: 1; }
.afaq__icon {
  color: #c9a961;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.afaq__item[open] .afaq__icon-v { display: none; }

.afaq__a {
  padding: 0 24px 22px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.afaq__a p { margin: 0; }

/* ──────────────────────────────────────────
   [aurel_testimonials]
   ────────────────────────────────────────── */
.atst { padding: 40px 0; }

.atst__title {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 32px;
}
.atst__title::before,
.atst__title::after {
  content: '';
  flex: 1;
  max-width: 240px;
  height: 1px;
  background: #d9d4cb;
}

.atst__grid {
  display: grid;
  gap: 20px;
}
.atst--cols-2 .atst__grid { grid-template-columns: repeat(2, 1fr); }
.atst--cols-3 .atst__grid { grid-template-columns: repeat(3, 1fr); }
.atst--cols-4 .atst__grid { grid-template-columns: repeat(4, 1fr); }

.atst__card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.atst__quote {
  color: #c9a961;
  margin-bottom: -4px;
}

.atst__rating {
  display: flex;
  gap: 2px;
}
.atst__star { color: #e0e0de; }
.atst__star--on { color: #f5b400; }

.atst__text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-style: italic;
}

.atst__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.atst__author {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}
.atst__verified {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: #d8f0e0;
  color: #1e7a3e;
}

.atst__product {
  font-size: 12px;
  color: #8a8580;
  margin: 0;
}

/* ──────────────────────────────────────────
   [aurel_marquee] — Diagonal scrolling banner
   ────────────────────────────────────────── */
.amrq {
  width: 110%;
  overflow: hidden;
  margin-left: -5%;
  position: relative;
}
.amrq__strip {
  display: flex;
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}
.amrq__track {
  display: flex;
  align-items: center;
  animation: amrq-scroll linear infinite;
  animation-name: amrq-scroll;
  gap: 0;
  flex-shrink: 0;
  will-change: transform;
}
.amrq__item {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 24px;
  display: inline-block;
  flex-shrink: 0;
}
.amrq__sep {
  font-size: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Size variants */
.amrq--small  .amrq__item { font-size: 14px; }
.amrq--medium .amrq__item { font-size: 18px; }
.amrq--large  .amrq__item { font-size: 24px; }

.amrq--small  .amrq__strip { padding: 12px 0; }
.amrq--large  .amrq__strip { padding: 24px 0; }

@keyframes amrq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause on hover */
.amrq:hover .amrq__track {
  animation-play-state: paused;
}

/* ──────────────────────────────────────────
   Responsive — Cream feature box + FAQ + Testimonials + Marquee
   ────────────────────────────────────────── */
@media (max-width: 640px) {
  .afb--cream { padding: 28px 20px; gap: 14px; }
  .afb--cream .afb__icon { width: 32px; height: 32px; }
  .afb--cream .afb__title { font-size: 13px; }
  .afb--cream .afb__text { font-size: 12px; }

  .afaq__title { font-size: 18px; gap: 12px; }
  .afaq__q { padding: 14px 18px; font-size: 12px; }
  .afaq__a { padding: 0 18px 18px; font-size: 13px; }

  .atst__title { font-size: 18px; gap: 12px; }
  .atst--cols-2 .atst__grid,
  .atst--cols-3 .atst__grid,
  .atst--cols-4 .atst__grid { grid-template-columns: 1fr; }
  .atst__card { padding: 20px; }

  .amrq__item { padding: 0 16px; }
  .amrq--medium .amrq__item { font-size: 14px; }
  .amrq--large .amrq__item { font-size: 16px; }
}