/* Isolated styles for bio quick-access 2x2 card grid
   Namespaced with mm-bio- to avoid collisions
*/
.mm-bio-cards-wrapper {
  padding: 40px 0
}


.mm-bio-cards-wrapper-rede {
  padding: 10px 0
}


.mm-bio-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px
}

.mm-bio-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 300px;
  background-color: #111;
  background-size: cover;
  background-position: center;
  display: block
}

.mm-bio-card {
  background: var(--mm-bio-bg) center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat
}

.mm-bio-card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
  text-decoration: none;
  background: transparent; /* ensure buttons don't show default OS styling */
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mm-bio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.6) 70%);
  pointer-events: none
}

.mm-bio-card-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 3
}

.mm-bio-card-title {
  font-size: 26px;
  line-height: 1.05;
  margin: 0 0 6px;
  font-weight: 400;
  letter-spacing: 0.02em
}

.mm-bio-card-sub {
  font-size: 14px;
  opacity: .85;
  margin: 0
}

.mm-bio-card-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.06);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: transform .2s ease, background .2s ease
}

.mm-bio-card-arrow i {
  color: #fff;
  font-size: 16px
}

.mm-bio-card-link:hover .mm-bio-card-arrow {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12)
}

/* Custom Lity close button (large visible X) */
.custom-lity-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.custom-lity-close:focus { outline: 2px solid rgba(255,255,255,0.25); }

/* responsive */
@media (max-width:767px) {

  /* Keep two columns on mobile as requested (2x2) */
  .mm-bio-cards-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .mm-bio-card {
    min-height: 180px;
    border-radius: 12px
  }

  .mm-bio-card-title {
    font-size: 18px
  }

  .mm-bio-card-sub {
    font-size: 13px
  }

  .mm-bio-card-text {
    left: 12px;
    right: 12px;
    bottom: 12px
  }

  .mm-bio-card-arrow {
    width: 38px;
    height: 38px;
    top: 8px;
    right: 8px
  }
}

@media (max-width:360px) {

  /* On very narrow screens keep two columns but slightly smaller cards */
  .mm-bio-card {
    min-height: 160px
  }

  .mm-bio-card-title {
    font-size: 16px
  }
}

/* Align icons and text in the awards/cards row without affecting other .title usages */
.tc-awards-st2 .title {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1
}

.tc-awards-st2 .title .icon-30 {
  display: inline-flex !important;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-size: 20px
}

.tc-awards-st2 .title .icon-30 svg {
  width: 100%;
  height: 100%
}

/* Contact grid used in bio.html (contact/whatsapp/email/website) */
.tc-contact-grid {
  display: flex;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.tc-contact-card {
  flex: 0 1 calc(33.333% - 12px);
  min-width: 220px;
  background: var(--tc-contact-bg, rgba(0,0,0,0.02));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 18px;
  box-sizing: border-box;
  justify-content: center;
}

.tc-contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.tc-contact-card .mm-bio-card-text {
  position: static;
  z-index: 1;
  text-align: center;
}

.tc-contact-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
  margin-bottom: 6px;
}

@media (max-width: 991px) {
  .tc-contact-card { flex: 0 1 48%; min-width: 180px }
}

