/* =========================================
   1. GLOBAIS E SCROLLBAR (Opção Nuclear)
   ========================================= */
html,
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;

  /* Esconde a barra no Firefox, IE e Edge */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  /* Esconde a barra no Firefox, IE e Edge */
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 0px !important;
  height: 0px !important;
  display: none !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 20px;
}

header,
footer {
  width: 100%;
  max-width: 100%;
}

/* =========================================
   2. HEADER & NAVBAR (DESKTOP)
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  width: 100%;
}

.navbar {
  padding: 15px 8%;
  max-width: 1400px;
  margin: 0 auto;
}

.conteudo-header {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  width: 100%;
}

.zona-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  justify-content: flex-start;
}

.logo-header {
  height: 50px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-link:hover {
  transform: scale(1.05);
}

/* Esconde as coisas do telemóvel no PC */
.btn-menu-lateral,
.gaveta-topo,
.fantasma,
.fundo-escuro {
  display: none;
}

.menu-gaveta {
  display: contents;
}

.menu-gaveta ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-self: center;
  white-space: nowrap;
}

.menu-gaveta ul a,
.dropbtn {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.menu-gaveta ul a:hover,
.dropbtn:hover {
  color: #006699;
  transform: scale(1.1);
}

.socios {
  justify-self: end;
  background-color: #146DB2;
  color: white !important;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}

.socios:hover {
  background-color: #006699;
  box-shadow: 0 4px 15px rgba(0, 102, 153, 0.4);
  transform: scale(1.1);
}

.line-socios {
  border: 0;
  height: 1px;
  background-color: #49484882;
  margin: 0 auto;
  width: 90%;
}

/* =========================================
   3. VIDEO
   ========================================= */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* Proporção 16:9 */
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Estilo do Botão de Som */
.btn-mute-custom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: background 0.3s, transform 0.2s;
}

.btn-mute-custom:hover {
    background-color: rgba(0, 102, 153, 0.9);
    transform: scale(1.05);
}

/* Escudo invisível para impedir overlays nativos do browser */
.click-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
}

/* Ocultar botões nativos de Cast / Transmitir / PiP do Chrome e Edge */
.video::-webkit-media-controls,
.video::-webkit-media-controls-enclosure,
.video::-webkit-media-controls-panel,
.video::-internal-media-controls-cast-button,
.video::-webkit-media-controls-overlay-cast-button,
.video::-webkit-media-controls-cast-button,
.video::-internal-media-controls-overlay-cast-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* =========================================
   4. EVENTOS
   ========================================= */
