.card {
  max-width: 800px;
}
.rtl {
  direction: rtl;
}
.image-container {
  background-color: #f8f9fa; /* Off-white background */
  border-radius: 50%; /* Circular background */
  padding: 25px; /* Space between image and background */
  display: flex;
  width: 150px; /* Ensure the container has size */
  height: 150px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Bubble-like shadow */
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block; /* Ensure images do not exceed the container */
}

@media (max-width: 768px) {
  .image-container {
    width: 75px;
    height: 75px;
    padding: 10px;
  }
}

.r1 {
  display: flex;
  justify-content: space-around;
}
.r2 {
  display: flex;

  justify-content: space-between;
}

/* General Section Styling */
.custom-section {
  direction: rtl;
  color: white;
}
.footer-area {
  background-color: #f8f9fa;
  color: #333;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
}

.footer-area .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-area .contact-info {
  display: flex;
  gap: 30px;
}

.footer-area .contact-info p {
  margin: 0;
  font-size: 16px;
}

.footer-area .contact-info a {
  color: #007bff;
  text-decoration: none;
}

.footer-area .contact-info a:hover {
  text-decoration: underline;
}

.footer-area .footer-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}
/* Title Styling */
.section-title {
  text-align: center;
  font-size: 4rem;
  color: #333;
  margin-bottom: 1rem;
}

/* Card Container */
.custom-card {
  position: relative;
  height: 300px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  transition: transform 0.3s ease-in-out;
}

.custom-card:hover {
  transform: scale(1.05);
}

/* Background Image */
.custom-card-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: 1;
}

/* Card Content */
.custom-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 70%;
}

.custom-card-title {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #f8f9fa;
}

/* Media Query for Responsive Design */
@media (max-width: 768px) {
  .custom-card-content {
    max-width: 100%;
    padding: 10px;
  }

  .custom-card {
    height: 250px;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for larger screens */
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover; /* Ensure the image covers the area without distortion */
}

.card-title {
  font-size: 1.25rem;
  margin: 15px 0;
  color: #333;
}
#fo {
  font-size: 13px;
}
.card-description {
  font-size: 1rem;
  color: #555;
  padding: 0 15px 15px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets and up */
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktops */
  }
}