@media (max-width: 420px) {
  /* Force three cards side-by-side on very small screens.
     Use more specific selectors and !important to override other rules. */
  .mm-bio-cards-wrapper-rede .tc-contact-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .mm-bio-cards-wrapper-rede .tc-contact-card {
    display: block !important;
    flex: none !important; /* disable flex sizing */
    width: 100% !important;
    min-width: 100% !important;
    padding: 12px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .mm-bio-cards-wrapper-rede .tc-contact-link {
    width: 100% !important;
    align-items: center !important;
  }

  .mm-bio-cards-wrapper-rede .tc-contact-icon {
    width: 56px !important;
    height: 56px !important;
  }

  .mm-bio-cards-wrapper-rede .tc-contact-card .mm-bio-card-text {
    text-align: center !important;
  }
}


   /* Estilos para a seção do vídeo */
            .tc-video-st2 {
                position: relative;
                width: 100%;

                margin: 0 auto;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            }

            .video-bio {
                background-color: #000;
                aspect-ratio: 16/9;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .tc-video-st2 .bg {
                width: 100%;
                height: 100%;
                object-fit: cover;
                opacity: 0.7;
            }

            /* Botão de play */
            .butn {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                z-index: 10;
                text-decoration: none;
                color: white;
                padding: 12px 24px;
                border-radius: 50px;
                font-weight: 600;
                display: flex;
                align-items: center;
                transition: all 0.3s ease;
            }

            .butn.bg-gold1 {
                background: linear-gradient(135deg, #ffd700, #ffb700);
                color: #333;
            }

            .butn:hover {
                transform: translate(-50%, -50%) scale(1.05);
                box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
            }

            /* Linhas decorativas */
            .lines-st2 {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
            }

            .lines-st2 span {
                position: absolute;
                background: rgba(255, 255, 255, 0.1);
            }

            .lines-st2 span:first-child {
                top: 0;
                left: 0;
                width: 100%;
                height: 1px;
            }

            .lines-st2 span:last-child {
                top: 0;
                right: 0;
                width: 1px;
                height: 100%;
            }

            /* Modal do vídeo */
            .video-modal {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.9);
                z-index: 10000;
                /* increase to sit above other stacked elements */
                align-items: center;
                justify-content: center;
                padding: 20px;
            }

            .video-modal.active {
                display: flex;
            }

            .video-container {
                position: relative;
                width: 100%;
                max-width: 900px;
                max-height: 90vh;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            }

            .video-container video {
                width: 100%;
                height: auto;
                max-height: 90vh !important;
                display: block;

            }

            .close-btn {
                position: absolute;
                top: 15px;
                right: 15px;
                background: rgba(0, 0, 0, 0.7);
                color: white;
                border: none;
                width: 40px;
                height: 40px;
                border-radius: 50%;
                font-size: 20px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 10;
                transition: background 0.3s;
            }

            .close-btn:hover {
                background: rgba(0, 0, 0, 0.9);
            }

            /* Texto informativo */
            .info-text {
                text-align: center;
                margin-top: 30px;
                max-width: 800px;
                margin-left: auto;
                margin-right: auto;
                padding: 20px;
                background: white;
                border-radius: 8px;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            }



            /* Responsividade */
            @media (max-width: 768px) {
                .tc-video-st2 {
                    max-width: 100%;
                }

                .video-container {
                    max-height: 70vh;
                }

                .video-container video {
                    max-height: 70vh;
                }
            }

            /* Make the contact cards display 3 side-by-side on mobile */
            @media (max-width: 767px) {
                .tc-contact-grid {
                    display: flex !important;
                    gap: 12px;
                    justify-content: center;
                    align-items: stretch;
                    flex-wrap: nowrap;
                    overflow-x: auto;
                    -webkit-overflow-scrolling: touch;
                }

                .tc-contact-card {
                    flex: 0 0 calc((100% - 24px)/3);
                    max-width: calc((100% - 24px)/3);
                    min-width: 120px;
                    box-sizing: border-box;
                }

                .tc-contact-link {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    padding: 12px;
                }

                .tc-contact-icon {
                    flex-shrink: 0;
                    margin-right: 8px;
                }

                .mm-bio-card-text {
                    text-align: left;
                }
            }

/* Applied to the small hero image/video block in bio.html
   Adds rounded corners and darkens the media for better overlay contrast */
.sm-img {
  border-radius: 10px;
  overflow: hidden;
}

/* Apply darkening only to the video used as background/cover */
.sm-img video.img-cover {
  filter: brightness(0.5);
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Preserve normal brightness for inline/profile images that also use .img-cover */
.sm-img img.img-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}