.gov-directory {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Tajawal", "IBM Plex Arabic", sans-serif;
  color: #1A1A1A;
}

.gov-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gov-card {
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 20px;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gov-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
}

.gov-card-logo img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 0;
  background: #F5F5F5;
}

.gov-card-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #F5F5F5;
  color: #666666;
  font-size: 14px;
  border: 1px solid #E0E0E0;
}

.gov-card-logo {
  flex: 0 0 auto;
}

.gov-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gov-card-title {
  margin: 0;
  font-size: 18px;
  color: #003366;
}

.gov-card-excerpt {
  margin: 6px 0 0;
  color: #666666;
  font-size: 14px;
}

.gov-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #666666;
}

.gov-service-requirements {
  margin: 8px 0 0;
  padding: 0 16px 0 0;
  color: #666666;
}

.gov-service-requirements li {
  margin-bottom: 6px;
}

.gov-card-requirements,
.gov-card-documents {
  margin-top: 12px;
  padding: 12px;
  background: #F9F9F9;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
}

.gov-card-requirements p,
.gov-card-documents p {
  margin: 8px 0 0;
  color: #666666;
  line-height: 1.6;
}

.gov-meta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  background: #F5F5F5;
  color: #003366;
  text-decoration: none;
}

.gov-meta-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gov-meta-icon svg {
  width: 18px;
  height: 18px;
  stroke: #003366;
  stroke-width: 2;
}

.gov-meta-value {
  direction: ltr;
  unicode-bidi: bidi-override;
  color: #666666;
}

.gov-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gov-card-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gov-social-link {
  border: 1px solid #E0E0E0;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 13px;
  color: #003366;
  background: #F5F5F5;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gov-social-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.gov-social-icon svg {
  width: 18px;
  height: 18px;
  stroke: #003366;
}

.gov-social-label {
  display: none;
}

@media (max-width: 900px) {
  .gov-directory-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .gov-directory-grid {
    grid-template-columns: 1fr;
  }

  .gov-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

