:root {
  --white: #fff;
  --ocean: #31dd9e;

  --secondary-color: #00e1d9;
  --dark-blue: #1a2b6d;
  --mid-blue: #5171c8;
  --mid-blue2: #3252aa;
  --light-blue: #e6f0ff;

  --white: #ffffff;
  --gray: #f8f9fa;
  --dark-gray: #6c757d;
}

body {
  font-family: "Montserrat", sans-serif, Arial;
}

img {
  max-width: 100%;
}

.color1 {
  color: var(--ocean);
}

.color2 {
  color: var(--mid-blue);
}

.color3 {
  color: var(--dark-blue);
}

.devider5 {
  fill: var(--mid-blue);
}

.path-frontpage header {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 10;
}

body:not(.path-frontpage) header img:first-child {
  display: none !important;
}

body:not(.path-frontpage) header img:last-child {
  display: block !important;
}

#navbar-main {
  background-color: var(--white);
}

.path-frontpage #navbar-main {
  background-color: transparent;
}

.path-frontpage header:not(.fixed) #navbar-main {
  padding-top: 20px;
}

header {
  box-shadow: 0px 3px 20px #00000024;
  position: relative;
  z-index: 1;
}

.navbar-brand {
  width: 100px;
  padding-block: 0;
}

.navbar-brand img {
  width: 100%;
}

.main-slider {
  width: 100%;
  overflow: hidden;
}

.main-slider .swiper-pagination {
  bottom: 45px;
}

.node__content {
  margin-top: 0px;
}

.slieContent {
  position: absolute;
  inset: 0;
  top: 80px;
  z-index: 5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 80px;
}

.swiper-slide .perSlider {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.swiper-slide .perSlider img {
  object-fit: cover;
  object-position: 60px 0px;
  position: absolute;
  inset: 0;
  transform: scale(1.3);
  transition: all 4s ease-in-out;
}

.swiper-slide.swiper-slide-active .perSlider img {
  /* transform: scale(1.25) translate(0px, 0); */
  object-position: 0px 0px;
}

.slider-title {
  font-size: 280%;
  font-weight: 700;
  margin-bottom: 5px;
}

.slider-desc {
  font-size: 160%;
  font-weight: 400;
  margin-bottom: 25px;
}

.main-slider .swiper-slide > * {
  position: relative;
}

.main-slider .swiper-slide > *::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, #0000005d, transparent);
  z-index: 2;
}

.main-slider .swiper-slide > *::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: linear-gradient(360deg, #1f46ad, transparent);
  z-index: 2;
}

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

.swiper-slide .cntt > * {
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.71, 0.16, 0.24, 0.9);
}

.swiper-slide .cntt > .slider-title {
  transform: translate(-30px, 0);
}

.swiper-slide .cntt > .slider-desc {
  transform: translate(30px, 0);
}

.swiper-slide .cntt > *:last-child {
  transform: translate(0, 30px);
}

.swiper-slide.swiper-slide-active .cntt > * {
  opacity: 1;
  transform: translate(0, 0) !important;
}

.swiper-slide.swiper-slide-active .cntt > .slider-title {
  transition-delay: 0.3s;
}

.swiper-slide.swiper-slide-active .cntt > .slider-desc {
  transition-delay: 0.9s;
}

.swiper-slide.swiper-slide-active .cntt > *:last-child {
  transition-duration: 0.35s;
  transition-delay: 1.5s;
}

.btn-white {
  border-radius: 500px;
  padding: 8px 20px;
  background-color: var(--white);
}

.btn-white:hover,
.btn-white:focus {
  background-color: var(--ocean);
  color: var(--white);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  color: var(--white);
  background-image: url(../imgs/coding.jpg);
  background-attachment: fixed;
  background-position: 50%;
}

.footer:after {
  content: "";
  position: absolute;
  opacity: 0.8;
  inset: 0;
  z-index: -2;
  background-color: #181c29;
}

.footer h5 {
  color: var(--ocean);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--white);
}

