/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }
  
  body {
    background-color: #f9f9f9;
  }
  
  .card-section {
    padding: 20px;
  }
  
  .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  /* Card Style */
  .card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: calc(50% - 20px); /* Two cards per row */
    max-width: 400px;
  }
  
  .card-center {
    width: 100%;
    max-width: 400px; /* Card centered in the third row */
  }
  
  .card-image {
    width: 100%; /* Increased image size */
    height: 250px; /* Make it bigger while maintaining square shape */
    border-radius: 50%; /* Keeps the image circular */
    object-fit: cover; /* Ensures the image fits within the dimensions */
    margin-right: 15px;
  }
  
  .card-content {
    display: flex;
    flex-direction: column;
  }
  
  .name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
  
  .designation-airforce {
    font-size: 14px;
    color: #555 !important;
    margin-top: 5px;
  }
  
  .designation-school {
    font-size: 14px;
    color: #777 !important;
    margin-top: 3px;
  }
  
    /* Responsive Design for Mobile View */
@media (max-width: 768px) {
  .card {
      width: 100%;
  }
  .card-container {
      flex-direction: column;
  }
  .card-image {
      width: 200px; /* Adjust width for mobile */
      height: 300px; /* Match height for a perfect circle */
      margin-bottom: 10px;
      margin-right: 0;
      object-fit: cover; /* Ensures the image fully covers the area */
  }
}

@media (max-width: 480px) {
  .card {
      flex-direction: column;
      align-items: center; 
  }

  .card-image {
      width: 210px; 
      height: 300px;
      margin-bottom: 10px;
      margin-right: 0;
      object-fit: cover;
  }
}
