/* ============================================ */
/* Component: Grid Card (Clean Version) */
/* ============================================ */

/* --- Base Card Styles --- */
/* (Applies to both blog and company cards) */
.blog-card,
.company-card {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%; /* This is the key for grid/slider height */
}

.blog-card:hover,
.company-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Blog Card Specifics --- */
.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.blog-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1; /* This stretches the content area */
}
.blog-content h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-brand-dark);
  text-align: left;
}
.blog-content p {
  margin: 0;
  color: var(--color-font-mid-gray);
  text-align: left;
}
.blog-content a {
  margin-top: auto; /* Pushes button to bottom */
  align-self: flex-start;
  background: var(--color-brand-dark);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}
.blog-content a:hover {
  background: var(--color-brand-yellow-dark);
  color: var(--color-black);
}

/* --- Company Card Specifics --- */
.company-card {
  padding: 20px;
  align-items: center; /* Center the logo/title */
  justify-content: center;
  text-align: center;
}
.company-card img {
  object-fit: contain;
  height: 150px;
  margin-bottom: 15px;
}
.company-card h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-brand-dark);
}

/* --- RTL Fixes --- */
[dir="rtl"] .blog-content h2,
[dir="rtl"] .blog-content p {
  text-align: right;
}
[dir="rtl"] .blog-content a {
  align-self: flex-end;
}