/* ==========================================================
   TV Service Center - Elementor Addon Styles
   ========================================================== */

.tvc-wrap {
  --tvc-bg: #f4f2ee;
  --tvc-bg-alt: #ffffff;
  --tvc-dark: #14171a;
  --tvc-accent: #e8a41f;
  --tvc-accent-2: #ffb85c;
  --tvc-accent-dark: #3a2a05;
  --tvc-text: #14171a;
  --tvc-muted: #6b7280;
  --tvc-border: #e7e4de;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--tvc-text);
  background: var(--tvc-bg);
  width: 100%;
  position: relative;
}

.tvc-wrap * {
  box-sizing: border-box;
}

.tvc-section {
  padding: 64px 24px;
  position: relative;
}

.tvc-section.tvc-alt {
  background: var(--tvc-bg-alt);
}

.tvc-section.tvc-dark {
  background: var(--tvc-dark);
  color: #ffffff;
}

.tvc-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tvc-inner.tvc-wide {
  max-width: 1200px;
}

.tvc-inner.tvc-narrow {
  max-width: 820px;
}

.tvc-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tvc-accent-dark);
  background: rgba(232, 164, 31, .14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.tvc-dark .tvc-eyebrow {
  color: var(--tvc-accent);
  background: rgba(232, 164, 31, .16);
}

.tvc-h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -.4px;
  color: var(--tvc-text);
}

.tvc-dark .tvc-h2 {
  color: #ffffff !important;
}

.tvc-lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tvc-muted);
  margin: 0 0 8px 0;
}

.tvc-dark .tvc-lede {
  color: rgba(255, 255, 255, .7);
}

.tvc-lede + .tvc-lede {
  margin-top: 12px;
}

/* Buttons */
.tvc-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tvc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  border: 2px solid transparent;
}

.tvc-btn-primary {
  background: var(--tvc-accent);
  color: var(--tvc-accent-dark) !important;
  box-shadow: 0 6px 16px rgba(232, 164, 31, .35);
}

.tvc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(232, 164, 31, .45);
  color: var(--tvc-accent-dark) !important;
}

.tvc-btn-outline {
  background: transparent;
  border-color: #25d366;
  color: #128c3e !important;
}

.tvc-dark .tvc-btn-outline {
  color: #25d366 !important;
}

.tvc-btn-outline:hover {
  background: #25d366;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.tvc-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tvc-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--tvc-muted);
}

.tvc-proof svg {
  width: 18px;
  height: 18px;
  stroke: var(--tvc-accent);
  flex-shrink: 0;
}

/* Checklist grid */
.tvc-check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .tvc-check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .tvc-check-grid {
    grid-template-columns: 1fr;
  }
}

.tvc-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--tvc-bg);
  border: 1px solid var(--tvc-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--tvc-text);
}

.tvc-check-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--tvc-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Numbered process steps */
.tvc-steps {
  list-style: none;
  margin: 28px 0 0 0;
  padding: 0;
  counter-reset: tvc-step;
}

.tvc-steps li {
  counter-increment: tvc-step;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--tvc-border);
}

.tvc-steps li:last-child {
  border-bottom: none;
}

.tvc-steps li::before {
  content: counter(tvc-step, decimal-leading-zero);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tvc-dark);
  color: var(--tvc-accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tvc-steps li span {
  font-size: 15px;
  line-height: 1.6;
  padding-top: 8px;
  color: var(--tvc-text);
}

/* Bento Services Grid */
.trs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.trs-card {
  background: var(--tvc-bg-alt);
  border: 1px solid var(--tvc-border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.trs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 23, 26, .08);
}

.trs-card.trs-featured {
  background: var(--tvc-dark);
  border-color: var(--tvc-dark);
  color: #fff;
}

.trs-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 23, 26, .06);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.trs-featured .trs-icon {
  background: rgba(232, 164, 31, .16);
}

.trs-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--tvc-text);
}

.trs-featured .trs-icon svg {
  stroke: var(--tvc-accent);
}

.trs-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--tvc-text);
}

.trs-featured h3 {
  color: #ffffff;
}

.trs-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tvc-muted);
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.trs-featured p {
  color: rgba(255, 255, 255, .65);
}

