/*--------------------------------------------------------------
  style_forgood_blog.css
  CSS exclusivo do Blog (Moments) e páginas de artigos.
  Header, footer e sidenav são gerenciados pelo style_siteforgood.css.
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Fontes customizadas (Gotham) — usadas nos artigos do blog
--------------------------------------------------------------*/
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Bold.woff2') format('woff2'),
       url('../fonts/Gotham-Bold.woff') format('woff'),
       url('../fonts/Gotham-Bold.ttf') format('truetype'),
       url('../fonts/Gotham-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-BoldItalic.woff2') format('woff2'),
       url('../fonts/Gotham-BoldItalic.woff') format('woff'),
       url('../fonts/Gotham-BoldItalic.ttf') format('truetype'),
       url('../fonts/Gotham-BoldItalic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Book.woff2') format('woff2'),
       url('../fonts/Gotham-Book.woff') format('woff'),
       url('../fonts/Gotham-Book.ttf') format('truetype'),
       url('../fonts/Gotham-Book.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-BookItalic.woff2') format('woff2'),
       url('../fonts/Gotham-BookItalic.woff') format('woff'),
       url('../fonts/Gotham-BookItalic.ttf') format('truetype'),
       url('../fonts/Gotham-BookItalic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/*--------------------------------------------------------------
# Título "Moments" com fonte cursiva
--------------------------------------------------------------*/
.cursive-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.2em;
  font-weight: 700;
  color: #f6f9f9;
}

/*--------------------------------------------------------------
# Cookie Notice
--------------------------------------------------------------*/
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 10px;
  text-align: center;
  z-index: 9998;
}

.accept-cookies {
  background-color: #01a4a6;
  color: white;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

/*--------------------------------------------------------------
# Blog — Title Section (banner do topo)
--------------------------------------------------------------*/
.title-section {
  background: linear-gradient(135deg, #01a4a6, #016f71);
  color: white;
  text-align: center;
  padding: 80px 20px 40px;
}

.title-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.title-section p {
  font-size: 18px;
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Blog — Filter Bar
--------------------------------------------------------------*/
.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
  flex-wrap: wrap;
  width: 100%;
}

.filter-container input {
  width: 250px;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #01a4a6;
  border-radius: 25px;
  outline: none;
  transition: 0.3s;
}

.filter-container input:focus {
  border-color: #01858a;
  box-shadow: 0px 0px 8px rgba(1, 164, 166, 0.5);
}

.filter-container select {
  width: 200px;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #01a4a6;
  border-radius: 25px;
  background-color: white;
  cursor: pointer;
  transition: 0.3s;
}

.filter-container select:hover,
.filter-container select:focus {
  border-color: #01858a;
  box-shadow: 0px 0px 8px rgba(1, 164, 166, 0.5);
}

/*--------------------------------------------------------------
# Blog — Grid de Post-its
--------------------------------------------------------------*/
.container-blog {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  justify-content: center;
}

.blog-grid-blog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  margin: 20px auto;
  justify-content: center;
  padding: 20px 10px;
}

.blog-post-blog {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  border-radius: 8px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2),
              inset -5px -5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  width: 250px;
  height: 250px;
  background-color: #a8ecee;
}

/* Dobra no canto superior direito */
.blog-post-blog::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

/* Hover — post-it levantando */
.blog-post-blog:hover {
  transform: scale(1.05);
  box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.3);
}

/* Pin */
.blog-post-blog::after {
  content: "📌";
  font-size: 1.8rem;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.blog-post-blog h3 {
  font-weight: bold;
}

.blog-post-blog p {
  font-size: medium;
  margin-top: 10px;
}

/* Botão "Ler Artigo" */
.read-article-btn {
  display: block;
  width: 80%;
  margin: 10px auto 0;
  padding: 10px;
  font-size: 1rem;
  color: #000;
  background-color: transparent;
  border: 2px solid #000;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.read-article-btn:hover {
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .blog-grid-blog {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .container-blog {
    flex-direction: column;
    padding: 10px;
  }

  .filter-container {
    flex-direction: column;
    gap: 10px;
  }

  .filter-container input,
  .filter-container select {
    width: 100%;
  }
}

/*--------------------------------------------------------------
# Progress Bar (artigos do blog)
--------------------------------------------------------------*/
#progress-bar {
  height: 4px;
  background-color: #01a4a6;
  z-index: 9999;
  transition: width 0.3s ease;
  margin-top: -10px;
}

/*--------------------------------------------------------------
# Blog Content (páginas de artigo)
--------------------------------------------------------------*/
.blog_content {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  margin: 10% 5% 0;
  padding: 10px;
}

@media (max-width: 767.98px) {
  .blog_content { margin-top: 25%; }
}

.blog_content h1 {
  color: #01a4a6;
}

.rounded-box {
  border: 2px solid #01a4a6;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  margin: 0 auto;
}

.rounded-box ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.rounded-box ul li {
  margin: 0 30px;
  color: #01a4a6;
}

@media (max-width: 767.98px) {
  .rounded-box ul { flex-wrap: wrap; }
  .rounded-box ul li { margin: 5px 10px; }
}