:root {
    --color-1: #27548A;
    --color-2: #20c997;
    --color-2-hover: #00835c;
    --light: #ffffff;
    --dark: #2c3e50;
    --btn: #4e6bff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}





/* الشريط العلوي */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}
header .logo {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}
  




/* قسم البحث */
.search-container {
    background-color: #f4f4f4;
    padding: 100px 30px; /* زيادة الطول */
    text-align: center;
    position: relative;
    overflow: hidden;
}
#spider-web-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.search-container h2,
.search-container input[type="text"],
.search-container button {
    position: relative;
    z-index: 1;
}
.search-container input[type="text"] {
    width: 60%;
    padding: 12px;
    font-size: 16px;
    border-radius: 25px;
    border: 2px solid #ccc;
}
.search-container button {
    padding: 12px 30px;
    font-size: 16px;
    background-color: var(--color-2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}
.search-container button:hover {
    background-color: var(--color-2-hover);
}
  




/* تنسيقات قسم الفئات */
.categories-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  direction: rtl;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: #4e6bff;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
}
.section-subtitle {
  color: #777;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.category-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.category-img-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}
.category-card:hover .category-overlay {
  opacity: 0.5;
}
.category-card:hover .category-img {
  transform: scale(1.05);
}
.category-info {
  padding: 20px;
}
.category-name {
  color: #333;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}
.category-meta {
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 14px;
}
.meta-item {
  display: flex;
  align-items: center;
}
.meta-item i {
  margin-left: 5px;
  font-size: 12px;
}
/* تأثيرات للهواتف */
@media (max-width: 768px) {
  .categories-container {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 15px;
  }
  
  .section-title {
      font-size: 26px;
  }
  
  .section-subtitle {
      font-size: 14px;
  }
}






.posts-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.post-summary-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.post-summary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.post-summary-image-container {
  width: 100%;
  height: 180px;
}
.post-summary-image {
  width: 100%;
  height: 100%;
  object-fit:fill;
  transition: transform 0.3s ease;
}
.post-summary-card:hover .post-summary-image {
  transform: scale(1.05);
}
.post-summary-content {
  padding: 15px 20px;
}
.post-summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  height: 3em; /* حوالي سطرين */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.post-summary-excerpt {
  color: var(--text-color);
  font-size: 0.95rem;
  margin-bottom: 15px;
  height: 3.5em; /* حوالي 3 أسطر */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.post-summary-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.read-more-btn {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}
.read-more-btn:hover {
  color: var(--primary-color);
}
@media (max-width: 768px) {
  .posts-summary-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 15px;
  }
}





.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  text-align: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  margin-top:100px;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.faq-item.active {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  border-color: var(--primary-color);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question i {
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-color);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 20px 25px;
  max-height: 1000px;
}

@media (max-width: 768px) {
  .faq-title {
      font-size: 2rem;
  }
  
  .faq-question {
      padding: 15px 20px;
      font-size: 0.9rem;
  }
}





