html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #1A1A1A;
  background: #fff;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; }

.btn {
  background: #00AEEF;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  transition: 0.3s;
}
.btn:hover { background: #9BD1EF; }

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #000;
  font-size: 16px; 
}

a { 
  text-decoration: none; 
  transition: all 0.3s ease;
}

.btn {
  background: #40BDCE;
  color: #000000;
  padding: 14px 35px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  font-size: 27.5px;
  letter-spacing: .02em;
  transition: 0.3s;
  border: none;
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
  text-transform: uppercase;
}
.btn-teal {
  background: #9BD1EF;
  margin-top: 70px;
}
.btn:hover, .btn-teal:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

.header-logo {
  background-color: #f5eef7;
  position: relative;
  z-index: 5;
}

.header-logo .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.tcu-logo {
  width: 445px;
  margin-left: -70px;
  height: auto;
}


.hero {
  --hero-min-height: 10px;
  --hero-padding-top: 80px;
  --hero-padding-bottom: 100px;
  --hero-text-max: 520px;
  --hero-person-width: 900px;
  --hero-person-right: -10%;
  --hero-person-shift-y: -54%;
  position: relative;
  min-height: var(--hero-min-height);
  background: url('imagens/fundo-banner.png') center center/cover no-repeat;
  overflow: hidden;
  padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
  display: flex;
  align-items: stretch;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-person {
  position: absolute;
  top: 60%;
  right: var(--hero-person-right);
  transform: translateY(var(--hero-person-shift-y));
  width: var(--hero-person-width);
  max-width: -100px;
  height: auto;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: 1200px;
}

.hero-content {
  padding: 0;
  max-width: var(--hero-text-max);
  flex: 1;
}

.hero-text {
  padding: 0;
  position: relative;
}

.aviso {
  position: relative;
  max-width: 100%;
  margin: 0 0 30px 0;
  padding: 28px 0 22px;
  margin-top: -50px;
  line-height: 1.45;
  font-size: 24.74px;
  color: #1f2d35;
  font-weight: 400;
  border: none;
  z-index: 2;
}

.aviso::before, .aviso::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3EB3E8;
}

.aviso::before { top: 0; }
.aviso::after { bottom: 0; }

.aviso strong {
  font-weight: bold;
}

.hero-text::before {
  display: none;
}

.hero-text::after {
  display: none;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.4;
  text-align: left;
  color: #333;
}

.hero-period {
  font-weight: 700;
  color: #333;
  display: inline;
}
.hero-logo-container {
  position: absolute;
  top: 48px;
  left: 50px;
  z-index: 3;
}
.hero-logo {
  height: 56px;
  width: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: unset;
  padding-left: 0;
  max-width: 480px;
}
.hero-title {
  font-weight: 400;
  font-size: 1.8rem;
  line-height: 1.4;
  color: #333;
  margin-bottom: 40px;
  text-align: left;
  position: relative;
  max-width: 520px;
}

.hero-title .hero-period {
  font-weight: 700;
  color: #333;
  display: inline;
}

.btn-teal { margin-left: 0; position: relative; z-index: 2; }

