:root {
  --dz-bg: #f8fafc;
  --dz-text-main: #334155;
  --dz-text-heading: #0f172a;
  --dz-primary: #3b82f6;
  --dz-border: #e2e8f0;
  --dz-card-bg: #ffffff;
}

body {
  background-color: var(--dz-bg);
  margin: 0;
  color: var(--dz-text-main);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

.home-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
}

.search-section {
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  z-index: 50;
}

.search-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.search-input {
  width: 100%;
  padding: 20px 60px 20px 25px;
  border-radius: 50px;
  border: 2px solid transparent;
  background-color: #fff;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  color: var(--dz-text-heading);
  font-family: 'iranyekan', 'Young Serif';
  text-align: center;
}

.search-input:focus {
  outline: none;
  border-color: var(--dz-primary);
  box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.2);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 34px;
  transform: translateY(-50%);
  background-color: var(--dz-primary);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 2;
}
.search-btn:hover {
  background-color: #2563eb;
}

.search-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  margin-top: 15px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper.active .search-suggestions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.suggestion-title {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 15px;
  font-weight: 600;
}

.suggestion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.suggestion-item {
  padding: 12px 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dz-text-main);
}

.suggestion-item:hover {
  background-color: #f1f5f9;
  color: var(--dz-primary);
}

.suggestion-icon {
  opacity: 0.5;
}
.slider-section {
  margin-bottom: 70px;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 0 10px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dz-text-heading);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 28px;
  background-color: var(--dz-primary);
  border-radius: 4px;
}

.view-all-btn {
  font-size: 0.9rem;
  color: var(--dz-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.view-all-btn:hover {
  gap: 8px;
}

.post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  height: 380px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--dz-border);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--dz-primary);
}

.card-img-wrapper {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.post-card:hover .card-img {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--dz-text-heading);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dz-text-heading);
  margin: 0 0 10px 0;
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 15px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--dz-border);
  font-size: 0.85rem;
  color: #94a3b8;
}

.author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-mini img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.swiper-button-next,
.swiper-button-prev {
  width: 40px !important;
  height: 40px !important;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--dz-text-heading) !important;
  transition: all 0.2s;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--dz-primary);
  color: #fff !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px !important;
  font-weight: bold;
}

.swiper-button-prev {
  left: 0;
}
.swiper-button-next {
  right: 0;
}
.swiper {
  padding: 20px 5px !important;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.4rem;
  }
  .post-card {
    height: auto;
  }
  .card-img-wrapper {
    height: 180px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}