.card {
  border: none;
  border-radius: 8px;
  background-color: #f2f2f2; /* نفس اللي عندك */
  transition: box-shadow 0.3s ease;
}

.card-header {
  background-color: #fff; /* أبيض لخلفية نظيفة */
  color: #c71f26 !important; /* نفس اللون الأحمر بتاع اللوجو */
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid #c71f26; /* شريط سفلي بالأحمر */
}

.card-body {
  padding: 1.5rem;
}
.card:hover {
  box-shadow: 0 0 10px rgba(199, 31, 38, 0.4); /* ظِل خفيف باللون الأحمر */
}

.btn-dark {
  background-color: #c71f26;
  border: none;
  transition: background 0.3s;
}
.btn-dark:hover {
  background-color: #000;
}
/*-------------blog---------*/

.blog-card {
  background-color: #fff;
  border-radius: 0 !important;
  margin-bottom: 1.5rem; /* مسافة بين كل كارت والتاني */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.blog-card .read-more-btn {
  background-color: #c71f26; /* اللون الأحمر */
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.blog-card .read-more-btn:hover {
  background-color: #a3161c; /* أغمق شوية عند الهوفر */
  color: #fff;
}

.blog-card h2 {
  color: #c71f26; /* عنوان الكارت بلون اللوجو الأحمر */
  margin-bottom: 0.75rem;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-weight: bold;
  color: #c71f26;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-content blockquote {
  border-left: 4px solid #c71f26;
  background-color: #f9f9f9;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 0.75rem;
}

.post-content a {
  color: #c71f26;
  text-decoration: underline;
  transition: color 0.3s;
}

.post-content a:hover {
  color: #a3161c;
}

.post-content hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.post-content table th,
.post-content table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.post-content table th {
  background-color: #f2f2f2;
}

.comment-box {
  background-color: #fff;
  border: 1px solid #eee;
}

.reply-box {
  background-color: #f8f9fa;
  border-radius: 5px;
}
.reply-btn {
  font-size: 0.9rem;
  cursor: pointer;
}
.reply-btn:hover {
  text-decoration: underline;
}

.tag-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.7em;
  font-weight: 800;
  color: #fff;
  background-color: #c71f26;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tag-pill:hover {
  background-color: #a60000;
  color: #fff;
}

/*------------side----------*/

.search .card-body {
  background-color: #f2f2f2;
}
.search .input-group {
  display: flex;
}
.search .input-group .form-control {
  box-shadow: none;
  height: 40px;
  border: none;
  border-radius: 0;
  margin: 0;
}
.search .input-group .btn {
  padding: 0 1rem;
  border: none;
  border-radius: 0;
  margin: 0;
}

.category-item {
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.category-item a {
  color: #000;
  text-decoration: none;
  display: block; /* تخليه يغطي المربع كله */
  width: 100%;
}

.category-item:hover {
  background-color: #c71f26 !important;
}

.category-item:hover a {
  color: #fff !important;
}

.category-item.active {
  background-color: #c71f26;
}

.category-item.active a {
  color: #fff;
}

.media {
  padding: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.media:hover {
  background-color: #c71f26 !important; /* نفس لون اللوجو */
  box-shadow: 0 2px 12px rgba(199, 31, 38, 0.3);
  color: #fff; /* يخلي النص أبيض */
}

.media:hover h6,
.media:hover small,
.media:hover a {
  color: #fff !important;
  text-decoration: none;
}

.media img {
  transition: transform 0.3s ease;
}

.media:hover img {
  transform: scale(1.05); /* تكبير خفيف */
}

.gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  transition: 0.3s;
}

.gallery-img:hover {
  transform: scale(1.02);
}

.tag-item {
  transition: background 0.2s, color 0.2s;
}

.tag-item:hover {
  background-color: #c71f26 !important;
}

.tag-item:hover a {
  color: #fff !important;
}

.tag-item.active {
  background-color: #c71f26;
}

.tag-item.active a {
  color: #fff;
}
