.ag-courses_box {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 20px 0;
}
.ag-courses_item {
  flex-basis: calc(33.33333% - 30px);
  margin: 0 10px 25px;
  overflow: hidden;
  border-radius: 5px;
}
.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background-color: #0a004d;
  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 {
  transform: scale(10);
}
.ag-courses-item_title {
  min-height: 87px;
  margin: 0 0 25px;
  overflow: hidden;
  font-weight: bold;
  font-size: 20px;
  color: #FFF;
  z-index: 2;
  position: relative;
  text-align: center;
}

.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;
  z-index: 0; /* LOWER z-index */
  position: absolute;
  top: -75px;
  right: -75px;
  border-radius: 50%;
  transition: all 0.5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
  background-color: #3ecd5e;
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
  background-color: #e44002;
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
  background-color: #952aff;
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
  background-color: #cd3e94;
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
  background-color: #4c49ea;
}

/* Responsive adjustments */
@media only screen and (max-width: 979px) {
  .ag-courses_item {
    flex-basis: calc(50% - 30px);
  }
  .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 {
    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;
  }
}

/* Category Button Style */
.button-63 {
  align-items: center;
  background-image: linear-gradient(144deg, #AF40FF, #5B42F3 50%, #00DDEB);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  color: #FFFFFF;
  display: flex;
  font-family: Phantomsans, sans-serif;
  font-size: 10px;
  justify-content: center;
  line-height: 1em;
  min-width: 140px;
  padding: 10px 19px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 2; /* ENSURE it's above background */
}
.button-63:hover {
  outline: 0;
}

@media (min-width: 768px) {
  .button-63 {
    font-size: 24px;
    min-width: 196px;
  }
}

.ag-courses-item_date-box {
  position: relative;
  z-index: 2; /* ENSURE button container stays above */
  text-align: center;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Basic reset for margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}





/* Main intro section styling */
.intro-section {
  background-color: #2485db;  /* Rwandan Blue as the primary color */
  padding: 80px 0;  /* Top & bottom padding */
  color: #fff;  /* Text color for contrast */
  text-align: center;
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.intro-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff; /* White for a clean, professional look */
}

.intro-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #fff; /* Ensure all text stays readable */
}

.intro-description strong {
  color: #fcdc35;  /* A touch of Rwandan Yellow for emphasis */
}

.intro-button-container {
  text-align: center;
}

.btn-learn-more {
  background-color: #fcdc35;  /* Use the Rwandan Yellow to draw attention */
  color: #1e3a8a;  /* Rwandan Blue for text */
  font-size: 1.2rem;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #fcdc35;  /* Border color matches button */
}

.btn-learn-more:hover {
  background-color: #1e3a8a;  /* On hover, switch to Blue */
  color: #fff;  /* Text changes to white on hover for contrast */
}

@media (max-width: 767px) {
  .intro-section {
    padding: 60px 20px;
  }

  .intro-section h1 {
    font-size: 2.5rem;
  }

  .intro-description {
    font-size: 1rem;
  }

  .btn-learn-more {
    font-size: 1rem;
    padding: 12px 24px;
  }
}




/* Timeline Container */
.timeline {
  background: white;
  margin: 20px auto;
  padding: 20px;
}

/* Outer Layer with the timeline border */
.outer {
  border-left: 2px solid #333;
}

/* Card container */
.card {
  position: relative;
  margin: 0 0 20px 20px;
  padding: 10px;
  background: white;
  color: black;
  border-radius: 8px;
  max-width: auto;
}

/* Information about the timeline */
.info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Title of the card */
.title {
  color: darkblue;
  position: relative;
}

/* Timeline dot  */
.title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 999px;
  left: -39px;
  border: 3px solid orangered;
}

.service-item {
  min-height: 100px;
  width: 100%;
  margin: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

