body {
  overflow-y: auto; /* Allow vertical scrolling */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  background-color: #000; /* Fallback background */
}
      /*styling for navbar on this page*/
.navbar{
  position:relative; 
  font-size: 17px;
  font-family: monospace;
  background-color: transparent;
  overflow: hidden;
  padding: 14px 16px;
  float: left;
  z-index: 2;
}

.navbar a {
  color: white;
  text-align: center;
  text-decoration: none;
}
.navbar a:hover{
  background-color: white;
  color: black;

}

.navbar a.active {
  background-color: white;
  color: black;
}
.ag-format-container {
  width: 1142px;
  margin: 0 auto;
}

#particles-js {
  position: fixed; /* Changed to fixed to act as a background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Make sure it's behind everything */
  background-color: rgb(0, 0, 0);
}


.ag-courses_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;

  padding: 50px 0;
}
.ag-courses_item {
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
  max-width: 800px; /* Set a max width to make cards bigger */

  margin: 0 15px 30px;
  overflow: hidden;
}
.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background: rgba(30, 30, 30, 0.35); /* semi-transparent */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ag-courses-item_logo {
  position: absolute;
  top: 25px;
  right: 25px;
  height: 40px;
  width: auto;
  z-index: 2;
  opacity: 0.8;
}
.ag-courses-item_link:hover {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.28);
  transform: scale(1.03);
}

/* Expansion styles */
/* Hide details by default */
.ag-courses-item_details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
  margin-top: 0;
  padding-left: 0;
}

.ag-courses-item_link.expanded .ag-courses-item_details {
  max-height: 600px; /* adjust as needed */
  opacity: 1;
  margin-top: 18px;
  padding-left: 10px;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
  text-decoration: none;
  color: #FFF;
}
.ag-courses-item_title {
  min-height: 87px;
  margin: 0 0 25px;

  overflow: hidden;

  font-weight: bold;
  font-size: 30px;
  color: #FFF;

  z-index: 2;
  position: relative;
}
.ag-courses-item_description {
  margin: 0 0 25px;
  font-size: 15px;
  line-height: 1.4;
  color: #DDD;
  overflow: hidden;
  z-index: 2;
  position: relative;
}
.ag-courses-item_date-box {
  font-size: 18px;
  color: #FFF;

  z-index: 2;
  position: relative;
}
.ag-courses-item_date {
  font-weight: bold;
  color: #f9b234;

  -webkit-transition: color .5s ease;
  -o-transition: color .5s ease;
  transition: color .5s ease
}
.read-more-btn {
  margin-top: 16px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.read-more-btn:hover {
  background: rgba(255,255,255,0.25);
}

@media only screen and (max-width: 979px) {
  .ag-courses-item_title {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

}
@media only screen and (max-width: 639px) {
  .ag-courses_item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .ag-courses-item_title {
    min-height: 72px;
    line-height: 1;

    font-size: 24px;
  }
  .ag-courses-item_link {
    padding: 22px 40px;
  }
  .ag-courses-item_date-box {
    font-size: 16px;
  }

}