.trs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tvc-text);
  text-decoration: none;
}

.trs-featured .trs-link {
  color: var(--tvc-accent);
}

.trs-link svg {
  width: 14px;
  height: 14px;
  transition: transform .15s ease;
}

.trs-link:hover svg {
  transform: translateX(3px);
}

/* Problem Cards */
.tvc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .tvc-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.tvc-card {
  background: var(--tvc-bg-alt);
  border: 1px solid var(--tvc-border);
  border-radius: 18px;
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.tvc-section.tvc-alt .tvc-card {
  background: var(--tvc-bg);
}

.tvc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 23, 26, .08);
}

.tvc-card .tvc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 164, 31, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tvc-card .tvc-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--tvc-accent-dark);
}

.tvc-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--tvc-text);
}

.tvc-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tvc-muted);
  margin: 0;
}

/* Brand Chips */
.tvc-chip-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

.tvc-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--tvc-bg-alt, #ffffff) !important;
  border: 1.5px solid var(--tvc-border, #e7e4de) !important;
  border-radius: 999px !important;
  padding: 9px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--tvc-text, #14171a) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .04);
  transition: all .2s ease;
  line-height: 1.3 !important;
  white-space: nowrap;
}

.tvc-chip:hover {
  transform: translateY(-2px);
  border-color: var(--tvc-accent, #e8a41f) !important;
  box-shadow: 0 5px 14px rgba(232, 164, 31, .18);
  color: var(--tvc-accent-dark, #3a2a05) !important;
}

.tvc-section.tvc-alt .tvc-chip {
  background: var(--tvc-bg, #f4f2ee) !important;
}

/* Fallback for brand cards */
.tvc-brand-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 24px !important;
}

.tvc-brand-card {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--tvc-bg-alt, #ffffff) !important;
  border: 1.5px solid var(--tvc-border, #e7e4de) !important;
  border-radius: 999px !important;
  padding: 9px 20px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .04);
}

.tvc-brand-card h3 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--tvc-text, #14171a) !important;
  line-height: 1.3 !important;
}

.tvc-brand-card p {
  display: none !important;
}

.tvc-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--tvc-muted);
  background: rgba(232, 164, 31, .08);
  border-left: 3px solid var(--tvc-accent);
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.6;
}

/* Area Chips */
.tvc-area-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 800px) {
  .tvc-area-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .tvc-area-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tvc-area {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tvc-bg-alt);
  border: 1px solid var(--tvc-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tvc-text);
}

.tvc-section.tvc-alt .tvc-area {
  background: var(--tvc-bg);
}

.tvc-area svg {
  width: 15px;
  height: 15px;
  stroke: var(--tvc-accent-dark);
  flex-shrink: 0;
}

/* Why Choose Us */
.tvc-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 700px) {
  .tvc-feature-grid {
    grid-template-columns: 1fr;
  }
}

.tvc-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tvc-feature .tvc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tvc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tvc-feature .tvc-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--tvc-accent-dark);
}

.tvc-feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  padding-top: 6px;
  color: var(--tvc-text);
}

/* Repair vs Replace */
.tvc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .tvc-compare {
    grid-template-columns: 1fr;
  }
}

.tvc-compare-card {
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--tvc-border);
}

.tvc-compare-card.tvc-repair {
  background: rgba(232, 164, 31, .1);
  border-color: rgba(232, 164, 31, .35);
}

.tvc-compare-card.tvc-replace {
  background: var(--tvc-bg-alt);
}

.tvc-compare-card h4 {
  margin: 0 0 10px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--tvc-text);
}

.tvc-compare-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--tvc-muted);
}

/* ==========================================================
   FAQ Accordion (Modern Boxed Cards)
   ========================================================== */
.tvc-faq {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 28px !important;
}

