.post-container {
   display: flex;
   gap: 40px;
   padding-top: 80px;
}

.post-content {
   flex: 1;
   background-color: var(--accent-color);
   padding: 10px;
   border-radius: 10px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-content h1 {
   color: var(--primary-color);
   margin-bottom: 1rem;
   font-size: 2.5rem;
}

.post-meta {
   display: flex;
   flex-wrap: wrap;
   gap: 1rem;
   color: var(--text-color);
   opacity: 0.7;
   margin-bottom: 1rem;
   font-size: 0.9rem;
}

.post-meta .link-category {
   border-bottom: 1px solid var(--text-color);
}

.post-meta span {
   display: flex;
   align-items: center;
   color: var(--text-color);
}

.post-meta i {
   margin-right: 0.5rem;
}

.post-main-image {
   max-width: 100%;
   width: 100%;
   height: auto;
   margin-bottom: 1rem;
   border-radius: 5px;
}

.post-image {
   max-width: 100%;
   width: 600px;
   height: auto;
   margin-bottom: 1rem;
   border-radius: 5px;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-image:hover {
   transform: scale(1.05);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Post content styling */
.post-content h2 {
   color: var(--primary-color);
   margin-top: 1.5rem;
   margin-bottom: 1rem;
   /* font-size: 1.8rem; */
}

/* .post-content p {
   margin-bottom: 1.5rem;
   line-height: 1.6;
   font-size: 16px;
} */

.post-content a {
   color: var(--primary-color);
   text-decoration: none;
   transition: color 0.3s ease;
}

.post-content a:hover {
   color: var(--hover-color);
}

/* Estilo aprimorado para listas */
.post-content ul {
   margin-left: 20px;
   margin-bottom: 1.5rem;
   padding-left: 0;
   list-style: none; 
}

.post-content ul li {
   position: relative;
   padding-left: 30px; 
   margin-bottom: 1rem;
   line-height: 1.7;
   font-size: 1.1rem;
   color: var(--text-color);
}

.post-content ul li::before {
   content: '\f00c'; 
   font-family: 'Font Awesome 5 Free'; 
   font-weight: 900; 
   position: absolute;
   left: 0;
   top: 0;
   color: var(--primary-color); 
   font-size: 1.2rem;
   line-height: 1.5;
}

.post-content ul li + li {
   margin-top: 1rem; 
}

@media (max-width: 768px) {
   .post-content ul li {
       padding-left: 25px; 
       font-size: 1rem;
   }

   .post-content ul li::before {
       font-size: 1rem;
   }

   .post-content ul li + li {
       margin-top: 0.8rem; 
   }
}


/* Caixa de destaque para CTAs */
.cta-box {
   margin-top: 2rem;
   padding: 20px;
   background-color: var(--primary-color);
   border-radius: 10px;
   text-align: center;
   color: var(--text-color);
}

.cta-box h2 {
   font-size: 2rem;
   margin-bottom: 1rem;
   color: var(--accent-color);
}

.cta-box p {
   font-size: 1.2rem;
   margin-bottom: 1.5rem;
   color: white;
}

.cta-box a {
   display: inline-block;
   background-color: #333;
   padding: 12px 20px;
   color: #fff;
   border-radius: 5px;
   text-decoration: none;
   font-weight: bold;
   transition: background-color 0.3s ease;
}

.cta-box a:hover {
   background-color: #1e1d1d;
   color: #b7b7b7;
}

.contact-form-container {
   flex: 0 0 300px;
   position: relative;
}

.contact-form {
   background-color: var(--accent-color);
   padding: 2rem;
   border-radius: 10px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   position: sticky;
   top: 100px;
}

.contact-form h2 {
   color: var(--primary-color);
   margin-bottom: 1rem;
   font-size: 1.5rem;
}

.contact-form p {
   margin-bottom: 1.5rem;
}

.form-group {
   margin-bottom: 1rem;
}

.form-group label {
   display: block;
   margin-bottom: 0.5rem;
   color: var(--text-color);
}

.form-group input,
.form-group textarea {
   width: 100%;
   padding: 0.5rem;
   border: 1px solid var(--border-color);
   border-radius: 5px;
   background-color: var(--background-color);
   color: var(--text-color);
   transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
   outline: none;
   border-color: var(--primary-color);
}

.form-group textarea {
   height: 100px;
   resize: vertical;
}

.contact-form button {
   background-color: var(--primary-color);
   color: #ffffff;
   border: none;
   padding: 0.75rem 1.5rem;
   border-radius: 5px;
   cursor: pointer;
   transition: background-color 0.3s ease;
   font-weight: bold;
}

.contact-form button:hover {
   background-color: var(--hover-color);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
   /* Flexbox ajustando para colunas em mobile */
   .post-container {
       flex-direction: column;
       gap: 20px;
   }

   /* Post content se ajusta com mais espaçamento */
   .post-content {
       padding: 15px;
   }

   /* Ajustando o tamanho das imagens dos posts */
   .post-image {
       width: 100%;
       height: auto;
       margin-bottom: 1rem;
   }

   /* Tamanhos de texto adaptados */
   .post-content h1 {
       font-size: 2rem;
   }

   .post-content h2 {
       font-size: 1.5rem;
   }

   .post-content p {
       font-size: 1rem;
       line-height: 1.5;
   }

   /* Caixa de CTA se adapta ao mobile */
   .cta-box {
       padding: 15px;
       text-align: center;
   }

   .cta-box h2 {
       font-size: 1.6rem;
   }

   .cta-box p {
       font-size: 1rem;
   }

   .cta-box a {
       padding: 10px 15px;
       font-size: 1rem;
   }

   /* Ajustes no formulário de contato */
   .contact-form-container {
       flex: 1;
   }

   .contact-form {
       margin-top: 2rem;
       padding: 15px;
   }

   .contact-form h2 {
       font-size: 1.4rem;
   }

   .contact-form p {
       font-size: 1rem;
   }

   .form-group input,
   .form-group textarea {
       padding: 10px;
       font-size: 1rem;
   }

   .contact-form button {
       padding: 10px 20px;
       font-size: 1rem;
   }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
   /* Post container flex em tablets */
   .post-container {
       flex-direction: row;
       gap: 30px;
   }

   /* Ajuste de largura das imagens */
   .post-image {
       width: 100%;
       height: auto;
   }

   /* Ajustes de fontes */
   .post-content h1 {
       font-size: 2.2rem;
   }

   .post-content h2 {
       font-size: 1.7rem;
   }

   .post-content p {
       font-size: 1.1rem;
   }

   .cta-box h2 {
       font-size: 1.8rem;
   }

   .cta-box p {
       font-size: 1.1rem;
   }

   .cta-box a {
       padding: 12px 18px;
       font-size: 1.1rem;
   }

   /* Ajuste no formulário de contato */
   .contact-form {
       padding: 20px;
   }

   .contact-form h2 {
       font-size: 1.5rem;
   }

   .contact-form p {
       font-size: 1.1rem;
   }

   .form-group input,
   .form-group textarea {
       padding: 12px;
   }

   .contact-form button {
       padding: 12px 24px;
   }
}

@media (max-width: 768px) {
   .post-container {
       flex-direction: column;
   }

   .contact-form-container {
       flex: 1;
   }

   .contact-form {
       position: static;
       margin-top: 2rem;
   }
}

/* modal para termos e significado */
.modal {
   display: none;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(0,0,0,0.4);
}

.modal-content {
   background-color: var(--background-color);
   margin: 15% auto;
   padding: 20px;
   border: 1px solid var(--border-color);
   width: 80%;
   max-width: 600px;
   border-radius: 5px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-content h2 {
   color: var(--primary-color);
}

.close {
   color: var(--text-color);
   float: right;
   font-size: 28px;
   font-weight: bold;
   cursor: pointer;
}

.close:hover,
.close:focus {
   color: var(--primary-color);
   text-decoration: none;
   cursor: pointer;
}

@media (max-width: 768px) {
   .modal-content {
       width: 90%;
       margin: 60% auto 0;
   }
}

.post-content strong[data-term] {
   cursor: pointer;
   text-decoration: underline dotted;
   color: var(--primary-color);
}

.post-content strong[data-term]:hover {
   color: var(--hover-color);
}


/* estilização para a fonte */
body {
   font-family: 'Inter', sans-serif;
 }

 .post-content {
   font-size: 18px;
}
 
 .post-content p {
   margin-bottom: 1.5em;
 }

.font-size-controls {
   position: fixed;
   top: 100px;
   right: 20px;
   display: flex;
   flex-direction: column;
   gap: 10px;
   z-index: 1000;
 }
 
 .font-size-controls button {
   background-color: var(--primary-color);
   color: white;
   border: none;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   font-size: 16px;
   cursor: pointer;
   transition: background-color 0.3s ease;
 }
 
 .font-size-controls button:hover {
   background-color: #0066ff;
 }
 
 .font-size-controls button:focus {
   outline: 2px solid var(--primary-color);
   outline-offset: 2px;
 }

 @media (max-width: 768px) {
   .font-size-controls {
      display: none;
   }
}


/* Modal */
.modal-form {
   display: none; /* Escondido por padrão */
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.6);
   z-index: 1000;
}

.modal-form.show {
   display: flex;
   justify-content: center;
   align-items: center;
}

.modal-form-content {
   position: relative;
   background-color: var(--background-color);
   padding: 20px;
   border-radius: 8px;
   text-align: center;
   width: 300px;
   color: var(--text-color);
}

/* Botão 'X' para fechar o modal */
.close-button-modal-form {
   position: absolute;
   top: 10px;
   right: 15px;
   color: var(--text-color);
   font-size: 28px;
   font-weight: bold;
   cursor: pointer;
}

/* Spinner de carregamento */
.spinner-modal-form {
   border: 4px solid rgba(0, 0, 0, 0.1);
   border-left-color: var(--primary-color);
   border-radius: 50%;
   width: 40px;
   height: 40px;
   animation: spin 1s linear infinite;
   margin: 20px auto;
}

/* Animação do spinner */
@keyframes spin {
   0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

/* Mensagem de resposta */
#responseMessage {
   font-size: 18px;
   margin-top: 20px;
   color: var(--text-color);
}

/* Botão 'OK' */
.ok-button-modal-form {
   margin-top: 20px;
   padding: 10px 20px;
   background-color: var(--primary-color);
   color: white;
   border: none;
   border-radius: 4px;
   cursor: pointer;
}

.ok-button-modal-form:hover {
   background-color: var(--hover-color);
}

.hidden {
   display: none;
}