@media (max-width: 900px) {
  .hero {
    --hero-min-height: 100vh !important;
    --hero-person-width: 380px;
    --hero-person-right: 2%;
    padding: 0 !important;
    min-height: 100vh !important;
    background-image: none !important;
    background-color: #f5eef7 !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero-person { 
    display: none !important;
  }
  .hero .container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    padding: 0 20px !important;
  }
  .hero-content {
    text-align: center !important;
    width: 100% !important;
  }
  .aviso { 
    font-size: 1.08rem; 
    margin: 0 !important;
    padding: 15px 20px !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  .aviso br {
    display: none !important;
  }
  .btn-teal {
    margin-top: 20px !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  .hero {
    --hero-min-height: 100vh !important;
    --hero-person-width: 540px;
    padding: 0 !important;
    min-height: 100vh !important;
    background-image: none !important;
    background-color: #f5eef7 !important;
    display: flex !important;
    align-items: center !important;
  }
  .hero-person {
    display: none !important;
  }
  .hero .container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    padding: 0 15px !important;
  }
  .hero-content { 
    max-width: 100%; 
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: auto !important;
    text-align: center !important;
  }
  .aviso { 
    font-size: 1.02rem; 
    padding: 15px 20px !important; 
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  .btn-teal { 
    font-size: .85rem; 
    padding: 12px 26px; 
    width: 100% !important;
    text-align: center !important;
    margin-top: 20px !important;
  }
}

.video-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.video-title {
  color: #3F3D56;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  line-height: 1.4;
}

.video-container {
  position: relative;
  width: 100%; 
  max-width: 800px;
  margin: 0 auto;
  background-color: #FCF4FF;
  border-radius: 8px;
  padding: 30px;
  display: flex;
  justify-content: center;
}

.video-frame-container {
  width: 50%;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background-color: #333;
}

.video-frame {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
  position: relative;
  z-index: 1;
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #333;
  border-radius: 8px;
  z-index: 0;
}

.fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.7;
}

.fallback-link {
  position: absolute;
  background-color: #49BBBD;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.fallback-link:hover {
  background-color: #319ca0;
  transform: translateY(-2px);
}

.video-overlay {
  width: 50%;
  display: flex;
  align-items: center;
  padding-left: 30px;
}

.video-text {
  width: 100%;
  color: #3F3D56;
}

.video-divider {
  height: 2px;
  background-color: #3F3D56;
  margin: 20px 0;
  width: 80%;
}

.video-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.video-actions {
  margin-top: 40px;
  width: 100%;
}

.action-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.download-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 900px;
}

.btn-cartilha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  text-decoration: none;
  background-color: #202945;
  color: white;
  padding: 16px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.btn-cartilha:hover {
  background-color: #111629;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-text {
  margin-right: 20px;
  white-space: nowrap;
}

.pdf-icon {
  background-color: #e4423c;
  padding: 5px;
  border-radius: 4px;
  height: 24px;
  width: auto;
}

.faça-download {
  font-weight: 700;
  color: #3F3D56;
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  position: relative;
  text-align: center;
  width: 100%;
}

.download-links {
  display: flex;
  justify-content: center;
  margin-left: -10px;
  align-items: center;
  gap: 400px;
  max-width: 400px;
}

.download-link img {
  height: 45px;
  width: auto;
  transition: transform 0.2s;
}

.download-link:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .download-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .download-links {
    max-width: 700px;
    gap: 120px;
  }
}

@media (max-width: 768px) {
  .download-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .btn-cartilha {
    font-size: 0.75rem;
    padding: 14px 20px;
    max-width: 95%;
  }
}

@media (max-width: 900px) {
  .video-container {
    flex-direction: column;
  }
  
  .video-frame,
  .video-overlay {
    width: 100%;
  }
  
  .video-overlay {
    padding-left: 0;
    padding-top: 20px;
  }
  
  .video-actions {
    flex-direction: column;
    gap: 20px;
  }
  
  .download-options {
    flex-direction: column;
    width: 100%;
  }
}

.downloads img {
  height: 40px;
  margin: 5px;
}

.update-section {
  padding: 40px 20px;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .update-section {
    padding: 15px;
    margin: 0;
  }
  
  .update-card {
    margin: 20px 0;
  }
  
  .update-content-wrapper {
    flex-direction: column;
    padding: 20px 15px;
    text-align: center;
  }
  
  .update-text {
    margin-bottom: 20px;
    text-align: center;
    max-width: 100%;
    font-size: 1.1rem;
  }
  
  .update-button {
    margin-left: 0;
    width: auto;
    padding: 12px 30px;
  }
  
  .update-content-wrapper::before {
    opacity: 0.1;
    width: 100%;
    background-position: center;
  }
}

