/* === fonts (self-hosted) === */
@import url('fonts.css');

/* === global.css === */

:root {
  --hero-title-size: 32px;
}

html {
  scroll-behavior: smooth;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in {
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate {
  opacity: 1 !important;
  transform: translate(0) !important;
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #f5f5f5;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

@media (max-width: 480px) {
  body {
    padding-top: 64px;
  }
}

.dev-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background-color: #ffcc00;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1005;
}

.dev-alert-text {
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

/* === header.css === */
.header {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  width: 100%;
  padding: 0 200px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-link:hover .logo {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.header-nav {
  display: flex;
  align-items: center;
}

.btn-sistemas {
  background: linear-gradient(to right, #155d8f, #1e78b5, #2f8fd1);
  color: white;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-sistemas:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-sistemas:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsivo - Tablet */
@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
    height: 70px;
  }

  .logo {
    height: 60px;
  }

  .btn-sistemas {
    padding: 12px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
    height: 64px;
  }

  .logo {
    height: 80px;
  }

  .btn-sistemas {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 25px;
  }

  .btn-sistemas:hover {
    transform: none;
  }
}

/* === hero.css === */
.hero-section {
  position: relative;
  min-height: 40vh;
  background-image: url("../images/hero-image.webp");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(217, 84, 18, 0.55),
      rgba(236, 97, 24, 0.25));
  backdrop-filter: blur(0px);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}

@media (min-width: 1024px) {
  .hero-container {
    flex-direction: column;
    gap: 32px;
  }
}

.hero-content {
  flex: none;
  color: white;
  max-width: 850px;
  text-align: center;
}

.hero-subtitle {
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
  color: white;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white;
  width: 0;
  animation:
    typing 6s steps(21, end) infinite alternate,
    blink-caret 1.5s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 300px;
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: white;
  }
}

.hero-title {
  font-size: clamp(2rem, 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary {
  background: linear-gradient(to right, #155d8f, #1e78b5, #2f8fd1);
  color: white;
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .hero-section {
    padding: 60px 24px;
    min-height: 50vh;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 14px;
  }
}

/* === cards.css === */
.cards-section {
  padding: 60px 24px 80px;
  background-color: transparent;
}

.cards-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.cards-section-title {
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.cards-section-divider {
  width: 60px;
  height: 4px;
  background-color: #ec6118;
  border: none;
  border-radius: 2px;
  margin: 0 auto;
}

.cards-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.card-image-contain {
  object-fit: contain;
  padding: 20px;
  background-color: #fcfcfc;
}

.card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.card-description {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.card-btn {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(to right, #d95412, #ec6118, #ff7a2f);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.5s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-description {
    font-size: 14px;
  }
}

/* === news.css === */
.news-section {
  padding: 60px 24px 80px;
  background-color: #fcfcfc;
}

.news-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.news-section-title {
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.news-section-divider {
  width: 60px;
  height: 4px;
  background-color: #155d8f;
  border: none;
  border-radius: 2px;
  margin: 0 auto;
}

.news-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}

.news-content-preview {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* === news-list.css (todas as notícias) === */
.news-list-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-list-item {
  display: flex;
  gap: 20px;
  background: transparent;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
  transition: opacity 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.news-list-item:hover {
}

.news-list-image-container {
  width: 300px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.news-list-image {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-list-item:hover .news-list-image {
  transform: scale(1.05);
}

.news-list-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
}

.news-list-meta {
  font-size: 13px;
  color: #888;
  margin-top: auto;
  padding-top: 12px;
}

.news-list-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.news-list-item:hover .news-list-title {
  color: #155d8f;
}

.news-list-preview {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .news-list-item {
    flex-direction: column;
  }
  .news-list-image-container {
    width: 100%;
    height: 200px;
  }
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  background: white;
  color: #555;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: #f5f5f5;
  color: #222;
}

.page-btn.active {
  background: #155d8f;
  color: white;
  border-color: #155d8f;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === about.css === */
.about-section {
  padding: 80px 24px;
  background-color: #ffffff;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-container {
    flex-direction: row;
    gap: 80px;
  }
}

.about-image-wrapper {
  flex: 1;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  position: relative;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.about-image-caption {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

.about-image-placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at top right,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 60%);
}

.about-content {
  flex: 1;
}

.about-header {
  margin-bottom: 24px;
}

.about-title {
  font-size: 36px;
  text-transform: uppercase;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.about-divider {
  width: 60px;
  height: 4px;
  background-color: #ec6118;
  border: none;
  border-radius: 2px;
}

.about-description {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: #ec6118;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #777;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === faq.css === */
.faq-section {
  padding: 80px 24px;
  background-color: #f9f9f9;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-title {
  font-size: 32px;
  text-transform: uppercase;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.faq-divider {
  width: 60px;
  height: 4px;
  background: #ec6118;
  border: none;
  border-radius: 2px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #eee;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: #fffaf7;
  color: #ec6118;
}

.faq-icon {
  width: 24px;
  height: 24px;
  fill: #ec6118;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: white;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition:
    max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .faq-section {
    padding: 56px 16px;
  }

  .faq-title {
    font-size: 26px;
  }

  .faq-question {
    font-size: 16px;
    padding: 16px 20px;
  }

  .faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 14px;
  }
}

/* === back-to-top.css === */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background-color: #d95412;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(217, 84, 18, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #b8440e;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(217, 84, 18, 0.4);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* === footer.css === */
.footer {
  background: linear-gradient(to top, #d95412, #ec6118, #ff7a2f);
  color: white;
  padding: 30px 24px 15px;
  font-size: 12px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: white;
  line-height: 1.4;
}

.footer-contact-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title {
  font-size: 15px;
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.footer-links-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
  font-size: 13px;
}

.footer-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 30px;
  height: 2px;
  background-color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}


.footer-bottom {
  max-width: 1280px;
  margin: 20px auto 0;
  padding-top: 15px;
  border-top: 1px solid white;
  text-align: center;
  color: white;
  font-size: 11px;
}

@media (max-width: 480px) {

  .footer-description,
  .footer-bottom p {
    font-size: 10px;
  }
}

/* === news-detail.css === */
.news-detail-section {
  padding: 80px 24px;
  background-color: #ffffff;
  min-height: 60vh;
}

.news-detail-container {
  max-width: 900px;
  margin: 0 auto;
}

.news-detail-header {
  margin-bottom: 40px;
  text-align: center;
}

.news-detail-date {
  font-size: 14px;
  color: #888;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.news-detail-title {
  font-size: clamp(2rem, 3vw, 3rem);
  color: #222;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.news-detail-image-container {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-detail-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.news-detail-content {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 60px;
  white-space: pre-wrap;
  /* Preservar quebras de linha */
}

.news-detail-footer {
  border-top: 1px solid #eee;
  padding-top: 30px;
  display: flex;
  justify-content: center;
}

.btn-back {
  background: linear-gradient(to right, #155d8f, #1e78b5, #2f8fd1);
  color: white;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-back:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .news-detail-section {
    padding: 40px 16px;
  }

  .news-detail-title {
    font-size: 24px;
  }
}

/* === login-modal.css === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: all 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-modal {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.hidden .login-modal {
  transform: translateY(20px);
}

.login-modal-title {
  font-size: 24px;
  color: #222;
  font-weight: 700;
  margin-bottom: 12px;
}

.login-modal-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.login-modal .form-group {
  margin-bottom: 20px;
}

.login-modal input[type='password'] {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  outline: none;
}

.login-modal input[type='password']:focus {
  border-color: #155d8f;
}

.modal-error-text {
  color: #d95412;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #555;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #eee;
}

.hidden {
  display: none !important;
}

/* === custom empty and error news states === */
.news-empty-minimal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  background-color: #fffaf7;
  border-radius: 16px;
  border: 1px solid #ffe2d1;
  max-width: 550px;
  margin: 10px auto;
  box-shadow: 0 4px 15px rgba(236, 97, 24, 0.03);
}

.news-empty-dot {
  width: 10px;
  height: 10px;
  background-color: #ec6118;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(236, 97, 24, 0.6);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(236, 97, 24, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(236, 97, 24, 0);
  }
}

.news-empty-text-min {
  font-size: 15px;
  color: #c2410c;
  font-weight: 600;
  line-height: 1.4;
}

.news-error-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: #ffffff;
  border-radius: 20px;
  border: 2px dashed #d95412;
  max-width: 600px;
  margin: 20px auto;
  box-shadow: 0 10px 30px rgba(217, 84, 18, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-error-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(217, 84, 18, 0.1);
}

.news-error-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe3e3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid #ffd1d1;
}

.news-error-icon {
  width: 40px;
  height: 40px;
  color: #d95412;
}

.news-error-title {
  font-size: 24px;
  font-weight: 700;
  color: #d95412;
  margin-bottom: 12px;
}

.news-error-text {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 20px;
}

.news-error-btn {
  display: inline-block;
  background: linear-gradient(to right, #d95412, #ec6118);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-error-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}