body {
  background-color: #ffffff;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  body {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1280px) {
  body {
    padding-left: 32px;
    padding-right: 32px;
  }
}
.hero-content{
  max-width: 1280px;
  margin: 48px auto 0 auto;
}
.category-filter {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 60px;
}

@media (min-width: 1024px) {
  .category-filter {
    gap: 50px;
  }
}

.filter-btn {
  background-color: #fe5532;
  color: white;
  border: 2px solid #fe5532;
  font-weight: 800;
  font-size: 14px;
  padding: 0.5rem 1.25rem;
  border-radius: 70px;
  transition: all 0.3s ease-in-out;
}

.filter-btn:hover {
  background-color: transparent;
  color: #fe5532;
}

.filter-active {
  background-color: #0f8bf0;
  color: white;
  border: 2px solid #0f8bf0;
}

.filter-active:hover {
  background-color: transparent;
  color: #0f8bf0;
}

/* Container */
.app-cards-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 60px;
  padding-bottom: 60px;
}




/* App Card */
.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2.5px solid #0f8bf0;
  border-radius: 20px;
  padding-left: 16px;
  padding-right: 16px;
  padding-top: 24px;
  padding-bottom: 24px;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.3s ease-in-out;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

.app-card:hover {
  transform: scale(1.03);
}

/* Card Image Container */
.app-card-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.app-card-image img {
   width: 160px;
    height: 160px;
  border-radius: 44px;
}

@media (min-width: 640px) {
  .app-card-image img {
    width: 160px;
    height: 160px;
  }
}

@media (min-width: 768px) {
  .app-card-image img {
    width: 160px;
    height: 160px;
  }
}

/* Card Title */
.app-card-title {
  font-size: 26px;
  color: #0f8bf0;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}

.read-more{
  font-size: 16px;
  color: #0f8bf0;
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 768px) {
  .app-card-title {
    font-size: 26px;
  }
}

/* Card Description */
.card-description {
  color: #6e7a84;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  /* margin-bottom: 35px; */
  max-width: 550px;
}


.hero-content p {
  color: #6e7a84;
  font-size: 16px;
  font-weight: 400;
}

@media (min-width: 640px) {
  .card-description {
    max-width: 250px;
  }
}

.card-desc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: space-between; */
  flex-grow: 1;
  gap: 16px;
  margin-bottom: 0;
}

.open-modal-btn {
  background-color: #0f8bf0;
  color: white;
  border: 2px solid #0f8bf0;
  font-weight: 800;
  font-size: 16px;
  padding: 0.5rem;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.open-modal-btn:hover {
  background-color: transparent;
  color: #0f8bf0;
}

.modal {
  transition: opacity 0.3s ease;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Modal box */
.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#appModal .modal-dialog {
    max-width: 900px; 
    margin: auto;     
}



/* Modal header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0 !important;
}

/* Modal title */
.modal-title {
  font-size: 24px;
  color: #0f8bf0;
}



/* Close button */
.close-modal-btn {
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: #374151;
}

.modal-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Modal description */
.modal-description {
  color: #6e7a84;
  font-size: 16px;
  margin-bottom: 0 !important;
  font-weight: 400;
}

.clamping {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}



.app-pagination {
  margin: 2rem auto;
  text-align: center;
  display: flex;
  justify-content: end;
}

.app-pagination ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-pagination li {
  margin: 0 5px;
}

.app-pagination a,
.app-pagination span {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  background: #f5f5f5;
  color: #333;
  border-radius: 4px;
  margin: 0px 4px;
}

.app-pagination a:hover {
  background: #e0e0e0;
}

.app-pagination .current {
  background: #0073aa;
  color: white;
}


.pagination {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 24px 0px;
  gap: 10px;
}

.page-btn {
  background-color: #fe5532;
  color: white;
  border: 2px solid #fe5532;
  font-weight: 800;
  font-size: 14px;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
}

.page-btn:hover {
  background-color: transparent;
  color: #fe5532;
}

.page-btn.active {
  background-color: #0f8bf0;
  color: white;
  border: 2px solid #0f8bf0;
}

.page-btn.active:hover {
  background-color: transparent;
  color: #0f8bf0;
}


/* Grid */


.app-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}



@media (max-width: 950px) {
  .app-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



@media (max-width: 640px) {
  .app-cards-grid {

    grid-template-columns: 1fr;

  }

  .pagination{
    justify-content: center;
  }
}

/* Overlay background */
#ajax-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* simple overlay */
    backdrop-filter: blur(5px); /* blur effect */
    display: none; /* hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner */
.ajax-loader-spinner {
    border: 8px solid rgba(254, 85, 50, 0.3); /* light blur shade */
    border-top: 8px solid #fe5532; /* solid color part */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    filter: blur(2px); /* blur the spinner itself */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#appModal .modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1.25rem;
  padding-block: 0 !important;
  /* max-height: 700px !important; */
  overflow-y: auto;
}

  @media (max-width: 767px) {
        .modal-title {
            font-size: 28px;
        }

        /* #appModal .modal-body {
            max-height: 450px !important;
        } */
  }