.footer-logo {
  margin-bottom: 20px;
  width: 150px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  text-align: center;
  line-height: 36px;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

/* Gallery */

.parent.gallery-parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 12px;
  height: 90vh;
  min-height: 560px;
}

.gallery-parent .div1 {
  grid-row: span 4 / span 4;
}

.gallery-parent .div2 {
  grid-row: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 5;
}

.gallery-parent .div3 {
  grid-row: span 4 / span 4;
  grid-column-start: 2;
  grid-row-start: 3;
}

.gallery-parent .div4 {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 1;
}

.gallery-parent .div5 {
  grid-row: span 2 / span 2;
  grid-column-start: 4;
  grid-row-start: 5;
}

.gallery-parent .div6 {
  grid-row: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 3;
}

.gallery-parent .div7 {
  grid-row: span 2 / span 2;
  grid-column-start: 3;
  grid-row-start: 5;
}

.gallery-parent .div8 {
  grid-row: span 4 / span 4;
  grid-column-start: 4;
  grid-row-start: 1;
}

.gallery-parent a {
  display: flex;
  height: 100%;
  width: 100%;
}

.gallery-parent a img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: 50%;
  border-radius: 10px;
}

.home-section-title {
  margin-bottom: 25px;
}

.home-section-title p {
  text-align: center;
}

.home-section-title p:first-child {
  font-size: 220%;
  text-transform: uppercase;
  font-weight: 400;
}

.home-section-title p:first-child span {
  color: var(--ocean);
  font-weight: 600;
}

.counter {
  /* width: 400px; */
  height: 200px;
}

.counter b {
  font-size: 170%;
  font-weight: 300;
  font-family: "Montserrat";
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--mid-blue);
  /* border: 3px solid #ffffff; */
  border-radius: 50%;
  text-align: center;
  line-height: 150px;
  font-family: sans-serif;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 4px;
  text-transform: uppercase;
  /* text-shadow: 0 0 10px #fff000; */
  /* box-shadow: 0 0 20px rgba(0, 0, 0, .5); */
}

.ring:before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border: 1px solid transparent;
  border-top: 1px solid transparent;
  border-inline: 1px solid var(--mid-blue);
  border-inline-start-color: var(--ocean);
  border-radius: 50%;
  animation: animateC 10s linear infinite;
}

.ring span {
  display: block;
  position: absolute;
  top: calc(50% - 0px);
  left: calc(50% - 0px);
  width: calc(50% + 13px);
  height: 0px;
  background: transparent;
  transform-origin: left;
  animation: animate 10s linear infinite;
}

.ring span:last-child {
  display: block;
  position: absolute;
  top: calc(50% - 0px);
  left: calc(50% - 0px);
  width: calc(50% + 13px);
  height: 0px;
  background: transparent;
  transform-origin: left;
  animation: animate 10s linear infinite;
}

/* .ring:hover span {
    animation-duration: 2s;
}

.ring:hover:before {
    animation-duration: 2s;
} */

.ring span:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mid-blue);
  top: -4px;
  right: -10px;
  box-shadow: 0 0 20px var(--mid-blue);
}

.ring span:last-child:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ocean);
  top: -4px;
  right: 168px;
  box-shadow: 0 0 20px var(--ocean);
}

