:root {
  --primary: #2c6e49;
  --secondary: #4c956c;
  --accent: #d68c45;
  --light: #fefee3;
  --dark: #1d3523;
  --gold: #d4a017;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background-color: #f8f5f0;
  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"><rect width="100" height="100" fill="%23f8f5f0"/><path d="M20,20 Q50,5 80,20 T100,50 Q85,80 50,100 T0,50 Q15,20 50,0 T100,50" fill="none" stroke="%23e8e3d9" stroke-width="0.5"/></svg>');
  color: #333;
  line-height: 1.8;
}

.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    #f9d976 50%,
    var(--gold) 100%
  );
}

.header-title {
  font-weight: 700;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.header-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.quran-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-left: 15px;
  vertical-align: middle;
}

.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background: white;
  position: relative;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
}

.card-title {
  color: var(--dark);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary);
}

.card-text {
  color: #555;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px dashed #eee;
  color: #777;
  font-size: 0.9rem;
}

.views-badge {
  background: #f0f7f3;
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}

.read-more:hover {
  color: var(--accent);
  transform: translateX(-5px);
}

.read-more i {
  margin-right: 5px;
  transition: transform 0.3s;
}

.read-more:hover i {
  transform: translateX(3px);
}

.category-tag {
  background: rgba(44, 110, 73, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-left: 10px;
}

.search-container {
  max-width: 800px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-input {
  border-radius: 50px;
  padding: 15px 25px;
  border: 2px solid #e0e0e0;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(44, 110, 73, 0.2);
  outline: none;
}

.search-btn {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.2rem;
}

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  margin-top: 4rem;
  font-size: 0.95rem;
}

.footer-title {
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: white;
  transform: translateX(-5px);
}

.copyright {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-left: 10px;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

.quran-verse {
  background: linear-gradient(135deg, #f9f5e9 0%, #f0e8d5 100%);
  border-right: 4px solid var(--gold);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 2.2;
  text-align: center;
  color: var(--dark);
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.verse-reference {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
}

.section-title {
  position: relative;
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--accent));
  border-radius: 2px;
}

@media (max-width: 768px) {
  .header-title {
    font-size: 2rem;
  }

  .header {
    padding: 2rem 0;
  }

  .card {
    margin-bottom: 1.2rem;
  }
}