.tvc-faq-item {
  background: var(--tvc-bg-alt, #ffffff) !important;
  border: 1.5px solid var(--tvc-border, #e7e4de) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .03);
}

.tvc-section.tvc-alt .tvc-faq-item {
  background: var(--tvc-bg, #f4f2ee) !important;
}

.tvc-faq-item:hover {
  border-color: var(--tvc-accent, #e8a41f) !important;
  transform: translateY(-1px);
}

.tvc-faq-item.tvc-open {
  border-color: var(--tvc-accent, #e8a41f) !important;
  box-shadow: 0 6px 20px rgba(232, 164, 31, .14) !important;
}

.tvc-faq-q {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 22px !important;
  background: transparent !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--tvc-text, #14171a) !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: color .2s ease, background-color .2s ease !important;
  outline: none !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.tvc-faq-item.tvc-open .tvc-faq-q {
  color: var(--tvc-accent-dark, #3a2a05) !important;
}

.tvc-faq-q svg {
  width: 20px !important;
  height: 20px !important;
  stroke: var(--tvc-accent, #e8a41f) !important;
  flex-shrink: 0 !important;
  transition: transform .25s ease, stroke .2s ease !important;
}

.tvc-faq-item.tvc-open .tvc-faq-q svg {
  transform: rotate(45deg) !important;
  stroke: var(--tvc-accent-dark, #3a2a05) !important;
}

.tvc-faq-a {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1), padding .3s ease !important;
  padding: 0 22px !important;
}

.tvc-faq-item.tvc-open .tvc-faq-a {
  max-height: 600px !important;
  padding: 0 22px 20px 22px !important;
}

.tvc-faq-a p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: var(--tvc-muted, #6b7280) !important;
}

/* Contact block */
.tvc-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .tvc-contact-grid {
    grid-template-columns: 1fr;
  }
}

.tvc-contact-item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 20px;
}

.tvc-contact-item span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tvc-accent);
  margin-bottom: 6px;
}

.tvc-contact-item strong {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.tvc-contact-item a {
  color: #ffffff;
  text-decoration: none;
}

/* ===== Animated CTA Card ===== */
.wz-cta-card {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #e8a41f 0%, #f0b942 55%, #ffcf6e 100%);
  border-radius: 28px;
  padding: 55px 45px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(232, 164, 31, .28);
}

.wz-rings {
  position: absolute;
  top: 50%;
  right: -120px;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  pointer-events: none;
}

.wz-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  transform: translate(-50%, -50%);
  animation: wzPulse 3.5s ease-out infinite;
  opacity: 0;
}

.wz-ring:nth-child(1) { width: 120px; height: 120px; animation-delay: 0s; }
.wz-ring:nth-child(2) { width: 220px; height: 220px; animation-delay: .6s; }
.wz-ring:nth-child(3) { width: 320px; height: 320px; animation-delay: 1.2s; }
.wz-ring:nth-child(4) { width: 420px; height: 420px; animation-delay: 1.8s; }

@keyframes wzPulse {
  0% { opacity: .55; transform: translate(-50%, -50%) scale(.85); }
  70% { opacity: .15; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}

.wz-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.wz-content h2 {
  color: var(--tvc-accent-dark);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.wz-content p {
  color: rgba(58, 42, 5, .85);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 520px;
}

.wz-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.wz-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #14171a;
  color: #fff !important;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 14px 22px 14px 14px;
  border-radius: 50px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.wz-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  color: #fff !important;
}

.wz-btn:active {
  transform: translateY(-1px) scale(.99);
}

.wz-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wz-btn-call .wz-icon-circle {
  background: var(--tvc-accent);
  animation: wzRingPulse 2s ease-in-out infinite;
}

.wz-btn-whatsapp .wz-icon-circle {
  background: #25D366;
}

@keyframes wzRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 164, 31, .55); }
  50% { box-shadow: 0 0 0 8px rgba(232, 164, 31, 0); }
}

.wz-icon-circle svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 640px) {
  .wz-cta-card {
    padding: 40px 26px;
  }
  .wz-rings {
    right: -220px;
    opacity: .6;
  }
  .wz-cta-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  .wz-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Sticky mobile CTA bar */
.tvc-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  background: #fff;
  border-top: 1px solid var(--tvc-border);
  padding: 10px 14px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}

.tvc-sticky-bar .tvc-sticky-row {
  display: flex;
  gap: 10px;
}

.tvc-sticky-bar .tvc-btn {
  flex: 1;
  justify-content: center;
  padding: 12px 10px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .tvc-sticky-bar {
    display: block;
  }
  .tvc-wrap {
    padding-bottom: 72px;
  }
}

/* Floating WhatsApp */
.tvc-float-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
  text-decoration: none;
  transition: transform .2s ease;
}

