/* Home Page Styles - Extracted from inline CSS for SEO optimization */

/* Banner and Layout Styles */
.is-desktop {
  display: none !important;
}

.is-mobile {
  display: block !important;
}

.section-card svg {
  width: 50px !important;
  height: 50px !important;
}

@media (min-width: 400px) {
  .is-mobile {
    display: none !important;
  }
  .is-desktop {
    display: flex !important;
  }
  .section-card svg {
    width: 64px !important;
    height: 64px !important;
  }
}

.topbar-banner {
  display: flex;
  flex: 1;
  align-self: start;
  height: 18px;
}

.signin-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-top: -40px;
}

.bp-banner-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 215px;
  background-image: url("https://brasilparticipativo.presidencia.gov.br/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBeHdYQVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--b531ed402725fb592b1392d5c04c1a54bf88c748/Nova%20home%20(BP)%20-%20DESKTOP%20(3)%20(1).png");
  background-size: cover;
  background-repeat: repeat;
  margin-bottom: 2.5rem;
}

.bp-banner-image {
  width: 160px;
  margin-top: -50px;
}

.bp-banner-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 180px;
  gap: 12px;
  margin-top: -40px;
}

.bp-logo-banner {
  width: 100px;
  flex: 1;
  min-width: 0;
}

.bp-banner-text {
  font-weight: 800;
  font-size: 10px;
  color: #3c3c3c;
  margin: 0;
  width: 90%;
}

.create-profile-link,
.create-profile-link:hover {
  display: flex;
  padding: 2px 20px;
  gap: 0.5rem;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  border-radius: 100px;
  background: var(--blue-warm-vivid-80);
  color: var(--pure-0);
  font-weight: 600;
  max-width: 120px;
  margin: 0;
}

.create-profile-link:hover {
  background-image: linear-gradient(
    rgba(var(--interactive-rgb), var(--pressed)),
    rgba(var(--interactive-rgb), var(--pressed))
  );
  text-decoration: none;
}

.create-profile-link-icon {
  color: var(--pure-0);
  font-size: 12px;
}

.create-profile-link-text {
  font-size: 10px;
}

.banner-topbar {
  display: flex;
  width: 100%;
  height: 10px;
  background-image: url("https://brasilparticipativo.presidencia.gov.br/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbm1QIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e2602ede12bc8bad23ab690911b972aaf5bd15a9/Elementos-Coloridos.png");
  background-size: cover;
  background-repeat: repeat;
  margin-top: -40px;
}

@media (min-width: 400px) {
  .banner-topbar {
    margin-top: -50px;
  }
}

@media (min-width: 840px) {
  .banner-topbar {
    display: flex;
    width: 100%;
    height: 35px;
    background-image: url("https://brasilparticipativo.presidencia.gov.br/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbm1QIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e2602ede12bc8bad23ab690911b972aaf5bd15a9/Elementos-Coloridos.png");
    background-size: cover;
    background-repeat: repeat;
    margin-top: 0;
  }
  .bp-banner-container {
    height: 600px;
    gap: 0rem;
    justify-content: center;
  }
  .bp-banner-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 50%;
    gap: 40px;
    max-width: 330px;
    padding: 4rem 1.5rem;
    margin: 0;
  }
  .bp-logo-banner {
    width: 200px;
    margin: 0;
  }
  .bp-banner-image {
    min-width: 440px;
  }
  .bp-banner-text {
    font-size: 20px;
  }
  .create-profile-link,
  .create-profile-link:hover {
    display: flex;
    padding: 8px 48px;
    margin: 0;
    max-width: 210px;
  }
  .create-profile-link-text {
    font-size: 16px;
  }
  .create-profile-link-icon {
    font-size: 16px;
  }
}

@media (min-width: 1600px) {
  .bp-banner-container {
    height: 800px;
  }
}