.events_container {
  margin-top: 50px;
  background-color: rgb(244, 249, 253);
  color: #333;
  padding: 45px 30px 40px 30px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.events_container h1 {
  margin-top: 0;
  margin-bottom: 35px;
  color: #146DB2;
  font-weight: bold;
  font-size: 2.5rem;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.carousel-viewport {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  padding: 35px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.carousel-track li {
  width: 295px;
  min-width: 295px;
  flex: 0 0 295px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  opacity: 0.6;
  transform: scale(0.88);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  user-select: none;
}

.carousel-track li:hover {
  opacity: 0.85;
  transform: scale(0.93);
}

.carousel-track li.active-card {
  opacity: 1;
  transform: scale(1.08) translateY(-10px);
  z-index: 10;
}

.carousel-track img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 8px 20px rgba(0, 50, 90, 0.12);
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
}

.carousel-track li.active-card img {
  box-shadow: 0 20px 45px rgba(20, 109, 178, 0.35);
  border: 2px solid rgba(20, 109, 178, 0.25);
}

.carousel-track h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  color: #146DB2;
  margin: 10px 0 5px 0;
  font-size: 1.25rem;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.carousel-track p {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #146DB2;
  margin: 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.carousel-track li.active-card h3,
.carousel-track li.active-card p {
  color: #1a2585;
}

.event_btn {
  display: inline-block;
  margin-top: 30px;
  background-color: #146DB2;
  color: white !important;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 104, 157, 0.3);
  transition: all 0.3s ease;
}

.event_btn:hover {
  background-color: #1a2585;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 104, 157, 0.5);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: #146DB2;
  border: 2px solid #146DB2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.carousel-wrapper:hover .nav-btn,
.events_container:hover .nav-btn {
  opacity: 1;
  pointer-events: auto;
}

.nav-btn:hover {
  background-color: #146DB2;
  color: white;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(0, 102, 153, 0.4);
}

.prev-btn {
  left: 10px;
}
.next-btn {
  right: 10px;
}

/* =========================================
   5. AE EM NÚMEROS
   ========================================= */
.AE_container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1400px;
  margin: 100px auto;
}

.AE_container img {
  width: 50%;
  height: auto;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ae-content-right {
  width: 50%;
  padding-right: 20px;
}

.ae-content-right h3 {
  color: #333;
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 60px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-item .number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #333;
  line-height: 1;
  margin-bottom: 5px;
  position: relative;
}

.stat-item .number::after {
  content: "";
  display: block;
  width: 150px;
  height: 10px;
  background: linear-gradient(to right, #333, transparent);
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
}

.stat-item .label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #555;
  text-transform: none;
  line-height: 1.2;
}

/* =========================================
   6. CONTACTO
   ========================================= */
.contact_container {
  margin-top: 50px;
  background-color: #146DB2;
  color: white;
  padding: 50px;
  border-radius: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  position: relative;
}

.contact_container h1 {
  padding-left: 20px;
  font-size: 40px;
  font-weight: 900;
}

.form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.textarea-container {
  position: relative;
}

.textarea-container textarea {
  padding-bottom: 50px;
  resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #146DB2;
  outline: none;
}

.submit-icon-btn {
  position: absolute;
  right: 15px;
  bottom: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  background-color: #146DB2;
  border-radius: 50%;
  border: none;
  color: white;
  padding: 0;
  cursor: pointer;
}

.submit-icon-btn svg {
  width: 20px;
  height: 20px;
  transform: translate(-1px, 1px);
}
.submit-icon-btn:hover {
  background-color: #004e75;
  transform: scale(1.05);
}

.submit-icon-btn:active {
  transform: scale(0.95);
}

.submit-icon-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.feedback-msg {
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
  min-height: 20px;
}

.feedback-success {
  color: green;
}
.feedback-error {
  color: red;
}

/* =========================================
   7. FOOTER
   ========================================= */
.footer {
  margin-top: 50px;
  background-color: #2a2a2a;
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
  padding: 50px 5% 20px 5%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
  position: relative;
}

/* Logo */
.logo-footer {
  width: 400px;
  flex-shrink: 0;
  margin-left: -30px;
}
.logo-footer img {
  width: 100%;
  height: auto;
}

/* Blocos de contacto */
.footer-info {
  display: flex;
  gap: 0;
  position: absolute;
  left: 53%;
  transform: translateX(-50%);
  justify-content: center;
}

.footer-bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
  width: 250px;
  padding: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bloco:first-child {
  border-left: none;
}

.footer-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.footer-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin: 0 0 6px 0;
}

.footer-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  margin: 0;
  line-height: 1.4;
}

/* Grid redes sociais 3x2 */
.footer-socials {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(2, 40px);
  gap: 25px;
  flex-shrink: 0;
  align-items: center;
  justify-items: center;
  margin-right: 50px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.footer-socials img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.3s;
  filter: brightness(0) invert(1);
}

.footer-socials img:hover {
  transform: scale(1.2);
}

.footer-copyright {
  text-align: center;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright p {
  color: #777;
  font-size: 0.8rem;
  margin: 0;
}

/* =========================================
   8. MOBILE HEADER (Max 1050px)
   ========================================= */
@media (max-width: 1050px) {
  .conteudo-header {
    display: flex;
  }

  .zona-logo {
    width: 100%;
    justify-content: space-between;
  }
  .btn-menu-lateral {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .fantasma {
    display: block;
    width: 28px;
  }
  .logo-link {
    margin: 0 auto;
  }

  .logo-header {
    height: 40px;
  }

  /* Gaveta */
  .menu-gaveta {
    display: flex;
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 25px;
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .menu-gaveta.aberta {
    left: 0;
  }

  .gaveta-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
  }

  .gaveta-topo .logo-header {
    height: 35px;
    max-width: 70%;
    object-fit: contain;
  }

  .btn-fechar {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-gaveta ul {
    flex-direction: column;
    width: 100%;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
  }

  .dropdown-content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .socios {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    justify-self: auto;
  }

  .fundo-escuro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s,
      visibility 0.4s;
  }
  .fundo-escuro.ativo {
    opacity: 1;
    visibility: visible;
  }
}

/* =========================================
   9. MOBILE GERAL (Max 768px)
   ========================================= */
@media (max-width: 768px) {
  .line-socios {
    width: 100%;
  }

  /* Vídeo */
  .video-container {
    border-radius: 20px;
    margin-top: 20px;
    width: 90%;
  }

  /* Eventos */
  .events_container {
    margin-top: 0px;
    padding: 30px 0;
    width: 100%;
  }

  .carousel-viewport {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100% !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }

  .carousel-track li {
    width: 100% !important;
    min-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
    opacity: 1 !important;
    transform: none !important;
  }

  .carousel-track img {
    width: 100%;
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .carousel-track h3 {
    font-size: 1.25rem;
    margin-top: 14px;
    margin-bottom: 4px;
    text-align: center;
  }

  .carousel-track p {
    font-size: 0.95rem;
    text-align: center;
  }

  .nav-btn {
    opacity: 0.85;
    pointer-events: auto;
    width: 40px;
    height: 40px;
    font-size: 16px;
    top: 40%;
  }

  .prev-btn {
    left: 4px;
  }

  .next-btn {
    right: 4px;
  }

  .event_btn {
    width: 70%;
    max-width: 280px;
    margin-top: 10px;
  }

  /* AE em Números */
  .AE_container {
    flex-direction: column;
    gap: 40px;
    margin: 50px 5%;
  }
  .AE_container img {
    width: 100%;
    border-radius: 30px;
  }
  .ae-content-right {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }
  .ae-content-right h3 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  .stats-grid {
    gap: 30px 15px;
  }
  .stat-item {
    align-items: center;
    text-align: center;
  }
  .stat-item .number {
    font-size: 2.5rem;
  }

  /* Contactos */
  .contact_container {
    padding: 30px 20px;
    margin-top: 30px;
    border-radius: 30px;
    width: 90%;
    box-sizing: border-box;
  }
  .contact_container h1 {
    font-size: 28px;
    padding-left: 0;
    text-align: center;
    margin-bottom: 30px;
  }
  .form-wrapper {
    padding: 25px 20px;
  }

  /* Footer Mobile */
  .footer {
    padding: 40px 20px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    position: static;
  }

  .logo-footer {
    width: 70%;
    margin: 0 auto -10px auto;
  }

  .footer-info {
    position: static;
    transform: none;
    left: auto;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .footer-bloco {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 15px;
    width: 100%;
    max-width: 100%;
  }

  .footer-bloco:first-child {
    border-top: none;
  }

  .footer-value {
    font-size: 0.9rem;
  }

  .footer-socials {
    grid-template-columns: repeat(3, 45px);
    grid-template-rows: repeat(2, 45px);
    gap: 20px;
    justify-self: center;
    margin: 0;
  }

  .footer-socials img {
    width: 40px;
    height: 40px;
  }

  .footer-copyright p {
    font-size: 0.75rem;
    padding: 0 10px;
  }
}


/*Estudante*/
/* --- Contentor Principal --- */
.univ-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 15px;
}

.univ-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 30px;
}

.univ-card {
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}

/* --- A CÁPSULA (O fundo azul) --- */
.univ-header-capsule {
  background: #2f84d3;
  padding: 6px;
  display: flex;
  position: relative; /* Necessário para o slider absoluto funcionar */
  border-radius: 8px; /* Arredondamento da barra azul */
  margin: 10px; /* Margem à volta da barra azul */
}

/* --- O SLIDER DESLIZANTE (O fundo branco que se mexe) --- */
.univ-tab-slider {
  position: absolute;
  top: 6px; /* Alinha com o padding da cápsula */
  left: 6px; /* Alinha com o padding da cápsula */
  width: calc(50% - 6px); /* Ocupa metade do espaço menos o padding */
  height: calc(
    100% - 12px
  ); /* Altura total menos o padding superior e inferior */
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

  /* A MAGIA DO DESLIZE */
  transition: transform 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  z-index: 0; /* Fica atrás dos botões */
}

/* Quando o contentor tem a classe 'slide-right', o slider move-se 100% para a direita */
.univ-header-capsule.slide-right .univ-tab-slider {
  transform: translateX(100%);
}

/* --- Estilo dos Botões (Texto) --- */
.univ-tab-btn {
  flex: 1; /* Ocupam 50% cada um */
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background-color: transparent;
  color: rgb(255, 255, 255);

  position: relative;
  z-index: 1; /* Fica à frente do slider */
  outline: none;
  transition: color 0.3s ease; /* Transição suave da cor do texto */
}

/* --- Cor do Texto ATIVO --- */
/* O botão ativo fica azul escuro para contrastar com o slider branco que está atrás dele */
.univ-tab-btn.active {
  color: #0d47a1;
}

/* --- Conteúdo do Texto (Igual ao anterior) --- */
.univ-content {
  display: none;
  padding: 40px;
  background: #fff;
}

.univ-content.active {
  display: block;
  animation: fadeEffect 0.4s ease-in;
}

.univ-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Layout Customizado do Mapa --- */
.custom-map-layout {
  display: flex; /* Coloca a barra e o mapa lado a lado */
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden; /* Garante que nada sai fora dos cantos redondos */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 400px; /* Altura mínima para ficar bonito */
  margin-top: 10px;
}

/* Lado Esquerdo: Barra Azul Escura */
.map-sidebar {
  background-color: #1a0dab; /* Azul roxo escuro (tipo o da imagem) */
  color: white;
  padding: 40px 30px;
  width: 25%; /* Ocupa 25% da largura */
  min-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.map-sidebar h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.map-sidebar p {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Lado Direito: Contentor do Mapa */
.map-visual-container {
  width: 75%; /* Ocupa o resto do espaço */
  background-color: #f4f7f6; /* Fundo cinza clarinho caso a imagem não cubra tudo */
  position: relative; /* Necessário para posicionar etiquetas em cima */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* A Imagem do Mapa */
.interactive-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta a imagem para cobrir a área */
  display: block;
}

/* --- Exemplo da Etiqueta "Ala Oeste" (Estilo Tooltip) --- */
.map-tooltip-example {
  position: absolute;
  background-color: #1a0dab;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  pointer-events: none; /* Para não interferir com cliques */
  transform: translate(-50%, -100%); /* Centraliza acima do ponto */
}

/* A setinha da etiqueta */
.tooltip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  margin-left: -6px;
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #1a0dab transparent transparent transparent;
}

/* --- Responsividade (Telemóvel) --- */
@media (max-width: 700px) {
  .custom-map-layout {
    flex-direction: column; /* Em telemóveis, a barra fica em cima */
  }

  .map-sidebar {
    width: 100%;
    padding: 20px;
    flex-direction: row; /* Título e subtítulo lado a lado no mobile */
    align-items: center;
    gap: 15px;
  }

  .map-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .map-visual-container {
    width: 100%;
    min-height: 300px;
  }
}

/* --- FALTA ESTA PARTE PARA A FUNCIONALIDADE (Botões e Troca de Ecrã) --- */

/* Transição suave ao trocar de vista */
#univ-info-view,
#univ-map-view {
  transition: opacity 0.3s ease;
  animation: fadeInView 0.4s ease-in-out;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- CORREÇÃO AQUI --- */
/* --- CORREÇÃO: Removemos o !important --- */
.hidden-view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease; /* Adiciona suavidade */
}

/* Garante que a animação funciona quando o JS ativa o bloco */
#univ-map-view,
#univ-info-view {
  animation: fadeInView 0.4s ease-in-out;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-btn {
  background-color: #fff;
  color: #0d47a1; /* Azul do tema */
  border: 2px solid #0d47a1;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px; /* Botão bem redondo */
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  gap: 8px; /* Espaço entre o ícone e o texto */
}

/* Efeito Hover no botão do mapa */
.map-btn:hover {
  background-color: #0d47a1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(13, 71, 161, 0.2);
}

/* --- Estilo do Botão "Voltar" (Seta) --- */
.back-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  transition: color 0.3s;
}

.back-btn:hover {
  color: #0d47a1; /* Fica azul ao passar o rato */
  text-decoration: underline;
}

/*Eventos*/
.grid-eventos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  padding: 10px;
  gap: 30px;
}

.grid-eventos a {
  text-decoration: none;
  display: flex;
}

.grid-eventos-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Empurra o texto para o fim e imagem para o topo */
  border-radius: 8px;
  padding: 20px; /* Adicionado padding para respirar */
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* Transição suave para tudo */
  width: 100%;
}