.tvc-float-wa:hover {
  transform: scale(1.08);
}

.tvc-float-wa svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@media (max-width: 760px) {
  .tvc-float-wa {
    bottom: 84px;
  }
}

/* ==========================================================
   TVC Gallery Widget
   ========================================================== */

/* ── Filter Tabs ──────────────────────────────────────────── */
.tvc-gl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
}

.tvc-gl-filter-btn {
  background: transparent;
  border: 1.5px solid var(--tvc-border);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--tvc-muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
  letter-spacing: .02em;
}

.tvc-gl-filter-btn:hover {
  border-color: var(--tvc-accent);
  color: var(--tvc-accent-dark);
  transform: translateY(-1px);
}

.tvc-gl-filter-btn.tvc-gl-active {
  background: var(--tvc-accent);
  border-color: var(--tvc-accent);
  color: var(--tvc-accent-dark);
}

/* ── Grid ─────────────────────────────────────────────────── */
.tvc-gl-grid {
  display: grid;
  gap: 16px;
  transition: opacity .25s ease;
}

.tvc-gl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tvc-gl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tvc-gl-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .tvc-gl-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .tvc-gl-cols-3,
  .tvc-gl-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .tvc-gl-cols-2,
  .tvc-gl-cols-3,
  .tvc-gl-cols-4 { grid-template-columns: 1fr; }
}

/* ── Gallery Item ─────────────────────────────────────────── */
.tvc-gl-item {
  overflow: hidden;
  border-radius: 14px;
  transition: opacity .3s ease, transform .3s ease;
}

.tvc-gl-item.tvc-gl-hidden {
  display: none;
}

.tvc-gl-thumb-wrap {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
}

.tvc-gl-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 14px;
  transition: transform .4s ease;
}

.tvc-gl-item:hover .tvc-gl-thumb {
  transform: scale(1.07);
}

/* ── Hover Overlay ────────────────────────────────────────── */
.tvc-gl-overlay {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(to top, rgba(20,23,26,.72) 0%, rgba(20,23,26,.0) 55%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.tvc-gl-item:hover .tvc-gl-overlay {
  opacity: 1;
}

.tvc-gl-lightbox-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  text-decoration: none;
}

.tvc-gl-lightbox-btn:hover {
  background: var(--tvc-accent);
  transform: scale(1.1);
  border-color: var(--tvc-accent);
}

.tvc-gl-lightbox-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tvc-gl-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* ── Lightbox Modal ───────────────────────────────────────── */
.tvc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.tvc-lightbox.tvc-lb-open {
  visibility: visible;
  opacity: 1;
}

.tvc-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.tvc-lb-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.tvc-lb-img {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  display: block;
  transition: opacity .25s ease;
}

.tvc-lb-caption {
  margin: 14px 0 0;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  max-width: 640px;
}

.tvc-lb-close,
.tvc-lb-prev,
.tvc-lb-next {
  position: fixed;
  z-index: 3;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
  color: #fff;
}

.tvc-lb-close:hover,
.tvc-lb-prev:hover,
.tvc-lb-next:hover {
  background: var(--tvc-accent);
  border-color: var(--tvc-accent);
  color: var(--tvc-accent-dark);
  transform: scale(1.08);
}

.tvc-lb-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
}

.tvc-lb-close svg { width: 20px; height: 20px; }

.tvc-lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.tvc-lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.tvc-lb-prev svg,
.tvc-lb-next svg { width: 22px; height: 22px; }

.tvc-lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.tvc-lb-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 600px) {
  .tvc-lb-prev { left: 8px; }
  .tvc-lb-next { right: 8px; }
  .tvc-lb-img  { max-width: 96vw; max-height: 75vh; }
}

/* ══════════════════════════════════════════════════════════════
   TVC GALLERY – LAYOUT TYPES
   ══════════════════════════════════════════════════════════════ */