.white-divider {
  display: flex;
  width: 100%;
  height: 35px;
  background-image: url("https://brasilparticipativo.presidencia.gov.br/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbDVXIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--057c192d3fe1e615a252b7269b8a8e87fb38f13b/faixa-branca.png");
  background-size: cover;
  background-repeat: repeat;
  background-color: var(--blue-3);
}

.blue-divider {
  display: flex;
  width: 100%;
  height: 35px;
  background-image: url("https://brasilparticipativo.presidencia.gov.br/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcTVXIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--958ded6942dd87524d5b1852502383e4a10bbd3c/faixa-azul%20(1).png");
  background-size: cover;
  background-repeat: repeat;
}

/* Home Sections Styles */
.home-sections-container h1,
.home-sections-container h2,
.home-sections-container h3,
.home-sections-container h4,
.home-sections-container h5,
.home-sections-container p {
  margin: 0 !important;
  padding: 0 !important;
}

.home-sections-container {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  background-color: var(--pure-0);
}

.home-sections-container h2 {
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  color: var(--blue-warm-vivid-80);
  font-size: 20px !important;
}

.home-sections-container .home-sections-title {
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  color: var(--blue-warm-vivid-80);
  font-size: 32px;
}

.home-sections-container .home-sections-content {
  margin: 0 auto;
  width: auto;
}

#service-channels-home-section {
  background-color: #fff;
}

.participatory-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.home-sections-container .stats-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
  padding: 0 1rem;
  justify-content: center;
  align-items: center;
}

.stats-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  background-color: var(--blue-3);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  max-width: 488px;
  border-radius: 8px;
}

.stats-card:hover {
  background-color: var(--blue-10);
}

.stats-card .stats-card-title {
  color: var(--blue-warm-vivid-80);
  font-weight: 600;
  font-size: 48px;
}

.stats-card .stats-card-subtitle {
  color: var(--blue-warm-vivid-80);
  text-transform: capitalize;
  font-weight: 600;
  font-size: 20px;
}

@media (min-width: 768px) {
  .participatory-items {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .home-sections-container {
    padding: 3.5rem 0;
    gap: 1.5rem;
  }

  .home-sections-container h2 {
    font-size: 2.178rem !important;
  }
  
  .home-sections-container .home-sections-title {
    font-size: 48px;
    font-weight: 700;
  }

  .home-sections-container .home-sections-content {
    margin: 0 auto;
  }
  
  .participatory-items {
    flex-direction: row;
    max-width: 900px !important;
  }
}

.title-secondary {
  color: var(--pure-0) !important;
}

.centered-content {
  display: flex;
  justify-content: center;
}

.centered-content a {
  color: var(--interactive);
}

.home-sections-container .home-sections-content.service-channels-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
}

@media (min-width: 768px) {
  .home-sections-container .home-sections-content.service-channels-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    width: 600px;
  }
  .home-sections-container .stats-container {
    flex-direction: row;
  }
}

@media (min-width: 1280px) {
  .home-sections-container .home-sections-content.service-channels-container {
    width: auto;
  }
}