.update-card {
  background-color: transparent;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 5px 0;
  margin-top: -70px;
  width: 100%;
}

.update-content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 30px 60px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.update-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-image: url('imagens/digitando.jpg');
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.3;
  z-index: 0;
}

.update-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  text-align: left;
  max-width: 50%;
  z-index: 1;
  position: relative;
  color: #333333;
}

.update-button {
  background-color: #9fd2e9;
  color: #222222;
  padding: 12px 24px;
  border-radius: 5px;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
  z-index: 1;
  position: relative;
}

.update-button:hover {
  background-color: #87c5e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.update-image {
  flex: 0 0 40%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modalidades {
  padding: 40px 0;
  background-color: #f5f5f5;
  position: relative;
}

.modalidades-title {
  color: #3F3D56;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: left;
  line-height: 1.4;
  padding-left: 10px;
}

.modalidade-card {
  display: flex;
  margin-bottom: 40px; 
  border-radius: 16px; 
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12); 
  background-color: #ffffff;
  padding: 35px; 
  min-height: 220px;
  transition: all 0.3s ease; 
}

.modalidade-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15); 
  transform: translateY(-3px); 
}

.modalidade-image {
  flex: 0 0 30%;
  padding: 0;
  display: flex;
  align-items: center; /* centraliza verticalmente a imagem */
  justify-content: center;
  background-color: transparent;
  overflow: hidden;
  height: 100%;
}

/* Ajustes específicos para o primeiro card (reconhecimento facial) para ficar igual ao layout visual do segundo */
.modalidade-card:first-of-type { 
  align-items: center; /* centraliza imagem e conteúdo verticalmente */
}
.modalidade-card:first-of-type .modalidade-image { 
  flex: 0 0 260px; /* largura consistente */
  max-width: 260px; 
  height: 100%;
}
.modalidade-card:first-of-type .modalidade-image img { 
  width: 100%;
  height: auto; 
  object-fit: cover; 
  border-radius: 10px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
  .modalidade-card:first-of-type .modalidade-image { 
    max-width: 100%;
    flex: 1 1 auto;
    height: 200px; /* segue padrão mobile */
  }
  .modalidade-card:first-of-type .modalidade-image img { 
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

.modalidade-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.modalidade-right .modalidade-image img {
  height: 220px;
  object-position: center;
}

.modalidade-content {
  flex: 1;
  padding: 0 0 0 20px;
  background-color: transparent;
}

.modalidade-title {
  color: #3F3D56;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px; 
  line-height: 1.4; 
}

.modalidade-text {
  color: #333; 
  font-size: 1.1rem; 
  line-height: 1.7; 
  margin-bottom: 22px; 
}

.modalidade-text a {
  color: #2778E2;
  text-decoration: underline; 
  font-weight: 600; 
}

.modalidade-text a:hover {
  text-decoration: underline;
  color: #1a65cc; 
}

.modalidade-text.small {
  font-size: 1rem; 
  color: #444; 
  line-height: 1.6; 
  font-weight: 500; 
}

.btn-govbr {
  background-color: #2778E2;
  color: white;
  padding: 10px 24px;
  border-radius: 8px; 
  display: inline-block;
  font-weight: 700; 
  font-size: 1rem; 
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2); 
}

.btn-govbr-large {
  padding: 16px 44px; 
  font-size: 1.2rem; 
  border-radius: 8px;
  min-width: 260px; 
  text-align: center;
}

.button-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px; 
}

.btn-govbr:hover {
  background-color: #1a65cc;
  transform: translateY(-2px); 
  box-shadow: 0 5px 12px rgba(0,0,0,0.25); 
}

.btn-govbr:focus {
  outline: 3px solid #a5c7f8;
  outline-offset: 2px;
}
 

.modalidade-card.inverted {
  flex-direction: row-reverse;
}

.modalidade-card.inverted .modalidade-content {
  padding: 0 0 0 20px;
}

