/* ========================
   Global styles
======================== */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7f6;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* ========================
   Header & Navigation
======================== */
header {
  width: 100%;
  background-color: #81C784;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ========================
   Showcase
======================== */
.building-showcase {
  width: 100%;
  text-align: center;
  padding: 50px 20px;
  box-sizing: border-box;
}

.building-showcase img {
  max-width: 100%;
  max-height: 450px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.building-showcase h1 {
  font-size: 2.5em;
  color: #388E3C;
  margin: 0;
}

/* ========================
   Info Cards
======================== */
.container {
  max-width: 900px;
  width: 100%;
  padding: 40px 20px;
  flex-grow: 1;
  text-align: center;
  box-sizing: border-box;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: -20px;
  margin-bottom: 40px;
}

.info-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #66BB6A;
  position: relative;
  overflow: visible;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
  font-size: 1.3em;
  color: #388E3C;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
}

.info-card p {
  font-size: 1em;
  margin: 5px 0;
  line-height: 1.6em;
  color: #555;
}

/* ========================
   Google Maps Animation
======================== */
.maps-animation-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.google-maps-icon {
  width: 50px;
  height: auto;
  margin-bottom: 10px;
  animation: pulse-icon 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.maps-animation-wrapper svg {
  width: 70px;
  height: 70px;
  overflow: visible;
}

.maps-animation-wrapper:hover .google-maps-icon,
.maps-animation-wrapper:hover .pin-container {
  animation-play-state: paused;
}

.map-background { fill: #E8F5E9; }
.map-river {
  fill: none;
  stroke: #A5D6A7;
  stroke-width: 12;
  stroke-linecap: round;
}

.pin-container {
  offset-path: path('M -5,95 C 20,70 30,75 50,60 S 80,30 105,10');
  animation: follow-river 6s ease-in-out infinite alternate;
  offset-rotate: auto;
}

.pin {
  fill: #E53935;
  stroke: white;
  stroke-width: 2px;
  transform: translate(-19px, -32px);
}

@keyframes follow-river {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

/* ========================
   Buttons
======================== */
.buttons { margin-bottom: 40px; }

.buttons a {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  margin: 10px 5px 0 5px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.buttons a:hover {
  background-color: #45a049;
  transform: translateY(-3px);
}

/* ========================
   WhatsApp Button
======================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.whatsapp-float:hover { background-color: #20b858; transform: scale(1.1); }
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ========================
   Insurance Section
======================== */
.insurances {
  width: 100%;
  margin: 50px 0;
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.insurances h2 {
  font-size: 2em;
  color: #388E3C;
  margin-bottom: 20px;
  border-bottom: 2px solid #66BB6A;
  display: inline-block;
  padding-bottom: 10px;
}

.insurance-note {
  background-color: #E0F2F1;
  color: #388E3C;
  border: 1px solid #B2DFDB;
  font-size: 1.1em;
  font-weight: 500;
  margin: 20px auto;
  padding: 15px 20px;
  border-radius: 8px;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.insurance-logos img {
  max-height: 70px;
  width: auto;
  border-radius: 8px;
  background-color: white;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(80%);
}

.insurance-logos img:hover {
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* ========================
   Footer
======================== */
/* ========================
   Footer
======================== */

/* Applies to the actual <footer> element */
footer {
  width: 100%;
  margin-top: 30px;
  font-size: 0.9em;
  padding: 25px;
  text-align: center;
  background-color: #81C784;
  color: #E0F2E7;
  box-sizing: border-box; /* ensures padding doesn’t break width */
}

/* Links inside the footer */
footer .privacy-link {
  color: #E0F2E7;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .privacy-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* If you use a wrapper div #footer to load the footer dynamically */
#footer {
  width: 100%;
  box-sizing: border-box; /* ensure padding behaves */
}

/* Ensure the inner footer inside #footer stretches full width */
#footer footer {
  width: 100%;
  margin: 0;
  padding: 25px;
  background-color: #81C784;
  color: #E0F2E7;
  text-align: center;
}


/* ========================
   Fade-in Animation
======================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   Media Queries
======================== */
@media (max-width: 880px) {
  header { flex-direction: column; gap: 15px; }
  .building-showcase h1 { font-size: 2em; }
}

@media (max-width: 480px) {
  nav { gap: 8px; }
  nav a { font-size: 0.9em; padding: 8px 12px; }
  .info-card p, .buttons a { font-size: 0.95em; }
  .buttons a { padding: 12px 20px; font-size: 1em; }
  .insurance-logos img { max-height: 50px; }
}

/* ========================
   Login Page Styles
======================== */
/* ========================
   Global Styles
======================== */

/* Make the page take full height for footer and login centering */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes footer to bottom */
  align-items: center;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7f6;
  color: #333;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ========================
   Header & Navigation
======================== */
header {
  width: 100%;
  background-color: #81C784;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-sizing: border-box;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ========================
   Login Page
======================== */
.login-container {
  max-width: 400px;
  width: 100%;
  padding: 40px 20px;
  margin: auto;
  text-align: center;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

h1 {
  color: #388E3C;
  margin-bottom: 30px;
  font-size: 2em;
  font-weight: 700;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

input[type="text"], input[type="password"] {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
  border-color: #388E3C;
  outline: none;
}

button {
  background-color: #388E3C;
  color: white;
  padding: 12px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2e7031;
}

.error-message {
  color: red;
  margin-bottom: 15px;
  font-weight: 600;
}

.register-link {
  margin-top: 15px;
  text-align: center;
  font-size: 0.95em;
  color: #388E3C;
  font-weight: 600;
}

.register-link a {
  color: #2e7031;
  text-decoration: none;
  font-weight: 700;
  margin-left: 6px;
}

.register-link a:hover {
  text-decoration: underline;
}

/* ========================
   Info Cards & Showcase
======================== */
.container {
  max-width: 900px;
  width: 100%;
  padding: 40px 20px;
  flex-grow: 1;
  text-align: center;
  box-sizing: border-box;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: -20px;
  margin-bottom: 40px;
}

.info-card {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #66BB6A;
  position: relative;
  overflow: visible;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.info-card h3 {
  font-size: 1.3em;
  color: #388E3C;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
}

.info-card p {
  font-size: 1em;
  margin: 5px 0;
  line-height: 1.6em;
  color: #555;
}

/* ========================
   Buttons
======================== */
.buttons a {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  margin: 10px 5px 0 5px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.buttons a:hover {
  background-color: #45a049;
  transform: translateY(-3px);
}

/* ========================
   WhatsApp Button
======================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.whatsapp-float:hover {
  background-color: #20b858;
  transform: scale(1.1);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ========================
   Footer
======================== */
footer {
  width: 100%;
  padding: 25px;
  text-align: center;
  background-color: #81C784;
  color: #E0F2E7;
  box-sizing: border-box;
}

/* If loaded dynamically with #footer */
#footer {
  width: 100%;
  box-sizing: border-box;
}

#footer footer {
  width: 100%;
  margin: 0;
  padding: 25px;
  background-color: #81C784;
  color: #E0F2E7;
  text-align: center;
}

/* ========================
   Media Queries
======================== */
@media (max-width: 880px) {
  header { flex-direction: column; gap: 15px; }
}

@media (max-width: 480px) {
  nav { gap: 8px; }
  nav a { font-size: 0.9em; padding: 8px 12px; }
  .info-card p, .buttons a { font-size: 0.95em; }
  .buttons a { padding: 12px 20px; font-size: 1em; }
}

/* ========================
   Exams Table Styling
======================== */
.container table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
}

.container th {
  background-color: #81C784;
  color: white;
  text-align: left;
  padding: 15px 20px;
  font-size: 1.2em;
}

.container td {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  font-size: 1em;
}

.container tr:nth-child(even) {
  background-color: #f9f9f9;
}

.container tr:hover {
  background-color: #f1fdf1;
}

/* Adicione ou modifique estas regras no seu arquivo css/styles.css */

.policy-section {
  background-color: #ffffff; /* Fundo branco para os cards */
  border: 1px solid #e0e0e0; /* Borda suave para os cards */
  border-radius: 8px;
  padding: 25px 30px; /* Mais padding interno para o conteúdo */
  margin-bottom: 25px; /* Espaço entre os cards */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Sombra sutil para dar profundidade */
}

/* Estilo para o H1 principal, para que ele fique centralizado e com a cor verde */
main h1 {
  color: #2e8b57; /* Verde da marca */
  text-align: center;
  margin-bottom: 10px;
}

/* Estilo para os H2 dentro dos cards, para eles ficarem alinhados e sem margem extra */
.policy-section h2 {
  color: #333; /* Cor mais escura para títulos de seção */
  font-size: 1.5em; /* Ajuste o tamanho da fonte se necessário */
  margin-top: 0; /* Remove a margem superior padrão do h2 */
  margin-bottom: 15px; /* Adiciona um pequeno espaço abaixo do h2 */
  text-align: left; /* Alinha o h2 à esquerda dentro do card */
}

/* Ajuste para os parágrafos e listas dentro dos cards */
.policy-section p,
.policy-section ul {
  margin-bottom: 15px; /* Espaçamento entre parágrafos e listas */
  line-height: 1.6; /* Altura de linha para melhor leitura */
  color: #555; /* Cor de texto mais suave */
}

/* Garante que os marcadores de lista apareçam */
.policy-section ul {
  list-style-type: disc; /* Garante que as bolinhas apareçam */
  margin-left: 25px; /* Adiciona indentação para as bolinhas */
  padding-left: 0; /* Reseta qualquer padding extra */
}

/* Opcional: Para o parágrafo de atualização e o parágrafo introdutório */
main > p {
  text-align: center;
  max-width: 800px; /* Limita a largura para melhor leitura */
  margin: 0 auto 20px auto; /* Centraliza e adiciona margem inferior */
  color: #555;
}

main > p strong {
  color: #2e8b57; /* Deixa o "Última atualização" em destaque se quiser */
}

/* Ajuste para o endereço de contato, se estiver dentro de um card */
.policy-section address {
  font-style: normal; /* Remove itálico padrão da tag address */
  margin-top: 20px;
  line-height: 1.6;
}