body {
  background-color: #f9faf7 !important;
  font-family: "Tajawal", sans-serif;
}

/* Styles pour les cartes horizontales */
.horizontal-card {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background-color: #f9faf7;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.horizontal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
  
}

.group-image-circle {
  width: 60px;
  height: 60px;
  overflow: hidden;
  flex-shrink: 0;
}

.group-image-circle-large {
  width: 80px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}

.group-image-circle-small {
  width: 50px;
  height: 50px;
  overflow: hidden;
  flex-shrink: 0;
}

.group-image-circle-xsmall {
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex-shrink: 0;
}

.group-image-circle img,
.group-image-circle .rounded-circle,
.group-image-circle-large img,
.group-image-circle-large .rounded-circle,
.group-image-circle-small img,
.group-image-circle-small .rounded-circle,
.group-image-circle-xsmall img,
.group-image-circle-xsmall .rounded-circle {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-info {
  max-width: calc(100% - 180px);
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #075e54;
}



/* Styles pour les badges */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
}

.badge.bg-light {
  background-color: #f0f2f5 !important;
  color: #075e54 !important;
}

.badge.bg-primary-light {
  background-color: rgba(13, 110, 253, 0.1) !important;
  color: #075e54 !important;
}

.badge.bg-success-light {
  background-color: rgba(25, 135, 84, 0.1) !important;
  color: #075e54 !important;
}

.badge.bg-info-light {
  background-color: rgba(13, 202, 240, 0.1) !important;
  color: #075e54 !important;
}

.badge.bg-warning-light {
  background-color: rgba(255, 193, 7, 0.1) !important;
  color: #075e54 !important;
}

.badge.bg-danger-light {
  background-color: rgba(220, 53, 69, 0.1) !important;
  color: #075e54 !important;
}

/* Styles pour les boutons */
.join-btn {
  background-color: #dcf8c6 !important;
  border-color: #dcf8c6 !important;
  color: #075e54;
  font-weight: 500;
  border-radius: 20px;
  padding: 0.375rem 1.25rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.join-btn:hover {
  background-color: #c5e8b0 !important;
  border-color: #c5e8b0 !important;
}

.btn-primary {
  background-color: #dcf8c6 !important;
  border-color: #dcf8c6 !important;
  color: #075e54 !important;
}

.btn-primary:hover {
  background-color: #c5e8b0 !important;
  border-color: #c5e8b0 !important;
}

.btn-outline-primary {
  color: #075e54 !important;
  border-color: #dcf8c6 !important;
}

.btn-outline-primary:hover {
  background-color: #dcf8c6 !important;
  color: #075e54 !important;
}

/* Remplacer les styles pour l'en-tête */
.navbar {
  background-color: #dcf8c6 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand,
.nav-link {
  color: #075e54 !important;
}

.nav-link:hover {
  color: rgba(7, 94, 84, 0.8) !important;
}

.category-tabs {
  position: relative;
}

.category-tabs::before,
.category-tabs::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background-color: #e0e0e0;
  position: absolute;
  left: 0;
}

.category-tabs::before {
  top: 0;
}

.category-tabs::after {
  bottom: 0;
}

.category-tabs-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-tabs-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.category-tab {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.category-tab-link {
  display: block;
  padding: 10px 15px;
  color: #075e54;
  text-decoration: none;
  font-weight: normal;
  transition: all 0.2s ease;
}

.category-tab.active .category-tab-link {
  font-weight: bold;
  border-bottom: 2px solid #075e54;
}

.category-tab-link:hover {
  background-color: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

/* Remplacer les styles pour les boutons */
.btn-success {
  background-color: #dcf8c6 !important;
  border-color: #dcf8c6 !important;
  color: #075e54 !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #c5e8b0 !important;
  border-color: #c5e8b0 !important;
}

.btn-outline-success {
  color: #075e54 !important;
  border-color: #dcf8c6 !important;
}

.btn-outline-success:hover {
  background-color: #dcf8c6 !important;
  color: #075e54 !important;
}

/* Styles pour la page de détail du groupe */
.group-description {
  background-color: rgba(220, 248, 198, 0.2) !important;
  border-left: 3px solid #dcf8c6;
}

.group-link-section {
  background-color: rgba(220, 248, 198, 0.2) !important;
}

/* Styles pour les médias queries */
@media (max-width: 768px) {
  .group-info {
    max-width: calc(100% - 140px);
  }

  .card-title {
    font-size: 1rem;
  }

  .badge {
    font-size: 0.7rem;
  }

  .join-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .join-button {
    margin-top: 10px;
  }

  .horizontal-card .card-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .d-flex.align-items-center {
    flex-wrap: wrap;
  }

  .join-button {
    margin-left: 0 !important;
    margin-top: 10px;
    width: 100%;
  }

  .join-btn {
    width: 100%;
  }

  .group-info {
    max-width: calc(100% - 70px);
    margin-bottom: 10px;
  }
}

/* Styles pour la pagination */
.pagination-container {
  background-color: rgba(220, 248, 198, 0.2);
  border-radius: 10px;
}

.page-info {
  color: #075e54;
  font-weight: 500;
}

/* Styles pour les listes */
.list-group-item {
  border-color: rgba(0, 0, 0, 0.05);
}

.list-group-item i.fas.fa-check-circle {
  color: #075e54 !important;
}

/* Ajouter ces styles pour le footer */
footer {
  background-color: #dcf8c6 !important;
  color: #075e54 !important;
}

footer a {
  color: rgba(7, 94, 84, 0.8)!important;
}

footer a:hover {
  color: #075e54 !important;
}

/* Styles pour le header responsive avec filtres */
.site-header {
  background-color: #dcf8c6;
  color: #075e54;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: #075e54;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo i {
  font-size: 1.5rem;
  margin-left: 8px;
}

/* Add these styles to change the title color */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #075e54;
}

/* Specific style for the Arabic title */
.main-title,
.hero-title,
.section-title,
.page-title {
  color: #075e54 !important;
}

/* If the title is in a specific container, target it directly */
.hero-section .title,
.welcome-section .title,
.header-section .title {
  color: #075e54 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #075e54;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle:hover,
.menu-toggle:focus {
  color: #128c7e;
}

/* Add a specific style for the toggle icon if it uses a different class */
.navbar-toggler,
.toggle-button,
.mobile-menu-toggle {
  color: #075e54 !important;
  border-color: #075e54 !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(7, 94, 84, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-right: 20px;
}

.main-nav li:last-child {
  margin-right: 0;
}

.main-nav a {
  color: #075e54;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  display: block;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 0.8;
}

.filter-toggle {
  display: flex;
  align-items: center;
}

.toggle-icon {
  margin-right: 5px;
  transition: transform 0.3s;
}

.filter-toggle.active .toggle-icon {
  transform: rotate(180deg);
}

.header-filter {
  background-color: #f9faf7;
  padding: 15px;
  border-radius: 0 0 8px 8px;
  margin-top: 10px;
  display: none;
}

.header-filter.active {
  display: block;
}



.bg-custom {
    background-color: #f9faf7;
}



/* Media query for mobile devices */
@media (max-width: 768px) {
  .menu-toggle,
  .navbar-toggler,
  .toggle-button,
  .mobile-menu-toggle {
    display: block;
  }

  /* Ensure the toggle button is visible and properly styled on mobile */
  .filter-toggle {
    color: #075e54 !important;
  }

  .toggle-icon {
    color: #075e54 !important;
  }
}