/* ── Filter bar base ──────────────────────────────────────── */
.tvc-gl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tvc-gl-filter-btn {
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--tvc-muted, #6b7280);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.tvc-gl-filter-btn:hover { border-color: var(--tvc-accent, #e8a41f); color: var(--tvc-accent-dark, #92640c); transform: translateY(-1px); }
.tvc-gl-filter-btn.tvc-gl-active { background: var(--tvc-accent, #e8a41f); border-color: var(--tvc-accent, #e8a41f); color: var(--tvc-accent-dark, #3a2a05); }

/* ── 1. Basic (default) – already handled by tvc-gl-grid ─── */

/* ── 2. Masonry ───────────────────────────────────────────── */
.tvc-gl-grid.tvc-gl-layout-masonry {
  display: block !important;
  columns: 3;
  column-gap: 16px;
}
.tvc-gl-layout-masonry.tvc-gl-cols-2 { columns: 2; }
.tvc-gl-layout-masonry.tvc-gl-cols-4 { columns: 4; }

@media (max-width: 900px) {
  .tvc-gl-layout-masonry { columns: 2 !important; }
}
@media (max-width: 480px) {
  .tvc-gl-layout-masonry { columns: 1 !important; }
}

.tvc-gl-layout-masonry .tvc-gl-item {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 16px;
  display: block;
  overflow: visible;
  border-radius: 0;
}
/* For masonry we use <img> tags instead of bg-image trick */
.tvc-gl-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.tvc-gl-img-wrap .tvc-gl-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(20,23,26,.72) 0%, transparent 55%);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .28s ease;
}
.tvc-gl-img-wrap:hover .tvc-gl-overlay { opacity: 1; }
.tvc-gl-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.tvc-gl-img-wrap:hover .tvc-gl-img { transform: scale(1.04); }

/* ── 3. Metro ─────────────────────────────────────────────── */
.tvc-gl-grid.tvc-gl-layout-metro {
  grid-auto-rows: 210px;
}
.tvc-gl-layout-metro .tvc-gl-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.tvc-gl-layout-metro .tvc-gl-item:nth-child(4) {
  grid-column: span 2;
}
.tvc-gl-layout-metro .tvc-gl-thumb-wrap {
  padding-bottom: 0 !important;
  height: 100%;
}
.tvc-gl-layout-metro .tvc-gl-thumb,
.tvc-gl-layout-metro .tvc-gl-overlay {
  height: 100%;
}
@media (max-width: 600px) {
  .tvc-gl-layout-metro .tvc-gl-item:nth-child(1),
  .tvc-gl-layout-metro .tvc-gl-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ── 4. Justify ───────────────────────────────────────────── */
.tvc-gl-grid.tvc-gl-layout-justify {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.tvc-gl-layout-justify .tvc-gl-item {
  flex: 1 0 200px;
  max-width: 420px;
  overflow: hidden;
  border-radius: 14px;
}

/* ── 5. Carousel ──────────────────────────────────────────── */
.tvc-gl-carousel-wrap {
  position: relative;
  overflow: hidden;
}
.tvc-gl-grid.tvc-gl-layout-carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.tvc-gl-grid.tvc-gl-layout-carousel::-webkit-scrollbar { display: none; }
.tvc-gl-layout-carousel .tvc-gl-item {
  flex: 0 0 300px;
  scroll-snap-align: start;
  min-width: 0;
}
.tvc-gl-carousel-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.tvc-gl-carousel-btn {
  background: var(--tvc-accent, #e8a41f);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.tvc-gl-carousel-btn:hover { opacity: .85; transform: scale(1.08); }
.tvc-gl-carousel-btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── 6. Caption (always visible) ─────────────────────────── */
.tvc-gl-layout-caption .tvc-gl-thumb-wrap { cursor: default; }
.tvc-gl-layout-caption .tvc-gl-thumb-wrap:hover .tvc-gl-thumb { transform: scale(1.04); }
.tvc-gl-layout-caption .tvc-gl-overlay {
  opacity: 1 !important;
  background: linear-gradient(to top, rgba(20,23,26,.6) 0%, transparent 45%) !important;
}
.tvc-gl-caption-below {
  padding: 8px 6px 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}
.tvc-gl-caption-lb-link {
  color: inherit;
  text-decoration: none;
}
.tvc-gl-caption-lb-link:hover { color: var(--tvc-accent, #e8a41f); }