.grid-eventos-item:hover img {
  transform: translateY(-3px);
}

.grid-eventos-item:hover {
  transform: translateY(-5px);
  background-color: rgb(245, 245, 245);
}

.grid-eventos-item img {
  width: 60%;
  object-fit: contain;
}

.grid-eventos-item figcaption {
  margin-top: auto;
  padding-top: 15px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.grid-eventos-item:hover figcaption {
  color: #006699;
}

.grid-eventos img {
  width: 250px; /* Or whatever size you prefer */
  aspect-ratio: 1 / 1; /* Ensures it stays a square */
  object-fit: cover; /* Prevents stretching if the file isn't perfectly square */
}

@media (max-width: 768px) {
  .direcao-wrapper {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .container-direcao {
    margin: 50px auto;
  }

  .direcao-texto {
    text-align: left;
  }
}

/* =========================================
   AJUSTES MOBILE: PÁGINA NÚCLEOS
   ========================================= */

/* Tablets (ecrãs médios) */
@media (max-width: 1024px) {
  .grid-nucleos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-nucleos {
    grid-template-columns: repeat(2, 1fr); /* Passa a 2 colunas */
    gap: 15px;
    padding: 15px;
  }

  .grid-nucleos-item {
    padding: 15px 10px;
  }

  .grid-nucleos-item img {
    width: 75%;
  }

  .grid-nucleos-item figcaption {
    font-size: 12px;
    padding-top: 10px;
  }
}

@media (max-width: 480px) {
  .grid-nucleos {
    grid-template-columns: 1fr; /* Passa a 1 coluna apenas */
  }

  .grid-nucleos-item img {
    width: 50%;
  }
}

/* PÁGINA DE EVENTOS (Layout Split Cards Horizontais) */
.container-pagina-eventos {
  max-width: 1050px;
  margin: 50px auto 80px;
  padding: 0 24px;
}

.layout-lista-eventos {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Cartão do Evento */
.evento-list-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  min-height: 280px;
}

.evento-list-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 102, 153, 0.12);
  border-color: #006699;
}