.modalidade-card.inverted .modalidade-image {
  padding: 0 20px 0 0;
}

.modalidade-card-expanded {
  display: flex;
  flex-direction: row;
  padding: 40px;
  gap: 60px;
}

.modalidade-left {
  flex: 1.5;
  padding-right: 0;
}

.modalidade-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modalidade-right .modalidade-image {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
}

.modalidade-right .modalidade-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  max-height: none;
}

p.duvidas {
  margin-top: 20px;
  margin-bottom: 0;
  padding: 0;
  max-width: 100%;
}

.mid-downloads {
  padding: 40px 0;
  background-color: #FFFFFF;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

.download-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.faça-download-text {
  font-size: 1rem;
  font-weight: 700;
  color: #3F3D56;
}

.download-apps {
  display: flex;
  align-items: center;
  gap: 150px; /* Aumentado para corresponder ao mesmo espaçamento da classe download-links */
}

.download-app-link img {
  height: 40px;
  transition: transform 0.2s;
}

.download-app-link:hover img {
  transform: scale(1.05);
}

.cta-section {
  padding: 40px 20px;
  background-color: #FFFFFF;
  width: 100%;
  overflow: hidden;
}

.cta-card {
  background-color: transparent;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
  width: 100%;
}

.cta-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #000000;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.cta-text {
  color: #FFFFFF;
  font-size: 27.3px;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
  text-align: left;
  max-width: 70%;
}

