body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background: url("BAK1.jpg") no-repeat center center fixed;
  background-size: cover;
  padding-top: 60px;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 1));
  z-index: -1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  direction: ltr;
}

.logo img {
  height: 60px;
  padding-left: 80px;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ddd;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 80px;
    right: 20px;
    width: 200px;
    padding: 20px;
    gap: 20px;
    border-radius: 10px;
  }

  nav.open {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  margin-top: 100px;
}

.card {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  animation: floatIn 0.8s ease forwards;
  transform: translateY(30px);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.calendar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #fff;
  border: 2px solid #f94c02;
  border-radius: 10px;
  width: 40px;
  /* height: 70px; */
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.calendar .day {
  background-color: #f94c02;
  color: white;
  padding: 0.1rem 0;
  font-size: 0.6srem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.calendar .month {
  padding: 0.2rem 0;
  font-size: 0.6rem;
  color: #000000;
  background-color: #f1f9ff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: bold;
}

.card-text {
  font-size: 1rem;
  color: #000000;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 10px;
}

.card-button {
  margin: 1rem auto 1.5rem;
  text-align: center;
}

.card-button button {
  background-color: #f94c02;
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card-button button:hover {
  background-color: #7b2500;
}

@keyframes floatIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