/* Coluna da Imagem / Poster */
.evento-imagem-col,
.evento-imagem-wrapper {
  position: relative;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  align-self: stretch;
  height: auto;
  min-height: 280px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* MODO COVER (Preenchimento Total - Estica a imagem para preencher 100% do cartão) */
.evento-imagem-col.modo-cover,
.evento-imagem-col:not(.modo-contain),
.evento-imagem-wrapper.modo-cover,
.evento-imagem-wrapper:not(.modo-contain) {
  background: #f1f5f9;
}

.evento-imagem-col.modo-cover .evento-imagem-main,
.evento-imagem-col.modo-cover img,
.evento-imagem-col:not(.modo-contain) .evento-imagem-main,
.evento-imagem-col:not(.modo-contain) img,
.evento-imagem-wrapper.modo-cover .evento-imagem-main,
.evento-imagem-wrapper.modo-cover img,
.evento-imagem-wrapper:not(.modo-contain) .evento-imagem-main,
.evento-imagem-wrapper:not(.modo-contain) img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MODO CONTAIN (Poster Completo com Fundo Suave) */
.evento-imagem-col.modo-contain,
.evento-imagem-wrapper.modo-contain {
  background: #0f172a;
}

.evento-imagem-col.modo-contain .evento-imagem-bg,
.evento-imagem-wrapper.modo-contain .evento-imagem-bg {
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  object-fit: cover;
  filter: blur(28px) brightness(0.75);
  opacity: 0.95;
  transform: scale(1.15);
  pointer-events: none;
  z-index: 1;
}

.evento-imagem-col.modo-contain .evento-imagem-main,
.evento-imagem-col.modo-contain img:not(.evento-imagem-bg),
.evento-imagem-wrapper.modo-contain .evento-imagem-main,
.evento-imagem-wrapper.modo-contain img:not(.evento-imagem-bg) {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.evento-list-item:hover .evento-imagem-col img:not(.evento-imagem-bg),
.evento-list-item:hover .evento-imagem-wrapper img:not(.evento-imagem-bg) {
  transform: scale(1.05);
}

/* Bloco de Informação */
.evento-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 34px;
  flex-grow: 1;
  text-align: left;
  background: #ffffff;
}

.evento-info-conteudo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.evento-data-badge,
.evento-data {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #006699;
  background: #eef7fc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border: 1px solid #d4ebf8;
}

.evento-data-badge svg {
  color: #006699;
}

.evento-titulo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.25;
  text-align: left;
  min-height: auto;
}

