/* Top Navigation */
.top-nav {
  background-color: var(--primary-blue);
}
/* Main Header */
header {
  background-color: var(--primary-blue);
  width: 100%;
  z-index: 90;
  padding: 20px;
}

/* News Section Styles */
.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0px;
  display: flex;
  flex-direction: column;
}

.news-section p {
    font-size: 14px;
    margin-bottom: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: left;
  margin-bottom: 30px;
}


.section-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: calc(100% + 30px);
    background-color: #730b1d; /* çizgi rengi */
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 24px;
        font-weight: bold;
        color: var(--primary-blue);
        position: relative;
        display: inline-block;
        padding-bottom: 8px;
    }

    .section-header h2::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: calc(100% + 30px);
        background-color: #730b1d; /* çizgi rengi */
        border-radius: 2px;
    }
}

.filter-options button {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  margin-left: 15px;
  font-size: 14px;
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.dropdown-toggle:hover {
  background-color: rgba(211, 19, 19, 0.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  min-width: 180px;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin-top: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  text-align: left;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
  color: var(--primary-blue);
}

.filter-dropdown, .sort-dropdown {
  margin-left: 10px;
}

.filter-options-desk {
  display: block;
}

.filter-options-mobile {
  display: none;
}

/* Featured News */
.featured-news {
  display: flex;
  overflow: hidden;
  margin-bottom: 30px;
}

.featured-news-image {
  flex: 0 0 60%;
}

.featured-news-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.featured-news-content {
  flex: 0 0 40%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-news-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.featured-news-content p {
  color: #666;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-blue);
  font-weight: 500;
  display: flex;
  align-items: center;
  width: fit-content;
}

.read-more i {
  margin-left: 5px;
  font-size: 12px;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-item1 {
  background-color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-image {
  height: 150px;
  width: 150px;
  position: relative;
  min-height: 150px;
  min-width: 150px;
  border-radius: 10px;
}

.news-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 Q50,0 70,10 T100,30 Q100,50 90,70 T70,100 Q50,100 30,90 T0,70 Q0,50 10,30 T30,10" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 100px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

.blue-bg {
  background-color: var(--primary-blue);
}

.green-bg {
  background-color: #5aaa8e;
}

.news-content {
  padding: 20px;
}

.news-content h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
  min-height: 50px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .featured-news {
    flex-direction: column;
  }

  .featured-news-image,
  .featured-news-content {
    flex: 0 0 100%;
  }

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

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

  .filter-options-desk {
    display: none;
  }

  .filter-options-mobile {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
  }

  .filter-options-mobile .dropdown {
    width: 48%;
  }

  .filter-options-mobile .dropdown-toggle {
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: rgba(90, 156, 164, 0.1);
    border-radius: 6px;
  }

  .filter-options-mobile .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
  }
}

@media (max-width: 375px) {
  .news-image {
    height: 150px;
    width: 100px;
    min-height: 150px;
    min-width: 100px;
    object-fit: cover;
  }
}
