body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f9fa;
    direction: rtl; /* Arabic layout */
    text-align: right;
  }
  
  header {
    background: #0066cc;
    color: #fff;
    text-align: center;
    padding: 1rem;
  }
  
  .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 1rem;
    justify-content: center; /* center cards */
    padding: 1rem;
  }
  
  .card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .card-body {
    padding: 1rem;
    flex: 1;
    text-align: right; /* ensure text is RTL */
  }
  
  .card-body h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
  }
  
  .card-body p {
    margin: 0.5rem 0;
    color: #666;
  }
  
  .card-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-direction: row-reverse; /* buttons: primary first, secondary second in RTL */
  }
  
  .btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-weight: bold;
  }
  
  /* Primary (احجز موعد - Blue) */
  .btn-primary {
    background: #0066cc;
  }
  .btn-primary:hover {
    background: #004c99;
  }
  
  /* Secondary (عرض التفاصيل - Green) */
  .btn-secondary {
    background: #28a745;
  }
  .btn-secondary:hover {
    background: #1e7e34;
  }
  header {
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    direction: rtl; /* ensure RTL for layout */
  }
  
  .header-left {
    display: flex;
    align-items: center;
    order: 2; /* push logo to the right in RTL */
  }
  
  .logo {
    width: 10px;   /* adjust to fit header */
    height: 100px;  /* maintain aspect ratio */
    margin-left: 10px; /* space between logo and nav */
  }
  
  nav {
    display: flex;
    align-items: center;
    gap: 15px;
    order: 1; /* nav appears on left side in RTL */
  }
  
  header nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  header nav a:hover {
    color: #ffcc00;
  }