/* For Tablet. */
@media (max-width: 1024px) {

.dash .digit {
  font-size: 3em;
  height: 48px;
}
.minutes_dash .digit:first-child,
.seconds_dash .digit:first-child {
  margin-left: 16px;
}
.mg-clock {
  border: 3px solid #333;
  height: 95px;
  width: 95px;
}
.mg-clock .mg-clock-hour {
  left: 0px;
}
.mg-clock .mg-clock-hour::before {
  height: 22px;
  top: 23px;
}
.mg-clock .mg-clock-minute::before {
  height: 28px;
  top: 46px;
}
.mg-clock .mg-clock-second::before {
  height: 40px;
  top: 43px;
}
.mg-single-counter {
  padding: 49px 0;
}
.mg-single-heading p {
  width: 55%;
}
.mg-single-portfolio img {
  display: block;
  width: 100%;
}
.mg-subscribe-now::before {
  right: 106%;
  top: -225%;
  -webkit-transform: rotate(-39deg);
  transform: rotate(-39deg);
}
.mg-subscribe-now::after {
  left: 106%;
  top: -225%;
  -webkit-transform: rotate(39deg);
  transform: rotate(39deg);
}
.mg-contact-form {
  width: 70%;
}
.mg-social-lists {
  width: 100%;
}
.md-modal {
  width: 65%;
}



}

 
/* For Mobile. */
@media (max-width: 767px) {

.mg-logo a img {
  width: 140px;
}
.mg-hero-heading h1 {
  margin: 45px 0;
  font-size: 3em;
}
.mg-hero-heading h2 {
  font-size: 1.5em;
}
.mg-single-counter {
  padding: 37px 0;
}
.mg-counter-body {
  position: relative;
}
.clock-col {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: calc(100% + 30px);
}
.mg-single-counter::after {
  display: none;
}
.mg-about-us {
  margin-top: 20px;
}
.mg-single-heading h2 {
  font-size: 3em;
}
.mg-single-heading .heading-bg {
  font-size: 9em;
}
.mg-single-heading p {
  width: 65%;
  margin-top: 25px;
}
.mg-contact-form {
  width: 80%;
}
.mg-subscribe-form form {
  width: 60%;
}
.mg-subscribe-now {
  padding-bottom: 88px;
}
.mg-social-lists li {
  margin: 12px 0;
}
.mg-single-heading h2::after {
  right: -80px;
}
.mg-single-counter {
  padding: 30px 0 0;
}
.mg-btn {
  margin-top: 45px;
}
footer.mg-hero-footer .mg-footer-credit p {
  text-align: center;
}
.mg-hero-social-lists {
  text-align: center;
  margin-top: 10px;
}
.mg-hero-content {
  top: 43%;
  z-index: 2;
}
.mg-hero-header,
.mg-bg-video-wrapper,
#mg_youtube_video {
  min-height: 640px;
}
body.mg_onclick .mg-single-heading p {
  margin: 5px auto auto;
  width: 100%;
}
body.mg_onclick .mg-modal footer.mg-hero-footer {
  z-index: 2;
  position: relative;
}
.md-content > div {
  font-size: 1.15em;
  font-weight: 300;
  margin: 0;
  padding: 15px 0;
  position: relative;
  z-index: 1;
}
.md-content h3 {
  font-size: 1.7em;
  padding: 0.4em 0;
  width: 100%;
}
.md-modal {
  width: 90%;
  padding: 30px;
}
.md-modal {
  bottom: 10px;
  left: 50%;
  outline: 0 none;
  overflow-x: auto;
  overflow-y: scroll;
  position: fixed;
  right: 0;
  top: 30px;
  z-index: 2000;
  -webkit-transform: translateX(-50%) translateY(0);
  -moz-transform: translateX(-50%) translateY(0);
  -ms-transform: translateX(-50%) translateY(0);
  transform: translateX(-50%) translateY(0);
}
.md-content {
  margin-bottom: 30px;
  padding: 35px 25px;
}


}


@media (max-width: 480px) {

.mg-main-counter {
  -webkit-transform: translateY(0%);
  transform: translateY(0%);
}
.mg-single-heading p {
  margin-top: 25px;
  width: 100%;
}
.mg-single-heading h2::before,
.mg-single-heading h2::after {
  display: none;
}
.mg-subscribe-form form {
  width: 100%;
}
.mg-subscribe-now::before,
.mg-subscribe-now::after {
  display: none;
}
.mg-contact-form {
  width: 95%;
}




}