/* News page specific styles */
.bfz-news {
  position: relative;
  padding-bottom: 44px;
}

.bfz-news-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px) 0 clamp(76px, 8vw, 116px);
  background: var(--bfz-blue);
}

.bfz-news-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(243, 244, 247, 0), rgba(243, 244, 247, 0.96));
  pointer-events: none;
}

.bfz-news-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.bfz-news-hero-copy {
  max-width: 900px;
  text-align: center;
}

.bfz-news-hero-copy h1 {
  margin: 0;
  color: var(--bfz-white);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.05;
  font-weight: 800;
}

.bfz-news-hero-copy p {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1rem, 1.4vw, 1.26rem);
  line-height: 1.45;
  max-width: 64ch;
}

.bfz-news-content-wrap {
  margin-top: clamp(-72px, -6vw, -48px);
  position: relative;
  z-index: 3;
}

.bfz-news-card {
  background: #f3f4f7;
  border: 1px solid rgba(23, 72, 142, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(23, 43, 70, 0.18);
  overflow: hidden;
  padding: clamp(18px, 2.7vw, 30px);
}

/* Search and Filter Area */
.bfz-news-search-area {
  margin-bottom: clamp(24px, 3.5vw, 40px);
  padding-bottom: clamp(24px, 3.5vw, 40px);
  border-bottom: 1px solid rgba(23, 72, 142, 0.14);
}

.bfz-news-search-form {
  display: grid;
  gap: clamp(16px, 2vw, 20px);
}

.bfz-news-search-wrapper {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(12px, 1.5vw, 16px);
  align-items: flex-end;
}

.bfz-search-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bfz-search-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1d4f96;
  display: block;
}

.bfz-search-input,
.bfz-date-input {
  border: 1px solid rgba(23, 72, 142, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #384765;
  transition: all 0.3s ease;
  font-family: inherit;
}

.bfz-search-input:focus,
.bfz-date-input:focus {
  outline: none;
  border-color: var(--bfz-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 79, 150, 0.1);
}

.bfz-search-input::placeholder {
  color: #8597ae;
}

.bfz-search-btn,
.bfz-search-reset {
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  min-width: 150px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.bfz-search-btn {
  background: var(--bfz-blue);
  color: #ffffff;
}

.bfz-search-btn:hover {
  background: #1d4f96;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(29, 79, 150, 0.22);
}

.bfz-search-btn:active {
  transform: translateY(0);
}

.bfz-search-reset {
  background: rgba(29, 79, 150, 0.08);
  color: #1d4f96;
  border: 1px solid rgba(29, 79, 150, 0.2);
}

.bfz-search-reset:hover {
  background: rgba(29, 79, 150, 0.14);
  border-color: rgba(29, 79, 150, 0.3);
}

.bfz-news-results-count {
  font-size: 0.95rem;
  color: #5b6781;
  margin-top: clamp(12px, 1.5vw, 16px);
  font-weight: 500;
}

.bfz-news-results-count span {
  font-weight: 700;
  color: var(--bfz-blue);
}

/* News Grid */
.bfz-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 28px);
  animation: fadeIn 0.4s ease;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* News Item */
.bfz-news-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(23, 72, 142, 0.1);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 12px rgba(28, 50, 82, 0.08);
}

.bfz-news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(28, 50, 82, 0.16);
  border-color: rgba(23, 72, 142, 0.2);
}

.bfz-news-item-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bfz-news-item-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 62.5%;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e8f5, #f3f4f7);
}

.bfz-news-item-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.bfz-news-item:hover .bfz-news-item-thumbnail img {
  transform: scale(1.08);
}

.bfz-news-item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(16px, 2vw, 20px);
}

.bfz-news-item-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--bfz-yellow);
  font-weight: 600;
  margin-bottom: 10px;
}

.bfz-news-item-date i {
  font-size: 1rem;
}

.bfz-news-item-title {
  margin: 0 0 12px 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.3;
  color: #1d2d44;
  font-weight: 700;
  word-break: break-word;
  transition: color 0.3s ease;
}

.bfz-news-item:hover .bfz-news-item-title {
  color: var(--bfz-blue);
}

.bfz-news-item-excerpt {
  margin: 0 0 auto 0;
  font-size: 0.95rem;
  color: #5b6781;
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}

.bfz-news-item-footer {
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 72, 142, 0.08);
}

.bfz-news-read-more {
  font-size: 0.9rem;
  color: var(--bfz-blue);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.bfz-news-item:hover .bfz-news-read-more {
  gap: 10px;
}

.bfz-news-read-more i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.bfz-news-item:hover .bfz-news-read-more i {
  transform: translateX(4px);
}

/* Empty State */
.bfz-news-empty {
  grid-column: 1 / -1;
  border: 1px dashed #b9c7db;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  padding: 60px 20px;
  text-align: center;
  color: #4d5f80;
  display: grid;
  place-items: center;
  gap: 16px;
}

.bfz-news-empty i {
  font-size: 3.5rem;
  color: var(--bfz-blue);
  opacity: 0.6;
}

.bfz-news-empty p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .bfz-news-hero {
    padding-bottom: 70px;
  }

  .bfz-news-content-wrap {
    margin-top: -40px;
  }

  .bfz-news-search-wrapper {
    grid-template-columns: 1fr;
  }

  .bfz-search-btn,
  .bfz-search-reset {
    width: 100%;
    justify-content: center;
  }

  .bfz-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .bfz-news {
    padding-bottom: 28px;
  }

  .bfz-news-hero {
    padding: 22px 0 62px;
  }

  .bfz-news-hero-copy h1 {
    font-size: clamp(1.56rem, 8vw, 2.06rem);
  }

  .bfz-news-hero-copy p {
    margin-top: 10px;
    font-size: 0.98rem;
  }

  .bfz-news-card {
    padding: clamp(16px, 3vw, 20px);
  }

  .bfz-news-search-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bfz-search-input-group {
    gap: 6px;
  }

  .bfz-search-label {
    font-size: 0.9rem;
  }

  .bfz-search-input,
  .bfz-date-input,
  .bfz-search-btn,
  .bfz-search-reset {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .bfz-news-grid {
    grid-template-columns: 1fr;
  }

  .bfz-news-item-content {
    padding: clamp(14px, 2vw, 16px);
  }

  .bfz-news-empty {
    padding: 40px 16px;
    gap: 12px;
  }

  .bfz-news-empty i {
    font-size: 2.5rem;
  }

  .bfz-news-empty p {
    font-size: 1rem;
  }
}

/* Pagination */
.bfz-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px 0 60px;
}

.bfz-pagination-item a,
.bfz-pagination-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(26, 47, 88, 0.12);
  font-weight: 700;
  color: var(--bfz-blue);
  text-decoration: none;
  padding: 0 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bfz-pagination-item .current {
  background: var(--bfz-blue);
  color: var(--bfz-white);
  border-color: transparent;
}

.bfz-pagination-item a:hover,
.bfz-pagination-item a:focus-visible {
  box-shadow: 0 8px 18px rgba(15, 78, 233, 0.18);
  transform: translateY(-1px);
}
