
/* إعداد الخط والخلفية العامة */
body {
  font-family: "Cairo", sans-serif;
  background: linear-gradient(rgba(0, 128, 0, 0.3), rgba(0, 128, 0, 0.3)),
              url('money.png')
              center/cover no-repeat fixed;
  margin: 0;
  padding: 0;
  color: #fff;
}

/* قسم البطل */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.5);
}

/* الشعار الدائري */
.logo {
    position: absolute;            /* position relative to page */
    top:50px;                     /* distance from top */
    left: 40%;                     /* start at 50% from left */
    transform: translateX(-50%);   /* center horizontally */
    width: 80px;                    /* default size for PC */
    height: 80px;
    border-radius: 50%;             /* makes it round */
    object-fit: cover;              /* ensures image fits nicely */
    z-index: 1000;                  /* keeps it above other elements */
}

/* استجابة الهواتف */
@media (max-width: 768px) {
    .logo {
        width: 60px;                /* smaller size for mobile */
        height: 60px;
        top: 15px;                  /* slightly closer to top */
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px;                /* even smaller for small phones */
        height: 50px;
        top: 10px;
    }
}

/* نص العنوان */
.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* النص الوصفي */
.hero p {
  font-size: 1.2rem;
}

/* شريط التنقل */
.navbar {
  background-color: rgba(0, 100, 0, 0.9) !important;
}

/* Navbar Links */
.navbar-nav .nav-link {
  font-weight: 600;
}
.navbar-nav .nav-link.active {
  color: #fff !important;
}

/* Category Buttons */
.filter-btn {
  border-radius: 50px;
  transition: all 0.3s ease;
  margin: 3px;
}
.filter-btn.active,
.filter-btn:hover {
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;
}

/* Blog Cards */
.blog-card .card {
  border-radius: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 30px;
}

.blog-card .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.blog-card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .card-body {
  text-align: right;
}

.blog-card .card-title {
  font-size: 1.2rem;
}

.blog-card .card-text {
  font-size: 0.95rem;
  color: #555;
}

.blog-card .btn-success {
  border-radius: 50px;
  padding: 6px 20px;
  transition: all 0.3s ease;
}

.blog-card .btn-success:hover {
  background-color: #1e7e34;
  border-color: #1c7430;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 40vh;
  }
  .blog-card .card-img-top {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .blog-card .card-img-top {
    height: 150px;
  }
}





/* زر واتساب ثابت في اليمين */
#whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px; /* تم التغيير من left إلى right */
  z-index: 9999;
}

#whatsapp-button button {
  width: 60px;
  height: 60px;
  border: none;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-button button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.7);
}

#whatsapp-button img {
  pointer-events: none;
}