.cta-button {
  background-color: #FFFFFF;
  color: #252641;
  padding: 12px 30px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  font-size: 24.78px;
  transition: background-color 0.3s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  
  .hero { 
    text-align: center;
    min-height: 450px;
  }
  
  .hero-img { 
    float: none; 
    margin-top: 20px; 
  }
  
  .update-card {
    flex-direction: column;
  }
  
  .update-content {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    order: 1;
  }
  
  .update-image {
    width: 100%;
    order: 0;
  }
  
  .modalidade-card {
    flex-direction: column !important;
    margin-bottom: 40px;
  }
  
  .modalidade-image {
    width: 100%;
    height: 200px;
  }
  
  .modalidade-content {
    width: 100%;
    padding: 30px 20px;
  }
  
  .download-bar {
    flex-direction: column;
  }
  
  .download-apps {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cta-section {
    padding: 15px;
    margin: 0;
  }
  
  .cta-card {
    margin: 20px 0;
  }
  
  .cta-content-wrapper {
    flex-direction: column;
    padding: 20px 15px;
    text-align: center;
  }
  
  .cta-text {
    margin-bottom: 20px;
    text-align: center;
    max-width: 100%;
    font-size: 1.1rem;
  }
  
  .cta-button {
    margin-left: 0;
    width: 100%;
    padding: 12px 15px;
  }
}

@media (max-width: 640px) {
  .modalidades-title {
    font-size: 1.4rem;
  }
  
  .update-content-wrapper, .cta-content-wrapper {
    padding: 15px;
  }
  
  .update-text, .cta-text {
    font-size: 1rem;
  }
  
  .header-logo {
    padding: 15px 0;
  }
  
  .header-logo .container {
    justify-content: center;
  }
  
  .tcu-logo {
    width: 260px;
  }
  
  .hero {
    min-height: 380px;
    background-position: 100% center;
    background-size: auto 70%;
  }
  
  .aviso {
    font-size: 1.2rem;
    margin: 0 0 26px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .btn {
    font-size: 0.85rem;
    padding: 10px 25px;
  }
}

@media (max-width: 400px) {
  .update-content-wrapper, .cta-content-wrapper {
    padding: 15px 10px;
  }
  
  .update-button, .cta-button {
    font-size: 0.85rem;
    padding: 10px;
  }
  
  .update-text, .cta-text {
    font-size: 0.95rem;
  }
  
  .modalidade-title {
    font-size: 1.2rem;
  }
  
  .video-container {
    padding: 20px;
    flex-direction: column;
  }
  
  .video-frame, .video-overlay {
    width: 100%;
  }
  
  .video-overlay {
    padding-left: 0;
    padding-top: 20px;
  }
  
  .header-logo .container {
    justify-content: center;
  }
  
  .tcu-logo {
    width: 200px;
  }
  
  .hero {
    min-height: 320px;
    background-position: 95% center;
    background-size: auto 60%;
  }
  
  .aviso {
    font-size: 1.05rem;
    margin: 0 0 22px 0;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}

.modalidades-title {
  text-align: center !important;
  padding-left: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 880px !important;
  display: block;
}
.modalidades-title br { display: none; }

 
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  .container {
    width: 100% !important;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 10px;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .cta-section, .update-section {
    padding: 15px 10px;
  }
  
  .cta-content-wrapper, .update-content-wrapper {
    padding: 20px 15px;
  }
  
  .cta-button {
    box-sizing: border-box;
    width: 100%;
  }
  
  .update-button {
    box-sizing: border-box;
    width: auto;
    display: inline-block;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .cta-content-wrapper, .update-content-wrapper {
    padding: 15px 10px;
  }
  
  .cta-text, .update-text {
    font-size: 0.95rem;
  }
  
  .cta-button, .update-button {
    font-size: 0.85rem;
    padding: 10px;
  }
}

 
.video-frame-container {
  position: relative;
}

.video-frame {
  position: relative;
  z-index: 1;
}

.video-frame-container iframe.error + .video-fallback {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.fallback-message {
  color: white;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 15px;
  padding: 0 20px;
}

.video-container {
  max-width: 1000px; 
  padding: 40px; 
}

.video-frame-container {
  width: 60%; 
}

.video-overlay {
  width: 40%; 
}

.video-title {
  font-size: 1.75rem; 
  margin-bottom: 50px; 
  font-weight: 700; 
}

.video-text h3 {
  font-size: 1.4rem; 
  line-height: 1.6; 
}

.fallback-message {
  font-size: 1.2rem; 
  font-weight: 500;
}

.fallback-link {
  padding: 12px 25px; 
  font-size: 1.1rem; 
}

@media (min-width: 1400px) {
  .video-container {
    max-width: 1200px;
  }
}

@media (max-width: 900px) {
  .video-container {
    padding: 30px 20px;
  }
  
  .video-frame-container {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .video-frame {
    height: auto;
    min-height: 250px;
  }
  
  .video-title {
    font-size: 1.5rem;
    line-height: 1.5;
    padding: 0 10px;
  }
  
  .video-text h3 {
    font-size: 1.35rem;
    text-align: center;
  }
  
  .video-divider {
    margin: 20px auto;
  }
}

@media (max-width: 480px) {
  .video-title {
    font-size: 1.4rem;
  }
  
  .fallback-message {
    font-size: 1.1rem;
    padding: 0 15px;
  }
}


html {
  scroll-behavior: smooth;
}

#modalidades {
  scroll-margin-top: 30px; 
}

.btn {
  cursor: pointer; 
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus {
  outline: 3px solid rgba(73, 187, 189, 0.5);
  outline-offset: 2px;
}


.download-banner {
  width: 100%;
  padding: 20px 0;
  margin: 30px 0;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 50px;
}

.cartilha-pdf {
  width: 300px;
  height: auto;
  max-width: 100%;
  transition: transform 0.2s;
  display: block;
}

.download-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.faça-download {
  font-weight: 700;
  color: #333;
  font-size: 1rem;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 50px;
}

.download-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-link img {
  height: 60px;
  width: auto;
  transition: transform 0.2s;
}

.download-link:hover img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .download-row {
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
  }
  
  .download-section {
    flex-direction: column;
    gap: 15px;
  }
  
  .cartilha-pdf {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .faça-download {
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .download-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 15px;
  }
  
  .faça-download {
    text-align: center;
    border-right: none;
  }
}


 .modalidade-card-expanded {
  align-items: center;
}

.modalidade-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center; 
}

.modalidade-right .modalidade-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center; 
  justify-content: center; 
  padding: 10px 0; 
}

.modalidade-right .modalidade-image img {
  max-width: 90%; 
  height: auto;
  object-fit: contain; 
  display: block; 
  margin: 0 auto; 
  border-radius: 10px; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
}

@media (max-width: 768px) {
  .modalidade-card-expanded {
    flex-direction: column;
  }
  
  .modalidade-right {
    margin-top: 30px;
    width: 100%;
  }
  
  .modalidade-right .modalidade-image img {
    max-width: 100%;
    margin: 0 auto;
  }
  
  
  html, body {
    scroll-behavior: smooth !important;
  }
  
  .header-logo {
    position: relative !important;
    z-index: 10 !important;
  }
  
  .tcu-logo {
    width: 350px !important;
    margin-left: -20px !important;
  }
  
  .container {
    padding: 0 15px !important;
  }
  
  .update-section {
    padding: 10px 15px 25px !important;
  }
  
  .update-card {
    margin-top: -30px !important;
  }
  
  .update-content-wrapper {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px 15px !important;
    gap: 15px !important;
  }
  
  .update-text {
    font-size: 1rem !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }
  
  .update-button {
    width: 100% !important;
    text-align: center !important;
    margin-left: 0 !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }
  
  .update-content-wrapper::before {
    opacity: 0.05 !important;
  }
  
  .video-section {
    padding: 40px 15px !important;
  }
  
  .video-title {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
    margin-bottom: 25px !important;
  }
  
  .video-title br {
    display: none !important;
  }
  
  .download-section {
    width: 100% !important;
  }
  
  .download-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
  }
  
  .download-links img {
    max-width: 130px !important;
    height: auto !important;
  }
  
  .faça-download {
    text-align: center !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
  }
  
  .download-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 25px !important;
    padding: 0 20px !important;
  }
  
  .modalidades {
    padding: 40px 15px !important;
  }
  
  .modalidade-card {
    margin-bottom: 25px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  }
  
  .modalidade-title {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
  }
  
  .modalidade-text {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 480px) {
  .tcu-logo {
    width: 280px !important;
    margin-left: -10px !important;
  }
  
  .hero {
    padding: 0 !important;
    background-image: none !important;
    background-color: #f5eef7 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .hero .container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    padding: 0 10px !important;
  }
  
  .hero-content {
    text-align: center !important;
    width: 100% !important;
  }
  
  .hero-person {
    display: none !important;
  }
  
  .aviso {
    font-size: 0.95rem !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  
  .btn-teal {
    width: 100% !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    padding: 10px 15px !important;
  }
  
  .container {
    padding: 0 10px !important;
  }
  
  .download-links {
    gap: 25px !important;
  }
  
  .download-links img {
    max-width: 110px !important;
  }
  
  .hero {
    padding-bottom: 50px !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    background-image: none !important;
    background-color: #f5eef7 !important;
  }
  
  .hero .container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
  }
  
  .cta-section {
    padding: 30px 15px !important;
  }
  
  .cta-content-wrapper {
    flex-direction: column !important;
    text-align: center !important;
    padding: 25px 20px !important;
    gap: 20px !important;
  }
  
  .cta-text {
    font-size: 1.1rem !important;
    max-width: 100% !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }
  
  .cta-text br {
    display: none !important;
  }
  
  .cta-button {
    width: 100% !important;
    text-align: center !important;
    padding: 15px 20px !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .hero {
    width: 100% !important;
    background-image: none !important;
    background-color: #f5eef7 !important;
    max-height: 100vh !important;
    overflow: hidden !important;
  }
  
  .hero * {
    max-height: 100vh !important;
  }
  
  .hero::after,
  .hero .container::after,
  .hero-content::after {
    display: none !important;
  }
  
  .hero::before {
    display: none !important;
  }
  
  .video-container {
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  
  .video-frame-container {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  }
  
  .video-overlay {
    margin-top: 20px !important;
    padding: 20px 15px !important;
    border-radius: 8px !important;
  }
  
  .video-text h3 {
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
  }
  
  .footer {
    padding: 30px 15px 20px !important;
  }
  
  .footer-content {
    text-align: center !important;
    font-size: 0.9rem !important;
  }
  
  .btn, .btn-teal, .update-button, .cta-button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
  }
  
  .video-section, .modalidades, .update-section, .cta-section {
    margin-bottom: 20px !important;
  }
  
  .aviso {
    background-color: transparent !important;
    border-radius: 8px !important;
    padding: 20px 15px !important;
    margin: 15px 0 25px !important;
    box-shadow: none !important;
  }
}


@media (max-width: 900px) {
  .hero, .hero .container {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }
  .hero {
    padding: 12px 0 28px !important;
    display: block !important;
  }
  .hero .container {
    display: block !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0 18px !important;
  }
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .aviso {
    margin-top: 5 !important;
    padding-top: 5px !important;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6px 0 24px !important;
  }
  .hero .container {
    padding: 0 14px !important;
  }
  .aviso {
    font-size: 0.98rem !important;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4px 0 20px !important;
  }
  .aviso {
    font-size: 0.92rem !important;
  }
}


@media (max-width: 820px) {
  .video-section {
    padding: 40px 14px !important;
  }
  .video-container {
    flex-direction: column !important;
    padding: 22px 18px !important;
    background-color: #FCF4FF !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05) !important;
  }
  .video-frame-container {
    width: 100% !important;
    margin: 0 0 26px 0 !important;
  }
  .video-overlay { 
    width: 100% !important;
    padding: 0 !important;
    display: block !important;
  }
  .video-text { text-align: center !important; }
  .video-text h3 {
    text-align: center !important;
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    max-width: 420px;
    margin: 0 auto 12px auto !important;
    white-space: normal !important;
  }
  .video-text h3 br { display: none !important; }
  .video-divider {
    width: 70px !important;
    margin: 14px auto !important;
  }
}

@media (max-width: 540px) {
  .video-container { padding: 18px 14px !important; }
  .video-text h3 { font-size: 1.05rem !important; }
  .video-divider { width: 58px !important; margin: 12px auto !important; }
}

@media (max-width: 400px) {
  .video-text h3 { font-size: 0.98rem !important; line-height: 1.32 !important; }
  .video-container { padding: 16px 12px !important; }
  .video-frame { min-height: 200px !important; }
}

.video-heading {
  letter-spacing: .02em;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.35;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 10px auto;
  padding: 0 4px;
}

@media (max-width: 820px) {
  .video-heading { font-size: 1.18rem; line-height: 1.32; }
}
@media (max-width: 600px) {
  .video-heading { font-size: 1.08rem; line-height: 1.30; }
}
@media (max-width: 480px) {
  .video-heading { font-size: 1rem; line-height: 1.28; letter-spacing: .015em; }
}
@media (max-width: 380px) {
  .video-heading { font-size: 0.94rem; line-height: 1.26; }
}


@media (min-width: 992px) {
  .download-links {
    gap: 160px !important; 
  }
  .download-links > a:first-child { margin-right: 40px !important; }
  .download-links > a:nth-child(2) { margin-right: 20px !important; }
}

@media (min-width: 1280px) {
  .download-links { gap: 10px !important; }
  .download-links > a:first-child { margin-right: 20px !important; }
}


.video-section .download-banner {
  margin-top: 35px;
}
.video-section .download-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.video-section .download-row > a.download-link:first-child {
  order: 0;
  margin: 0 auto;
}
.video-section .download-row .download-section {
  order: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.video-section .download-row .faça-download {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.video-section .download-row .download-links {
  display: flex;
  flex-direction: row;
  gap: 64px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}
@media (max-width: 820px) {
  .video-section .download-row .download-links { gap: 48px; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .video-section .download-row .download-links { gap: 30px; }
  .cartilha-pdf { width: 260px; }
}
@media (min-width: 1100px) {
  .cartilha-pdf { width: 340px; }
}


.mid-downloads .download-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mid-downloads .download-row > a.download-link:first-child {
  order: 0;
  margin: 0 auto;
}
.mid-downloads .download-row .download-section {
  order: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.mid-downloads .download-row .faça-download { margin: 0; padding: 0; }
.mid-downloads .download-row .download-links {
  display: flex;
  flex-direction: row;
  gap: 64px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}
@media (max-width: 820px) {
  .mid-downloads .download-row .download-links { gap: 48px; flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .mid-downloads .download-row .download-links { gap: 30px; }
  .mid-downloads .cartilha-pdf { width: 260px; }
}

body {
  background: #f4f6fa !important; 
  color: #1A1A1A;
}

.hero, .video-section, .update-section, .modalidades, .mid-downloads, .cta-section {
  background-color: #ffffff !important;
}


@media (max-width: 900px) {
  .hero {
    background-color: #f5eef7 !important; 
  }
  .aviso {
    font-size: 1.22rem !important; 
    line-height: 1.5 !important;
  }
  .btn-teal {
    font-size: 1.05rem !important; 
    padding: 14px 28px !important;
    letter-spacing: .04em !important;
  }
}
@media (max-width: 640px) { 
  .aviso { font-size: 1.18rem !important; }
  .btn-teal { font-size: 1rem !important; }
}
@media (max-width: 480px) { 
  .aviso { font-size: 1.14rem !important; }
  .btn-teal { font-size: 0.95rem !important; }
}


.video-container {
  display: block !important;
  max-width: 1000px; 
}
.video-frame-container {
  width: 100% !important;
  margin: 0 auto !important;
}
.video-overlay, .video-text, .video-divider, .video-heading { display: none !important; }

@media (max-width: 900px) {
  .video-container { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
  .video-frame-container { aspect-ratio: 16/9; }
}

.video-section, .update-section, .modalidades, .mid-downloads, .cta-section {
  margin-top: 0 !important;
}

html { background: #f4f6fa !important; }

/* =====================
   Rodapé (Dúvidas finais)
   ===================== */
.duvidas-final-section {
  background: #ffffff;
  padding: 40px 0 60px;
  border-top: 1px solid #e4e7eb;
}

.duvidas-final {
  margin: 0 auto;
  max-width: 880px;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
}

@media (max-width: 900px) {
  .duvidas-final-section { padding: 32px 0 50px; }
  .duvidas-final { font-size: 0.95rem; line-height: 1.5; }
}

@media (max-width: 640px) {
  .duvidas-final-section { padding: 28px 0 44px; }
  .duvidas-final { text-align: center; font-size: 0.94rem; padding: 0 8px; }
}

@media (max-width: 400px) {
  .duvidas-final-section { padding: 24px 0 40px; }
  .duvidas-final { font-size: 0.9rem; }
}


@media (max-width: 900px) {
  .update-section {
    background: transparent !important;
    padding: 25px 0 10px !important;
  }
  .update-card {
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .update-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  }
  .update-content-wrapper::before { display: none !important; }
  .update-text {
    background: transparent !important;
    padding: 0 8px !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
    max-width: 420px !important;
  margin: 0 auto !important;
  }
  .update-button {
    width: 100% !important;
    max-width: 320px !important;
    background: #b3def1 !important;
    color: #12222b !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
    font-size: 0.9rem !important;
    letter-spacing: .03em;
  margin-left: 0 !important;
  margin-right: 0 !important;
  }
  .update-button:hover {
    background: #a3d5ec !important;
    transform: translateY(-2px) !important;
  }
}