/* ===============================
   MOBILE & TABLET (320px – 980px)
================================ */
@media only screen and (min-width:320px) and (max-width:980px) {

    nav.mobile-view,
    section {
        overflow: hidden;
    }

    a#cross,
    nav.mobile-view {
        position: fixed;
        display: none;
    }

    .intro-video-tabs .borrow-tab ul.nav.nav-tabs,
    .logo-slider,
    .web-tabs .borrow-tab,
    h1,
    header {
        padding: 0;
    }

    header ul.menu li {
        display: block !important;
        padding: 15px 30px !important;
        text-align: left;
        transition: .25s;
    }

    #menu-list {
        display: block;
    }

    .mobile-screen {
        position: relative;
        display: block;
    }

    a#cross {
        top: 5px;
        right: 20px;
        font-size: 35px;
        z-index: 9999999999;
        color: #1c1c1c;
        -webkit-transition: .5s;
        transition: .5s;
        animation: heartBeat 2s linear infinite;
    }

    nav.mobile-view {
        background: #fff;
        height: 100%;
        width: 40% !important;
        left: 150%;
        top: 0;
        bottom: 0;
        padding-top: 70px;
        z-index: 99911 !important;
        overflow-y: scroll;
        transition: ease-in-out .8s;
        -webkit-transition: ease-in-out .8s;
    }

    .borrow-tab ul.nav.nav-tabs li,
    .nav-bar {
        padding: 10px 0;
    }

    header nav ul li.dropdown:hover .dropdown-menu {
        left: -10px;
        top: 10px;
        background: #ad511c;
        padding: 10px 0;
        position: inherit;
        margin-bottom: 30px;
    }

    header nav ul li .dropdown-menu a {
        padding: 7px 15px !important;
        font-size: 14px !important;
        text-align: left;
    }

    .nav-bar {
        border-radius: 0;
    }

    .nav-bar ul.menu li a.active {
        color: #fff !important;
    }

    .container {
        width: auto !important;
    }

    h1 {
        font-size: 31px;
        line-height: 30px;
        letter-spacing: 0;
    }

    footer ul.menu li a {
        font-size: 16px;
        line-height: 5px;
        text-align: center;
    }

    footer ul.menu li.f-logo {
        position: relative;
        top: 0;
        left: 0;
        padding-bottom: 19px;
    }

    .main-banner {
        padding: 150px 0 60px;
    }

    .banner-form {
        width: 64%;
        right: -320px;
    }

    .book-box img,
    .m-social img {
        max-width: 80%;
    }

    .book-box {
        margin: 10px 0;
        height: 410px;
        padding: 10px;
    }

    .form-sec .get-started-form.main-form {
        margin: 20px 0;
    }

    span.d-block {
        display: contents !important;
    }

    .input-control {
        width: 100% !important;
    }

    .faq-sec img {
        left: 190px;
        top: -80px;
        max-width: 90%;
    }

    .faq-sec .card-header a {
        line-height: 18px;
        font-size: 14px;
    }

    h5.title {
        letter-spacing: 1px;
        font-size: 13px;
    }

    .form-widget {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        right: -90px;
    }

    .form-chat h3 {
        font-size: 16px;
    }

    .form-chat h4 {
        font-size: 13px;
    }

    .form-widget img {
        margin: 0;
        max-width: 13%;
    }

    .banner-arrow-down {
        margin-top: 25px;
        width: 50px;
        height: 50px;
    }

    .banner-arrow-down:before {
        left: -25px;
        top: -25px;
        padding: 50px;
    }

    .banner-arrow-down i {
        font-size: 21px;
    }

    .m-social::after {
        right: 0;
        width: 50px;
        height: 40px;
        top: 30px;
    }

    .marketing .social-img:after {
        right: 70px;
        top: 12px;
    }

    .marketing .social-img::before {
        right: 90px;
        top: -30px;
        width: 50px;
        height: 43px;
    }

    .m-social::before {
        bottom: 80px;
        width: 50px;
        height: 40px;
    }

    .portfolio {
        text-align: center;
    }

    .portfolio .tab-content [class*="col-md-3"] {
        width: 49%;
        padding: 0 2px;
    }

    .who h3 {
        font-size: 20px;
    }

    .who .intro1::before,
    .who .intro3::before,
    .who .intro5::before {
        left: -13px;
        top: -4px;
        width: 30px;
        height: 30px;
        font-size: 20px;
        padding: 1px 9px;
    }

    .who .intro2::before,
    .who .intro4::before {
        right: -10px;
        top: -2px;
        width: 30px;
        height: 30px;
        font-size: 20px;
        padding: 1px 9px;
    }

    footer {
        padding: 60px 10px 0;
    }

    footer h5 {
        margin: 10px 0 0;
        font-size: 17px;
    }

    .borrow-tab ul.nav.nav-tabs li a {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }

    .service-slide h4,
    .service-slide-two h4 {
        font-size: 12px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .service-slide .item::before,
    .service-slide-two .item::before {
        top: 9px;
        left: -13px;
    }

    .service-slide-two {
        padding: 5px 0;
        transform: rotate(-6deg);
    }

    .service-slide {
        padding: 5px 0;
        transform: rotate(8deg);
    }

    .intro-video-tabs .borrow-tab ul.nav.nav-tabs li {
        padding: 20px 0;
    }
}

