/* Haberler Sayfası Genel Stilleri */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Hero Bölümü */
.news-hero {
  position: relative;
  background: url("/images/logo/ftyu6.jpg") no-repeat center center;
  background-size:cover ;
  width: 100vw;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
}

.news-hero::before {
  content: '';
  position: absolute;
  width: 100vw;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  width: 100vw;
  z-index: 1;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: -62px;
}

/* Haber Konteyneri */
.news-container {
  width: 100vw;
  margin: 0 auto;
  padding: 0 20px;
}

/* Filtre Barı */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 10px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #e0e0e0;
}

.filter-btn.active {
  background-color: #c8ac15;
  color: white;
}

/* Haber Grid Yapısı */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Haber Kartları */
.news-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

.news-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #c8ac15;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  text-align: center;
  line-height: 1.2;
  z-index: 1;
}

.news-date .day {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.news-date .month {
  display: block;
  font-size: 0.8rem;
}

.news-content {
  padding: 20px;
}

.news-tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f0f0f0;
  color: #555;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
  line-height: 1.4;
}

.news-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: #c8ac15;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: #a89213;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Sayfalama */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 70px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-link:hover {
  background-color: #f0f0f0;
}

.page-link.active {
  background-color: #c8ac15;
  color: #fff;
}

.page-dots {
  margin: 0 5px;
  color: #999;
}

.page-link.next {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

/* Modal Stilleri */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.4s;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 88px;
  font-size: 28px;
  color: #555;
  cursor: pointer;
  z-index: 100;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #000;
}

.modal-body {
  padding: 30px;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-tag {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f0f0f0;
  color: #555;
  font-size: 0.8rem;
  border-radius: 4px;
  margin-bottom: 10px;
  margin-right: 10px;
}

.modal-header h2 {
  font-size: 1.8rem;
  line-height: 1.4;
  color: #333;
}

.modal-image {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-text {
  color: #555;
  line-height: 1.8;
}

.modal-text p {
  margin-bottom: 15px;
}

/* Animasyonlar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Ayarlar */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .news-hero {
    height: 250px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .filter-bar {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  
  .modal-content {
    margin: 10% auto;
  }
}

@media (max-width: 576px) {
  .news-hero {
    height: 300px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .modal-content {
    margin: 5% auto;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px;
  }
}

/* Footer text fix for Haberler page */
.footer .column h3 {
  color: gold !important;
}

.footer ul li a,
.footer ul li,
.footer p,
.footer .ebulten,
.footer .contact-info ul li .text,
.footer .contact-info ul li div span.text,
.footer .contact-info .text,
.footer .contact-ul li div span.text,
.footer .contact-ul li .text {
  color: white !important;
}

.footer .contact-ul li div span.fa,
.footer .contact-info span.fa,
.footer i.fa,
.footer .inner span.fa,
.footer .font-size-14 {
  color: white !important;
}

.footer .contact-ul li div span.sl,
.footer .contact-info span.sl {
  color: white !important;
}

/* Ensure the footer bottom text color is correct */
.footer-bottom-left {
  color: white !important;
}