/* Section Card Styles */
.section-card {
  display: flex;
  width: 154px;
  height: 109px;
  padding: 8px;
  gap: 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background-color: var(--bp-primitive-color-blue-10, #F1F3FF);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}

.section-card i {
  font-size: 46px;
  color: var(--blue-warm-vivid-80);
}

.section-card:hover {
  background: var(--bp-primitive-color-blue-20, #B9C3FE);
}

.section-card-title {
  color: var(--blue-warm-vivid-80);
  text-align: center;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.br-divider {
  display: block;
  border: 1px solid var(--border-color);
  width: 100%;
}

.main-news-content {
  padding: 1.5rem 2rem;
  background-color: var(--pure-0);
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
}

.main-news-subtitle,
.main-news-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.main-news-title {
  overflow: hidden;
  color: var(--bp-primitive-color-blue-40, #2758AF) !important;
  -webkit-line-clamp: 3;
}

.news-title {
  color: var(--bp-primitive-color-blue-40, #2758AF) !important;
  line-height: 120%;
  -webkit-line-clamp: 5;
}

.home-processes .br-button {
  background: var(--button-primary-background-pressed, #173365) !important;
}

@media (min-width: 768px) {
  .news-container .br-divider {
    display: none;
  }

  .section-card {
    display: flex;
    width: 250px;
    height: 175px;
    padding: 16px;
    gap: 16px;
  }

  .section-card i {
    font-size: 64px;
  }

  .section-card-title {
    font-size: 1.125rem;
  }

  .main-news-subtitle {
    -webkit-line-clamp: 3;
  }

  .news-title {
    -webkit-line-clamp: 2;
  }
}

#news-home-section {
  gap: 2rem !important;
  margin-top: 2.5rem;
}

/* Logos Section */
.logos__section {
  background-color: var(--blue-3);
  padding: 4rem 1rem;
}

.logos__container {
  max-width: 900px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  gap: 42px;
  margin: 0 auto;
  flex-wrap: wrap;
  align-items: center;
}

section#html-block .br-container-lg:first-child {
  padding: 1rem;
}

@media (min-width: 870px) {
  .logos__section {
    padding: 7rem 1rem;
  }
  .logos__container {
    max-width: 900px;
    display: flex;
    flex-flow: row;
    justify-content: center;
    gap: 42px;
    margin: 0 auto;
    flex-wrap: nowrap;
    align-items: center;
  }
  section#html-block .br-container-lg:first-child {
    padding: 2rem 4rem;
  }
}

/* Banner Carousel Styles */
.banner-carousel-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.banner-carousel {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.banner-carousel-stage {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.banner-carousel-page {
  min-width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.banner-carousel-page .br-container-lg {
  display: flex;
  justify-content: center;
}

.banner-carousel-page img {
  display: block;
  width: 100%;
  height: auto;
}

.banner-carousel-btn-prev,
.banner-carousel-btn-next {
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  padding: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-carousel-btn-prev {
  left: 10px;
}

.banner-carousel-btn-next {
  right: 10px;
}

.banner-carousel-dots {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.banner-carousel-dot {
  background-color: #bbbbbb99;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  height: 10px;
  margin: 0 5px;
  width: 10px;
}

.banner-carousel-dot.active {
  background-color: #71717199;
}

/* Participatory Process Section */
#participatory-process-section {
  background-color: #fff !important;
  width: 100%;
  padding: 12px;
}

#participatory-process-section .process-section-title {
  color: #0C326F;
  text-align: center;
  font-size: 29px !important;
  font-weight: 800;
  margin-bottom: 1rem;
  margin: 0;
}

#participatory-process-section > .process-section-description {
  color: var(--color-grays-gray-800, #4D4D4D);
  text-align: center;
  font-size: 1rem;
  display: block;
  margin-bottom: 0;
  line-height: 1.5;
}

.process-section-error {
  width: 100%;
  text-align: center;
}

.home-processes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  overflow-x: hidden;
}

.home-process-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  width: 100%;
  margin: 0;
}

.home-process-tabs div {
  background-color: #fff;
  color: #717273;
  border: none;
  cursor: pointer;
  font-size: var(--bp-font-size-small, 20px);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-process-tabs div.active {
  color: #173365;
  border-bottom: 4px solid #0C326F;
}

.home-process-tab-content {
  display: none;
}

.home-process-tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home-carousel-container {
  position: relative;
}

.home-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  margin: 8px;
}

.home-carousel-nav button {
  display: none;
}

.home-process-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: auto;
  padding: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-process-cards-list::-webkit-scrollbar {
  display: none;
}

.home-process-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: 336px;
  height: 454px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

.home-process-card:hover {
  transform: scale(1.025);
  transition: transform 0.3s, box-shadow 0.2s;
}

.home-process-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 32px 24px;
}

.home-process-card img {
  width: 100%;
  height: 144px;
  object-fit: cover;
}

.home-process-tags {
  display: flex;
  padding: 4px 8px;
  margin: 24px 0;
  gap: 8px;
  border-radius: 2px;
  background: #F2F2F2;
  color: #25488E;
  font-size: 14px;
}

.home-process-card-content a {
  font-size: 24px;
  color: #2758AF;
  font-weight: 600;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.home-process-card-stats {
  display: flex;
  flex-direction: row;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #D8D9D9;
  border-bottom: 1px solid #D8D9D9;
  color: #173365;
}

.home-process-card-stats i {
  padding: 8px;
}

.home-process-date-title {
  font-size: var(--bp-font-size-xx-small, 14px);
  font-weight: var(--bp-font-weight-semibold, 600);
  text-transform: uppercase;
}

.home-process-date-value {
  font-size: var(--bp-font-size-xx-small, 14px);
  font-weight: var(--bp-font-weight-regular, 400);
}

.home-process-card-stats .votes {
  color: #252526;
  font-size: 20px;
  font-weight: 600;
}

.home-process-card-stats .total-comments {
  color: #4B4C4D;
  font-size: 14px;
  font-weight: 600;
}

.home-process-cards-list > :nth-child(n + 4) {
  display: none;
}

.main-news-card {
  width: auto;
  margin: 0 1rem 1.5rem 1rem;
  overflow: hidden;
}

.news-date {
  display: none;
}

.page-news-card-content .main-news-subtitle {
  display: none;
}

.page-news-card .news-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.home-process-card-footer .assembly-view-button {
  display: flex;
  font-size: 16px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .main-news-card {
    margin: 0 0 1.5rem 0;
  }

  .news-date {
    display: block;
  }

  .page-news-card-content .main-news-subtitle {
    display: -webkit-box;
  }

  .home-sections-title {
    font-size: 4rem;
    text-align: center;
  }
}

@media (min-width: 988px) {
  #participatory-process-section .process-section-title {
    font-weight: 600;
  }

  #participatory-process-section {
    padding: 0;
    gap: 24px !important;
  }

  .home-process-tabs {
    width: auto;
  }

  .home-process-tabs div {
    padding: 8px 16px;
  }

  .home-process-cards-list > :nth-child(n + 4) {
    display: flex;
  }
  
  .home-process-cards-list > :nth-child(n + 7) {
    display: none;
  }

  .home-carousel-nav button {
    display: flex;
    width: 32px;
    height: 32px;
    border: 1px solid #1351B4;
    border-radius: 50%;
    background: none;
    color: #1351B4;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
  }

  .home-carousel-prev,
  .home-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .home-carousel-prev { 
    left: -3rem; 
  }
  
  .home-carousel-next { 
    right: -3rem; 
  }

  .home-carousel-wrapper { 
    width: 872px; 
  }

  .home-process-card {
    width: 420px;
    height: 568px;
  }

  .home-process-card img { 
    height: 250px; 
  }

  .home-process-cards-list {
    flex-direction: row;
    overflow-y: hidden;
  }
}

@media (min-width: 1600px) {
  .home-carousel-wrapper { 
    width: 1312px; 
  }
}

.br-footer {
  border-top: none;
}

#home-tab-0 br,
#home-tab-1 br,
#home-tab-2 br,
#home-tab-3 br {
  display: none !important;
}

/* Specific link styling */
a[href="/processes?filter%5Bwith_area%5D=&filter%5Bwith_date%5D=all&filter%5Bwith_scope%5D=&filter%5Bwith_type%5D=8"],
a[href="/processes?filter%5Bwith_area%5D=&filter%5Bwith_date%5D=all&filter%5Bwith_scope%5D=&filter%5Bwith_type%5D=3"],
a[href="/processes?filter%5Bwith_area%5D=&filter%5Bwith_date%5D=all&filter%5Bwith_scope%5D=&filter%5Bwith_type%5D=6"],
a[href="/assemblies"] {
  width: fit-content;
  align-self: center;
}