.evento-descricao {
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 20px;
  font-size: 0.98rem;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evento-acoes {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}

.evento-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #006699 0%, #004d73 100%);
  color: #ffffff;
  padding: 11px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 153, 0.2);
  border: none;
  cursor: pointer;
}

.evento-btn:hover {
  background: linear-gradient(135deg, #005580 0%, #003854 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 102, 153, 0.3);
  color: #ffffff;
}

/* MOBILE & TABLET */
@media (max-width: 768px) {
  .container-pagina-eventos {
    margin: 30px auto 60px;
    padding: 0 16px;
  }

  .layout-lista-eventos {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .evento-list-item {
    flex-direction: column;
    border-radius: 18px;
    min-height: auto;
  }

  .evento-imagem-col,
  .evento-imagem-wrapper {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 240px;
    min-height: 240px;
  }

  .evento-info {
    padding: 22px 20px;
    text-align: left;
  }

  .evento-titulo {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .evento-descricao {
    font-size: 0.92rem;
    margin-bottom: 18px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .evento-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.92rem;
  }
}

/* Ecrãs Muito Estreitos (≤ 360px) */
@media (max-width: 360px) {
  .evento-imagem-col,
  .evento-imagem-wrapper {
    height: 200px;
    min-height: 200px;
  }
  .evento-titulo {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   ESTUDANTE: A NOSSA UNIVERSIDADE & MAPA 3D SEAMLESS (#E1E1E1)
   ========================================================================== */
.univ-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.univ-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    color: #002b49;
    margin-bottom: 25px;
}

/* Cartão Principal Seamless com fundo #E1E1E1 */
.univ-card-mapa {
    background-color: #E1E1E1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
    border: none;
    padding: 0;
}

.univ-card-header {
    background-color: #E1E1E1;
    padding: 35px 20px 10px 20px;
    text-align: center;
}

.polo-titulo-central {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #002b49;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Contentor e Imagem 3D 100% integrados sem bordas nem sombras */
.campus-3d-wrapper {
    background-color: #E1E1E1;
    padding: 10px 30px 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: none;
}

.campus-3d-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
    margin: 0 auto;
}

.campus-3d-img {
    width: 100%;
    height: auto;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.campus-3d-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border: none !important;
    overflow: visible;
}

.edificio-layer {
    pointer-events: auto;
    cursor: pointer;
}

.edificio-lift {
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
    transform: translateY(0);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    will-change: transform, filter;
}

.edificio-hotspot {
    fill: rgba(0, 0, 0, 0.001);
    stroke: transparent;
    stroke-width: 0;
    pointer-events: all;
    cursor: pointer;
}

.edificio-layer:hover .edificio-lift {
    transform: translateY(-35px);
    filter: drop-shadow(0 30px 25px rgba(0, 0, 0, 0.5));
}

.edificio-layer:active .edificio-lift {
    transform: translateY(-12px);
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.4));
}

.univ-card-footer {
    background-color: #E1E1E1;
    padding: 10px 20px 40px 20px;
    text-align: center;
}

.map-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #006699;
    color: #ffffff;
    padding: 13px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 102, 153, 0.25);
    transition: all 0.3s ease;
}

.map-btn-link:hover {
    background-color: #004d73;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 153, 0.35);
}

/* Botões Rápidos de Seleção de Edifício (Pills) - Apenas para Telemóvel */
.mapa-edificios-pills {
    display: none; /* Escondido na versão de PC */
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 6px 0;
}

.btn-edificio-pill {
    background: #ffffff;
    color: #002b49;
    border: 1.5px solid #cbd5e1;
    padding: 9px 18px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.btn-edificio-pill:hover,
.btn-edificio-pill:focus-visible {
    background: #006699;
    color: #ffffff;
    border-color: #006699;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 153, 0.25);
}

.btn-edificio-pill:active {
    transform: scale(0.95);
}

/* ========================================================
   RESPONSIVIDADE MOBILE PARA A PÁGINA DO MAPA E ESTUDANTE
   ======================================================== */
@media (max-width: 768px) {
    .univ-section {
        padding: 0 12px;
    }

    .univ-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }

    .univ-card-mapa {
        border-radius: 18px;
    }

    .univ-card-header {
        padding: 22px 14px 6px 14px;
    }

    .polo-titulo-central {
        font-size: 1.3rem;
    }

    .mapa-edificios-pills {
        display: flex; /* Visível apenas no telemóvel */
        gap: 8px;
        margin-top: 10px;
    }

    .btn-edificio-pill {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .campus-3d-wrapper {
        padding: 6px 8px 14px 8px;
    }

    .univ-card-footer {
        padding: 8px 14px 26px 14px;
    }

    .map-btn-link {
        width: 100%;
        max-width: 290px;
        font-size: 0.88rem;
        padding: 11px 18px;
        justify-content: center;
    }
}

/* ==========================================================================
   MODAL APP SÓCIOS (DESKTOP QR CODE & DOWNLOAD)
   ========================================================================== */
.modal-app-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-app-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-app-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 47, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-app-dialog {
    position: relative;
    z-index: 2;
    max-width: 580px;
    width: 92%;
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 32px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.92) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.modal-app-overlay.active .modal-app-dialog {
    transform: scale(1) translateY(0);
}

.modal-app-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    font-size: 17px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-app-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.modal-app-header {
    text-align: center;
    margin-bottom: 22px;
}

.modal-app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #006699;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.modal-app-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0a192f;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.modal-app-header p {
    font-size: 0.96rem;
    color: #64748b;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 440px;
}

.modal-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 10px;
}

.modal-app-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.modal-app-card:hover {
    border-color: #006699;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 102, 153, 0.1);
}

.modal-app-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.modal-app-card-badge.ios {
    color: #000000;
}

.modal-app-card-badge.android {
    color: #059669;
}

.modal-app-qr {
    background: #ffffff;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-app-qr img {
    width: 130px;
    height: 130px;
    display: block;
    border-radius: 6px;
}

.modal-app-qr-hint {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-store {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.btn-store.btn-appstore {
    background: #000000;
    color: #ffffff;
}

.btn-store.btn-appstore:hover {
    background: #262626;
    transform: scale(1.02);
}

.btn-store.btn-playstore {
    background: #006699;
    color: #ffffff;
}

.btn-store.btn-playstore:hover {
    background: #004d73;
    transform: scale(1.02);
}

@media (max-width: 560px) {
    .modal-app-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .modal-app-dialog {
        padding: 28px 20px 22px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-app-header h2 {
        font-size: 1.45rem;
    }
}