@keyframes animateC {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate {
  0% {
    transform: rotate(45deg);
  }

  100% {
    transform: rotate(405deg);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.mask-container {
  container-type: inline-size;
  --mask-head-size: calc(0.05 * 100cqw);
  --mask-foot-size: calc(0.061 * 100cqw);
}

.mask-box {
  margin-block: calc(-1 * var(--mask-head-size) - 1px)
    calc(-1 * var(--mask-foot-size) - 1px);
  padding-block: calc(var(--mask-head-size) + 1px)
    calc(var(--mask-foot-size) + 1px);
  mask-image:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none" width="1000" height="50"><g transform="scale(1,-1)" transform-origin="50%"><path d="M0 1v99c134.3 0 153.7-99 296-99H0Z" opacity=".5"></path><path d="M1000 4v86C833.3 90 833.3 3.6 666.7 3.6S500 90 333.3 90 166.7 4 0 4h1000Z" opacity=".5"></path><path d="M617 1v86C372 119 384 1 196 1h421Z" opacity=".5"></path><path d="M1000 0H0v52C62.5 28 125 4 250 4c250 0 250 96 500 96 125 0 187.5-24 250-48V0Z"></path></g></svg>'),
    linear-gradient(
      transparent calc(var(--mask-head-size) - 1px),
      black calc(var(--mask-head-size) - 1px),
      black calc(100% - var(--mask-foot-size) + 1px),
      transparent calc(100% - var(--mask-foot-size) + 1px)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none" width="1000" height="61"><g transform="scale(1.3,1)" transform-origin="40.5% 50%"><path d="M0 0v100c250 0 375-24 500-48 125 24 250 48 500 48V0H0Z" opacity=".5"/><path d="M0 0v4c250 0 375 24 500 48C625 28 750 4 1000 4V0H0Z"/></g></svg>');
  mask-repeat: no-repeat;
  mask-position: top, center, bottom;
  mask-size: 100%;
  background-color: #aa2068;
  background-image: linear-gradient(90deg, #cc3f47, #808);
}

.above-mask-box {
  padding-bottom: var(--mask-head-size);
  display: block;
  background: #404;
}

.below-mask-box {
  padding-top: var(--mask-foot-size);
  display: block;
  background: #404;
}

.box-wrap {
  padding: 30px;
  color: #fff;
}

.qq path {
  fill: #404;
  transform: scale(-1);
}

header .nav-link {
  text-transform: uppercase;
  letter-spacing: 1px;
}

header.fixed {
  animation-timing-function: cubic-bezier(0.78, 0.09, 0.03, 1.01);
  animation-name: fixedAnim;
  animation-duration: 1s;
  z-index: 5;
  top: 0px;
  left: 0px;
  right: 0px;
  box-shadow: rgba(0, 0, 0, 0.11) 0px 5px 16px;
  position: fixed !important;
}

header.fixed ~ #main-wrapper {
  margin-top: 68px;
}

header.fixed {
  background: #fff;
}

body:not(.path-frontpage) .nav-link,
header.fixed .nav-link {
  color: #111;
}

header.fixed .navbar-brand {
  padding-block: 0;
}

header.fixed .navbar-brand img:first-child {
  display: none;
}

header.fixed .navbar-brand img:last-child {
  display: block !important;
}

@keyframes fixedAnim {
  0% {
    top: -150px;
  }

  100% {
    top: 0px;
  }
}

/* swiper */
.swiper-pagination-bullet {
  background-color: #fff;
  opacity: 1;
  border-radius: 50px;
  transition: width 0.35s linear;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--ocean);
  width: 40px;
}

/* link */
.nav.navbar-nav > *:not(:last-child) {
  margin-inline-end: 28px;
}

.nav-link {
  position: relative;
  padding-inline: 0 !important;
  padding-bottom: 4px;
}

.list-inline a::before,
a.nav-link::before {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  border-radius: 50px;
  bottom: 0px;
  left: 0px;
  background-color: var(--white);
  transform-origin: right bottom;
  transition: transform 0.25s ease-out;
  z-index: 1;
}

.list-inline a:hover::before,
a.nav-link:hover::before,
a.nav-link.is-active::before {
  transform: scaleX(1);
  transform-origin: left bottom;
}

a.nav-link.is-active::before,
header.fixed a.nav-link::before {
  background: var(--ocean);
}

/**************/
.footer {
  padding-block-end: 1.5rem;
}

.footer .container {
  padding-block-start: 1rem;
}

.footer > svg {
}

.footer > svg path {
  fill: var(--white);
}

/* banner */

.banner {
  position: relative;
  display: flex;
  height: 240px;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 40px;
}

.banner:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(360deg, #1f46ad, transparent);
  z-index: 2;
}

.banner .container {
  position: relative;
  z-index: 3;
}

.bannerContent {
  position: relative;
  z-index: 1;
  color: #fff;
  height: 100%;
}

.bannerContent * {
  text-shadow: 0px 3px 8px #00000096;
}

.banner img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cr {
  font-size: 70%;
  color: #cacaca;
}

/* project */

.cover-photo {
  position: relative;
  display: flex;
  height: 240px;
  overflow: hidden;
  border-radius: 15px;
}

.cover-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: 50%;
}

.course-details {
  padding: 15px 16px;
  box-shadow: 0 0 18px #00000030;
  border-radius: 15px;
  position: sticky;
  top: 74px;
}

.c-cost {
  color: var(--white);
  background-color: var(--mid-blue2);
  border-radius: 10px;
  padding: 4px 15px;
  font-size: 150%;
  text-align: center;
  margin-bottom: 10px;
  font-family: cursive;
}

.video {
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.c-detail {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #cacaca;
  padding-block: 12px;
}

.c-details > *:last-child {
  border-bottom: 0;
}

.c-detail .field-label {
  display: flex;
  font-size: 82%;
  font-weight: 500;
}

.c-detail .field-label img {
  width: 20px;
  margin-inline-end: 10px;
  filter: grayscale(1);
  opacity: 0.6;
}

.c-detail .field-content {
  font-size: 82%;
  color: #999;
}

.tabs-container {
  margin-top: 25px;
}

.nav.nav-tabs {
  border: 0;
  gap: 10px;
}

.tabs-container .nav-link {
  border-radius: 30px;
  padding: 5px 25px !important;
  display: flex;
  background: #eeeeee;
  font-weight: 400;
  font-size: 92%;
}

.tabs-container .nav-link.active {
  background-color: var(--mid-blue2);
  color: var(--white);
}

.course-main-info h1 {
  border-inline-start: 4px solid var(--ocean);
  padding-block: 0 !important;
  margin-block: 20px 16px;
  padding-inline-start: 10px;
  color: #333;
  font-size: 200%;
}

.course-instructor .views-row {
  display: flex;
  align-items: center;
}

.course-instructor .views-field-title {
  font-weight: 600;
  text-transform: uppercase;
}

.course-instructor .views-row img {
  width: 56px;
  height: 56px;
  border-radius: 200px;
  border: 4px solid #fff;
  box-shadow: 0 0 5px #00000045;
  margin-inline-end: 16px;
}

.course-instructor {
  display: flex;
  padding-block: 14px 0;
  border-top: 1px solid #dedede;
}

.label-detail {
  display: flex;
  font-size: 82%;
  align-items: center;
  margin-inline-start: 17px;
  color: #666;
}

.label-detail img {
  opacity: 0.6;
  width: 20px;
  margin-inline-end: 7px;
  margin-inline-start: 14px;
}

.label-detail > span {
  width: 6px;
  height: 6px;
  background: #bcbcbc;
  border-radius: 20px;
}

.tab-content {
  margin-top: 25px;
}

/* trainee */

.ff-container {
  width: 320px;
  margin-inline: auto;
  position: relative;
}

.ff-container .path {
  position: absolute;
  writing-mode: sideways-lr;
  height: 100%;
}

.ff-container .path span {
  background: #fff;
  padding-inline: 10px;
  position: relative;
}

.ff-container .path:before {
  content: "";
  height: 100%;
  width: 1px;
  background: var(--mid-blue);
  display: flex;
  position: absolute;
  z-index: 0;
  left: 14px;
}

.profile-photo {
  box-shadow: 0 0 20px #00000036;
  border-radius: 500px;
  /* border: 10px solid #fff; */
  width: 200px;
  height: 200px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  background: #fff;
}

.profile-photo::before,
.profile-photo::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  display: flex;
  border-radius: 500px;
}

.profile-photo::before {
  background-color: var(--mid-blue);
  top: -10px;
  left: -5px;
  animation: circle-scale 3s ease-in-out infinite alternate;
}

.profile-photo::after {
  background-color: var(--ocean);
  top: 7px;
  right: -9px;
  animation: circle-scale 3s ease-in-out infinite alternate;
  animation-delay: 1.25s;
}

.certified {
  position: absolute;
  border-radius: 100px;
  width: 38px;
  height: 38px;
  bottom: 4px;
  padding: 7px;
  position: absolute;
  inset-inline: 0;
  margin-inline: auto;
  /* background: linear-gradient(45deg, #ffb100, #fff900); */
  display: flex;
  justify-content: center;
  background: linear-gradient(45deg, var(--mid-blue), var(--ocean));
}

.certified img {
  border-radius: 0 !important;
  filter: invert(1);
}

@keyframes circle-scale {
  from {
    transform: scale(0.9);
  }

  to {
    transform: scale(1.025);
  }
}

.profile-photo img {
  border-radius: 500px;
}

.trainee-name {
  font-size: 200%;
  text-transform: uppercase;
  margin-top: 22px;
  margin-bottom: 15px;
}

.certified-dev {
  display: inline-flex;
  background: linear-gradient(45deg, var(--mid-blue), var(--ocean));
  color: #fff;
  border-radius: 35px;
  padding-block: 2px;
  padding-inline: 14px 16px;
  margin-bottom: 15px;
  font-size: 82%;
  text-transform: uppercase;
  align-items: center;
}

.certified-dev img {
  width: 22px;
  margin-inline-end: 10px;
  filter: invert();
  margin-block: 4px;
}

.trainee-profile {
  display: flex;
  margin-bottom: 8px;
}

.trainee-profile > *:first-child {
  margin-inline-end: 8px;
  font-weight: 500;
}

.trainee-profile > *:last-child {
  color: var(--mid-blue);
}

.trainee-profile .social-icons {
  margin-inline: 0;
  gap: 10px;
}

.trainee-profile .social-icons.dark > a {
  margin-inline: 0;
  border: 2px solid transparent;
  transition: all 0.2s linear;
}

.trainee-profile .social-icons.dark > a:hover {
  background-color: var(--white);
  border-color: var(--mid-blue);
  color: var(--mid-blue);
}

.social-icons.dark > a {
  background-color: #333;
  color: #fff;
}
.content-div {
  position: relative;
  z-index: 1;
}
/* floated */

.floated {
  position: absolute;
  opacity: 0.2;
}

/* abs-div */
.abs-div {
  position: absolute;
  inset-inline: 0;
  top: 30px;
  height: 90vh;
  z-index: 0;
}

.abs-div img {
  width: 100%;
  margin-inline: auto;
  display: flex;
  animation: scale 10s ease-in-out infinite alternate;
}

@keyframes scale {
  from {
    transform: scale(0.915) rotate(-2deg);
  }

  50% {
    opacity: 0.7;
  }

  to {
    transform: scale(0.955) rotate(2deg);
  }
}

.certs {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}
.certs h3 {
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 210%;
}
.certs a {
  padding: 10px 32px;
  display: inline-flex;
  border-radius: 400px;
  margin-block: 6px;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s linear;
  min-width: 400px;
}
.certs a:hover {
  transform: translate(0, -4px);
  box-shadow: 0 0 20px #00000058;
}
.certs .Attendance a {
  color: #fff;
  background: linear-gradient(45deg, #292b32, #646772);
}

.certs .Completion a {
  background: linear-gradient(45deg, #1f46ad, #4a7cff);
  color: #fff;
}

.certs .Recommendation a {
  color: #000000;
  background: linear-gradient(45deg, var(--ocean), #20ffad);
}
.cert-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: 40px;
}
.cert-sep > *:nth-child(1),
.cert-sep > *:nth-child(3) {
  width: 180px;
  height: 1px;
  background: #555;
}
.cert-sep > *:nth-child(2) {
  width: 20px;
  height: 20px;
  border: 2px solid #00e1d9;
  margin-inline: 12px;
  transform: rotate(45deg);

  animation: rotating33 4s linear;
  animation-iteration-count: infinite;
}

@keyframes rotating33 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
