/* News Page Styles */

.news-page-header {
  background: #0052a1;
  padding: 15px 0;
  margin-top: 100px;
  margin-bottom: 40px;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 82, 161, 0.3);
}

.news-page-title-container {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.news-icon-large {
  position: absolute;
  left: -80px;
  top: 0;
  transform: translateY(-48%);
  width: 380px;
  height: 380px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

.news-page-title {
  font-weight: 1000;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin: 0;
  margin-left: 120px;
}

/* News Grid */
.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  padding: 0;
}

.news-page-card {
  display: flex;
  flex-direction: row;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  height: auto;
  min-height: 100px;
  position: relative;
  z-index: 10;
  text-decoration: none;
  color: inherit;
}

.news-page-card-image {
  position: relative;
  width: 100px;
  min-width: 100px;
  height: 100px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-page-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-page-card-content {
  padding: 12px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-page-card-date {
  display: none;
}

.news-page-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page-card-cta {
  font-size: 0.65rem;
  font-weight: 950;
  color: #e85e11;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-page-card-cta .arrow {
  font-size: 1rem;
  line-height: 1;
}

/* Estilos específicos para o app */
body.app-layout .news-page-grid-app {
  padding-left: 0;
  padding-right: 0;
}

body.app-layout .news-tabs {
  display: flex;
  justify-content: center;
  background: #e5e5e5;
  padding: 68px 16px 16px 16px;
}

body.app-layout .news-tab {
  text-align: center;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #1b96d1;
  background: transparent;
  border: 2px solid #1b96d1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.app-layout .news-page-grid-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  padding-left: 16px;
  padding-right: 16px;
  grid-template-columns: 1fr;
}

body.app-layout .news-page-card-app {
  flex-direction: column;
  border-radius: 0;
  box-shadow: none;
  border-bottom: none;
  margin: 0;
  height: auto;
  min-height: auto;
  background: white;
  text-decoration: none;
  color: inherit;
}

body.app-layout .news-page-card-app:hover {
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

body.app-layout .news-page-card-app .news-page-card-image {
  width: 100%;
  height: 200px;
  min-width: 100%;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}

body.app-layout .news-page-card-app .news-page-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.app-layout .news-page-card-app .news-page-card-content {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
}

body.app-layout .news-page-card-app .news-page-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.app-layout .news-page-card-app .news-page-card-date {
  display: block !important;
  font-size: 0.75rem;
  color: #5bced2;
  font-weight: 400;
  margin: 0 0 8px 0;
  text-transform: none;
}

body.app-layout .news-page-card-app .news-page-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #09053a;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
}

body.app-layout .news-page-card-app .news-page-card-cta {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff6b35;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  align-self: flex-end;
  margin-top: 5px;
  text-decoration: none;
}

body.app-layout .news-page-card-app .news-page-card-cta .arrow {
  font-size: 1.2rem;
  line-height: 1;
}

/* Empty State */
.news-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1.1rem;
}

/* Pagination */
.news-pagination {
  margin: 40px 0 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

body.app-layout .news-pagination-app {
  margin: 20px 16px 100px 16px;
}

/* News Show Page - App Layout */
body.app-layout .container-app.news-show-container-app {
  position: relative;
}

body.app-layout .container-app.news-show-container-app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: -1;
}

body.app-layout .news-show-app {
  display: flex;
  flex-direction: column;
  background: white;
  padding-bottom: 100px;
  position: relative;
  z-index: 1;
}

body.app-layout .news-show-app-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

body.app-layout .news-show-app-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.app-layout .news-show-app-content {
  padding: 20px 16px;
}

body.app-layout .news-show-app-date {
  font-size: 0.75rem;
  color: #5bced2;
  font-weight: 400;
  margin: 0 0 12px 0;
  text-transform: none;
}

body.app-layout .news-show-app-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #09053a;
  margin: 0 0 20px 0;
  line-height: 1.3;
  text-transform: uppercase;
}

body.app-layout .news-show-app-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  margin: 0 0 20px 0;
  text-align: justify;
}

body.app-layout .news-show-app-body p {
  margin-bottom: 1.2em;
}

body.app-layout .news-show-app-body h2,
body.app-layout .news-show-app-body h3 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  color: #09053a;
  font-weight: 700;
}

body.app-layout .news-show-app-source,
body.app-layout .news-show-app-credits {
  font-size: 0.85rem;
  color: #666;
  margin: 15px 0;
  font-style: italic;
}

body.app-layout .news-show-app-source strong,
body.app-layout .news-show-app-credits strong {
  color: #333;
  font-weight: 700;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 0;
  background: white;
  color: #333;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(.disabled) {
  background: #e0e0e0;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-info {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  padding: 0 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-page-header {
    margin-top: 20px;
    padding: 20px 0;
  }

  .news-page-title-container {
    padding: 0;
  }

  .news-page-title {
    font-size: 1rem;
    margin-left: 0;
    padding: 0 20px;
  }

  .news-icon-large {
    display: none;
  }

  .news-page-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .news-page-card {
    min-height: auto;
  }

  .news-page-card-image {
    display: none;
  }

  .news-page-card-content {
    padding: 18px;
  }

  .news-page-card-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .news-page-card-cta {
    font-size: 0.65rem;
    font-weight: 950;
  }
}
