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

:root {
  --primary: #8C1007;
  /* Sovyet kırmızısı */
  --secondary: #0F0E0E;
  /* Altın sarısı */
  --accent: #8B0000;
  /* Koyu kırmızı */
  --dark: #2F2F2F;
  /* Koyu gri */
  --light: #F5F5F5;
  /* Açık gri */
  --gray: #7F7F7F;
  /* Orta gri */
  --success: #228B22;
  /* Yeşil */
  --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

body {
  background-color: #E8E8E8;
  color: #333;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
header {
  background-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--secondary);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
}

.logo img {
  margin-right: 10px; /* Görsel ile metin arasına boşluk ekler */
}

.logo span {
  color: var(--light);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: var(--light);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
}

nav ul li a:hover {
  color: var(--secondary);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--dark);
  min-width: 180px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
  z-index: 1;
  border: 2px solid var(--secondary);
  border-top: none;
}

.dropdown-menu a {
  color: var(--light);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-menu a:hover {
  background-color: var(--primary);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-search {
  display: none;
}

.dropdown-search-active {
  display: block;
  position: absolute;
  top: 100%; /* Arama çubuğunun altına konumlandırır */
  left: 0;
  width: 100%; /* Arama çubuğu ile aynı genişlikte yapar */
  background-color: var(--dark);
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3);
  z-index: 0;
  border: 2px solid var(--secondary);
  border-top: none;
  margin-top: 5px; /* Arama çubuğu ile arasında boşluk bırakır */
}

.dropdown-search-active a {
  color: var(--light);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-search-active a:hover {
  background-color: var(--primary);
}

.search-bar {
  position: relative; /* İçindeki absolute konumlandırılmış öğeler için referans noktası olur */
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  padding: 8px 12px;
  margin-top: 10px;
  width: 220px;
  float: right;
  border: 1px solid var(--secondary);
}

.search-bar input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  padding: 5px;
  font-size: 0.9rem;
  color: var(--light);
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-bar button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 5px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light);
}

/* Hero Section */
.hero {
  background:
    radial-gradient(ellipse at 50% 118%, rgba(232, 196, 126, 0.36) 0 18%, transparent 19% 40%),
    linear-gradient(90deg, rgba(255, 226, 172, 0.1) 0 2px, transparent 2px 112px),
    linear-gradient(135deg, #2b0d0c 0%, #7f120e 48%, #17110f 100%);
  color: var(--light);
  padding: 56px 0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border-top: 4px solid #c9a24f;
  border-bottom: 5px solid #c9a24f;
  box-shadow: inset 0 -16px 30px rgba(0, 0, 0, 0.28);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(235, 199, 119, 0.2) 84px 87px),
    linear-gradient(180deg, rgba(255, 239, 197, 0.18), transparent 45%, rgba(0, 0, 0, 0.18));
  opacity: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 14px;
  height: 6px;
  background: linear-gradient(90deg, transparent, #d8b35c 18%, #f4df99 50%, #d8b35c 82%, transparent);
  opacity: 0.85;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0;
  line-height: 1.2;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: none;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  color: var(--light);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
  background: #FFC400;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
}

.btn-primary:hover {
  background: #B30000;
}

/* Main Content */
.main-content {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
}

/* Blog Posts */
.posts {
  flex: 2;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--dark);
  position: relative;
  padding-bottom: 10px;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.post-card {
  background: var(--light);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.post-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--primary);
}

.post-content {
  padding: 20px;
}

.post-category {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  color: var(--light);
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  cursor: pointer;
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark);
  text-decoration: none;
  display: block;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
}

.post-excerpt {
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--gray);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 15px;
}

.post-meta img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  border: 2px solid var(--primary);
}

.post-date {
  margin-left: auto;
  font-weight: 500;
}

.author-span {
  cursor: pointer;
}

.page-buttons{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

/* Sidebar */
.sidebar {
  flex: 1;
}

.sidebar-widget {
  background: var(--light);
  border-radius: 2px;
  padding: 20px;
  margin-bottom: 30px;
  margin-top: 85.5px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--primary);
}

.widget-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--dark);
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

.categories {
  list-style: none;
}

.categories li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.categories li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border: none;
}

.categories a {
  text-decoration: none;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  transition: var(--transition);
  font-weight: 500;
}

.categories a:hover {
  color: var(--primary);
}

.categories span {
  background: var(--primary);
  color: var(--light);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.8rem;
}

.popular-posts .post {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
}

.popular-posts .post:last-child {
  margin-bottom: 0;
}

.popular-posts .post-img {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  margin-right: 15px;
}

.popular-posts .post-title {
  font-size: 1rem;
  margin-bottom: 5px;
}

.popular-posts .post-date {
  font-size: 0.8rem;
  color: var(--gray);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  color: var(--light);
  border-radius: 2px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.tag:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.subscribe input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 2px;
  margin-bottom: 15px;
  font-size: 1rem;
  background: #f9f9f9;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), var(--primary);
  color: var(--light);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 60px;
  border-top: 3px solid var(--secondary);
  border-bottom: 3px solid var(--secondary);
  position: relative;
  overflow: hidden;
}

.newsletter h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  color: var(--secondary);
  position: relative;
  z-index: 1;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 2px 0 0 2px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.newsletter-form button {
  padding: 0 30px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
}

.newsletter-form button:hover {
  background: #FFC400;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 60px 0 30px;
  border-top: 3px solid var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-family: 'Inter', 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  color: var(--secondary);
}

.footer-widget h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--secondary);
  margin-top: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: var(--primary);
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-5px);
}


.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}


/* Responsive Design */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .soviet-symbol {
    width: 60px;
    height: 60px;
    top: 15px;
    right: 15px;
  }

  .soviet-symbol::before {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .header-container {
    position: relative;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    border-top: 2px solid var(--secondary);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  .search-bar {
    margin-top: 20px;
    width: 100%;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .soviet-symbol {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    border-radius: 2px;
    width: 100%;
  }

  .hero {
    padding: 48px 0;
  }

  .logo {
    font-size: 1.6rem;
  }
}
