
 /* services */
 .container-services{
  min-height: 100vh;
  width: 100%;
  background-color: #000000;
 }


 .service-wrapper{
  padding: 5% 8%;
 }

 .services{
    display: flex;
    flex-direction: column;
    align-items: center;
 }

 .services h1{
  color: #ffffff;
  font-size: 5rem;
  background-color: #00A97F;
  background: linear-gradient(8deg, rgba(8,52,83,1) 0%,rgba(0,230,173,1) 41%, rgba(41,17,45,1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
 }

 .services h1:after{
    content: "";
    position: absolute;
    top: 100%;
    left: 10%;
    height: 8px;
    width: 80%;
    border-radius: 8px;
    background: #2a2b2b;

 }






 .ag-format-container {
  width: 1142px;
  margin: 0 auto;
}


body {
  background-color: #000;
}
.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;

  padding: 50px 0;
}
.ag-courses_item {
  -ms-flex-preferred-size: calc(33.33333% - 30px);
  flex-basis: calc(33.33333% - 30px);

  margin: 0 15px 30px;

  overflow: hidden;

  border-radius: 28px;
}
.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background-color: #121212;

  overflow: hidden;

  position: relative;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
  text-decoration: none;
  color: #FFF;
}
.ag-courses-item_link:hover .ag-courses-item_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
}
.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_date-box {
  font-size: 18px;
  color: #FFF;

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

  -webkit-transition: color .5s ease;
  -o-transition: color .5s ease;
  transition: color .5s ease
}
.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #4c49ea;

  z-index: 1;
  position: absolute;
  top: -75px;
  right: -75px;

  border-radius: 50%;

  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
  background-color: #4c49ea;
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
  background-color: #4c49ea;
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
  background-color: #4c49ea;
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
  background-color: #4c49ea;
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
  background-color: #4c49ea;
}




@media (max-width: 768px) {
 html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw; /* prevents horizontal overflow */
  overflow-x: hidden;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.section-inner-center {
  position: relative;
  z-index: 1;
  width: 100%; /* make sure content doesn’t exceed screen */
  text-align: center;
  padding: 20px;
  color: white;
}




.container-services {
    padding: 20px 15px;
    width: 100%;
  }

  .services h1 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
  }

  .cards-services {
    width: 100%;
  }

  .ag-format-container {
    width: 100%;
    padding: 0;
  }

  .ag-courses_box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: auto;       /* important to show all 6 items */
    overflow: visible;  /* prevent clipping */
  }

  .ag-courses_item {
    width: 100%;
  }

  .ag-courses-item_link {
    display: block;
    width: 100%;
    text-decoration: none;
  }

  .ag-courses-item_bg {
    height: 140px;
    background-size: cover;
    background-position: center;
  }

  .ag-courses-item_title {
    font-size: 16px;
    padding: 12px;
    text-align: center;
    background-color: rgba(18,18,18); /* optional overlay */
    color: #fff;
  }
}