/* General */
* {
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

/* Hero Section */
.hero {
  background-image: url("../images/hero-bg1.png");
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;

  /* padding-top: 80px; */
}

.hero h1 {
  animation: fadeSlideUp 1s ease forwards;
  opacity: 0;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Typewriter */
.typewriter-text {
  white-space: nowrap;
  overflow: hidden;
  color: #013d67;
  border-right: 3px solid #013d67;
  width: fit-content;
  display: inline-block;
  font-weight: 700;
  font-size: 2.2rem;
  animation: blink-caret 0.9s step-end infinite;
  transition: all 0.3s ease-in-out;
}
.hero .container {
  padding-top: 100px;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 50px;
  }
  .hero-btn {
    width: 75%;
    font-size: 14px;
    margin: auto;
  }
}

@media (min-width: 768px) {
  .typewriter-text {
    font-size: 3.5rem;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #013d67;
  }
}

@keyframes fadeSlideUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hero Button */
.hero-btn {
  display: block;
  width: 200px;
  height: 45px;
  line-height: 45px;
  font-size: 16px;
  font-family: sans-serif;
  font-weight: 500;
  text-decoration: none;
  color: #013d67;
  border: 2px solid #013d67;
  letter-spacing: 1.5px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: 0%;
  margin-top: 20px;
}

.hero-btn span {
  position: relative;
  z-index: 2;
}

.hero-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #013d67;
  z-index: 1;
  transition: left 0.35s ease;
}

.hero-btn:hover::after {
  left: 0;
}

.hero-btn:hover span {
  color: white;
}

/* Services Cards */
.card-body i {
  color: #032f4e;
}

.card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease-in-out;
}

/* Responsive spacing fix for mobile */
@media (max-width: 576px) {
  .hero .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1,
  .typewriter-text {
    font-size: 2rem;
  }
}
.hero-img-animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ag-format-container {
  width: 1142px;
  margin: 0 auto;
}

.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;
  border: #013d67;
  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: 5px;
}
.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background-color: 3;
  border: 1.5px solid #013d67;
  box-shadow: 2px 2px 5px 10px #d0d0d0;
  overflow: hidden;
  text-decoration: none;
  min-height: 200px;

  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: #013d67;

  z-index: 2;
  position: relative;
}
.ag-courses-item_link:hover .ag-courses-item_title {
  color: white;
}

.ag-courses-item_date-box {
  font-size: 18px;
  color: #fff;

  z-index: 2;
  position: relative;
}
.ag-courses-item_date {
  font-weight: 200;
  color: #013d67;

  -webkit-transition: color 0.5s ease;
  -o-transition: color 0.5s ease;
  transition: color 0.5s ease;
}
.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;

  z-index: 1;
  position: absolute;
  top: -85px;
  right: -85px;

  border-radius: 90%;

  -webkit-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

@media only screen and (max-width: 979px) {
  /* .ag-courses_item {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  } */
  .ag-courses-item_title {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
}
@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;
  }
}

.services-heading {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #013d67;
  position: relative;
  margin-bottom: 10px;
}

.heading-underline {
  width: 60px;
  height: 6px; /* starts thick */
  margin: 0 auto 20px auto;
  background: linear-gradient(to right, #013d67, #013d67);
  border-radius: 4px;
  animation: lineShrink 1s ease forwards;
}

@keyframes lineShrink {
  0% {
    width: 0;
    height: 6px;
    opacity: 0;
  }
  100% {
    width: 60px;
    height: 2px; /* ends thinner */
    opacity: 1;
  }
}

.services-subtext {
  text-align: center;
  font-size: 16px;
  color: #333;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.about-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  background-image: url("../images/bgImg.jpg");
}
.about-text {
  font-size: 1.1rem;
  color: white;
}
.about-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}
.about-link {
  color: white;
  text-decoration: none;
}

.contact-section {
  /* background-color: #032f4e; */
  color: #013d67;
  /* padding: 0px 40px 0; */
  text-align: center;
}

.contact-button {
  background-color: #ffffff;
  color: #032f4e;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid #013d67;
}

.contact-button:hover {
  background-color: #032f4e;
  color: white;
}

.contact-text {
  font-size: 1.2rem;
}