/* ===============================
   LAPTOP (980px – 1400px)
================================ */
@media only screen and (min-width:980px) and (max-width:1400px) {

    .nav-bar ul.menu li {
        padding: 0 10px;
    }

    .banner-form {
        width: 30%;
        top: 110px;
        height: 500px;
    }

    .service-slide .item::before,
    .service-slide-two .item::before {
        left: 0px;
        top: 10px;
    }

    .service-slide h4,
    .service-slide-two h4 {
        font-size: 15px;
    }

    form h2 {
        font-size: 37px;
    }

    .form-widget {
        top: 330px;
    }
}

@media only screen and (max-width: 600px) {
  .container {
    width: 100%;
    padding: 10px;
  }
}

/* ===============================
    INTRO TEXT ANIMATION
================================ */
#intro-text span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: fadeUp .45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
    INTRO OVERLAY
================================ */
#intro-overlay h2 {
    font-size: 2.2rem;
    line-height: 1.4;
    margin: 0 15px;
}

#intro-overlay a#enter-btn {
    padding: 12px 28px;
    font-size: 1.2rem;
}

/* ===============================
    MEDIA QUERY ≤ 1440px
================================ */
@media (max-width: 1440px) {

    #intro-overlay #intro-text {
        font-size: 28px !important;
    }

    .testmonial .self-pub .date {
        font-size: 13px !important;
    }

    div#intro-overlay {
        height: 70% !important;
    }

    .banner-form {
        width: 26%;
        height: fit-content;
        overflow-y: hidden;
    }

    .owl-nav {
        display: flex !important;
        justify-content: space-between;
        bottom: -15px !important;
    }

    .owl-carousel .owl-nav button.owl-next {
        position: unset !important;
        right: 0 !important;
        display: block !important;
        margin: unset !important;
    }

    .owl-carousel .owl-nav button.owl-prev {
        position: unset !important;
        left: 0 !important;
        display: block !important;
    }
}

/* ===============================
    MEDIA QUERY ≤ 1024px
================================ */
@media (max-width: 1024px) {

    #intro-overlay #intro-text {
        font-size: 24px !important;
    }

    .banner-form {
        width: 29%;
        height: fit-content;
    }

    form h4 {
        font-size: 21px !important;
    }

    .book-box p {
        font-size: 11px;
        line-height: 19px;
    }

    .nav.nav-tabs {
        flex-wrap: wrap;
    }

    .nav.nav-tabs a {
        display: block;
        padding: 10px 8px;
        font-size: 15px;
    }
}

/* ===============================
    MEDIA QUERY ≤ 768px
================================ */
@media (max-width: 768px) {

    .nav-bar,
    header {
        position: static !important;
    }

    #intro-overlay h2 {
        font-size: 15px !important;
        line-height: 1.4 !important;
        padding: 48px !important;
    }

    #intro-overlay a#enter-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    section#intro-video-section {
        height: 40vh !important;
    }

    video#intro-video {
        height: 65% !important;
    }

    div#intro-overlay {
        height: 70% !important;
    }

    a#enter-btn {
        bottom: 53px !important;
    }

    .book-box img,
    .m-social img {
        max-width: 75% !important;
    }

    .book-box img {
        height: 55% !important;
    }

    header {
        top: auto !important;
        z-index: auto !important;
    }
}

/* ===============================
    MEDIA QUERY 360px – 560px
================================ */
@media (max-width: 560px) and (min-width: 360px) {

    section#intro-video-section {
        height: 59vh !important;
    }

    #intro-overlay #intro-text {
        font-size: 13px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        text-wrap: auto;
    }

    section#intro-video-section a#enter-btn {
        font-size: 10px !important;
        padding: 10px 20px !important;
    }

    section.main-banner a.btn.btn-orange {
        margin-bottom: 0;
    }

    section.main-banner i.fal.fa-long-arrow-right {
        font-size: 15px;
    }

    .banner-form {
        width: 64% !important;
    }

    .custom-play-icon::before {
        left: -29px !important;
        top: -28px !important;
        padding: 59px !important;
    }
}

@media (max-width: 768px) {
    .custom-popup-content { 
        flex-direction: column; 
        max-width: 95%; 
    }

    .popup-image-side { 
        display: none; 
    }

    .popup-form-side {
        padding: 30px 20px; 
    }

    .popup-heading { 
        font-size: 22px; 
    }
}

@media (max-width: 768px) {
    .new-play-inner {
        padding: 8px 15px;
    }

    .play-text {
        font-size: 16px;
        margin-right: 10px;
    }

    .play-icon {
        width: 45px;
        height: 45px;
    }

    .play-icon i {
        font-size: 18px;
    }
}