body {
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}
@media only screen and (min-width:300px) and (max-width:780px) {
    body {
        font-size: 13px
    }
}

.header { background-color: #2C2C2C; padding: 10px; }
.header .form-search .form-control {
    padding: 10px 11px;
    border-radius: 1px;
    border: none;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
}
.header .form-search .form-control::placeholder { font-size: 13px }
.header .form-search .form-group { position: relative }
.header .form-search .form-group span {
    position: absolute;
    right: 12px;
    top: 8px;
    color: #9a9a9a;
}
.header .col-lg-8 { margin: auto }
.header ul li {margin-right: 10px}
.header ul li a {
    width: 40px;
    height: 40px;
    display: inline-block;
    border-radius: 50%;
    padding: 9px;
    text-align: center;
    color: #fff;
    transition: all 0.5s ease-in-out;
}
.header ul li:first-of-type a {
    background-color: #3b5998
}
.header ul li:nth-of-type(2) a {
    background-color: #55acee;
}
.header ul li:nth-of-type(3) a {
    background-color: #0077b5
}
.header ul li:last-of-type a {
    background-color: #b31217
}
.header .col-lg-2 {margin: auto}
.header .btn, .btn-register {
    color: #ffffff;
    font-size: 13px;
    border: 1px solid;
    border-radius: 100px;
    background-color: #ed1b24;
    border: none;
    padding: 8px 40px;
    box-shadow: 0 3px 3px #af080f;
    margin-left: 10px
}
.header .modal .form-register .form-control {
    font-size: 13px;
    padding: 10px 20px;
    margin-bottom: 20px;
}
.header .modal .form-register .text-area {resize: none}
.header .btn-lang {
    background-color: transparent;
    color: #929191;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: none
}
.top-new {
    background-color: #2c2c2c;
    color: #fff;
    padding: 6px;
    position: relative;
}
.top-new h5 {
    background-color: #d03b3b;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    height: 102%;
    padding: 10px;
    z-index: 1000;
    font-size: 17px;
    -webkit-clip-path: polygon(50% 0%, 100% 44%, 54% 100%, 0 98%, 0 0);
    clip-path: polygon(89% 0%, 100% 48%, 89% 100%, 0 98%, 0 0);
    overflow: hidden;
}
.top-new a {
    color: #fff;
}
/* End Header */

@media only screen and (min-width:300px) and (max-width:780px) {
    .header ul { margin: 10px 0 !important;justify-content: center !important}
    .header .btn-register {
        margin: auto;
        display: table;
    }
    .slider, .carousel-inner {
        height: 28vh !important;
    }
    .about {text-align: center !important}
    .about .p-0{
       padding: auto !important
    }
    .about .btn {width: auto !important }
    .about img {margin-bottom: 10px}
    .services  {padding: 10px 0 !important}
    .services .btn {width: auto !important}
    .courses {padding: 10px 0 !important}
    .courses .card {height: 100% !important}
    .courses .btn {width: auto !important}
    .contact {padding: 10px 0 !important}
    .contact .form .form-control {width: 100% !important;display: block !important}
    .footer {padding: 10px 0 !important}
    .navbar .navbar-nav {
        text-align: right;
        padding: 0;
    }
    .navbar-toggler span {color: #fff}
    .courses-page {padding: 10px 0 !important}
    .courses-page .col-lg-4 {margin-bottom: 15px}
    .services-page {padding: 10px 0 !important}
    .services-page .col-lg-4 {margin-bottom: 15px}
    .about-us {padding: 10px 0 !important}
    .about-us .box {margin-bottom: 10px}
    .contact-us {padding: 10px 0 !important}
    .courses-details {padding: 10px 0 !important}
    .gallary  {padding: 10px 0 !important}
    .gallary img:hover {transform: scale(1) !important}
    .services-details {padding: 10px 0 !important}
}

/* Start Navbar */
.navbar {
    background-color: #ed1b24;
    border-bottom: 4px solid #000;
}
.navbar .navbar-nav .nav-link {
    color: #fff;
    font-size: 16px;
    margin-left: 15px;
}
.navbar .navbar-nav .nav-item {position: relative}
.navbar .navbar-nav .nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background-color: #fff;
    width: 100%;
    height: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease
}
.navbar .navbar-nav .nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #fff;
    width: 100%;
    height: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease
}
.navbar .navbar-nav .nav-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(40px);
}
.navbar .navbar-nav .nav-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-40px);
}
/* Start Slider */
.slider, .carousel-inner {
    height: 79vh;
}
.slider .carousel .carousel-control-prev span {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #222;
    padding: 13px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
}
.slider .carousel .carousel-control-next span {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #222;
    padding: 13px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
}
.slider .carousel .carousel-indicators li {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #000;
}
.slider .carousel .carousel-indicators li.active {
    background-color: #000
}

/* Start About */
.about h3 {
    font-weight: bold;
    font-size: 33px;
    padding: 10px 0;
    text-transform: uppercase;
    position: relative
}
.about h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #b31217;
}
.about p {
    color: #000000;
    line-height: 1.9;
    font-weight: bold;
}
.about .btn {
    background-color: #ed1b24;
    color: #fff;
    padding: 9px 48px;
    border-radius: 2px;
    box-shadow: inset 0 0px 10px #820005;
    transition: all 0.3s ease-in-out;
    width: 30%;
    border-radius: 100px;
    border: 1px solid #ff2d2d;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
}
.about .btn:hover {
    background-color: #C50815;
    border-radius: 100px
}
.about .container-fluid {
    padding-left: 0 !important;
}

/* Start Service */
.services {
    background-color: #fbfbfb
}
.services .box .icon img {
    border-radius: 50%;
    border: 9px solid #ff000096;
}
.services h3 {
    position: relative;
    display: inline-block
}
.services h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #b31217;
}
.services .box .details p {
    font-size: 16px;
    line-height: 1.8;
    color: #000;
}
.services .btn {
    background-color: #ed1b24;
    color: #fff;
    padding: 9px 48px;
    border-radius: 2px;
    box-shadow: inset 0 0px 10px #820005;
    transition: all 0.3s ease-in-out;
    width: 20%;
    border-radius: 100px;
    border: 1px solid #ff2d2d;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;  
}
.services .btn:hover {
    background-color: #C50815;
    border-radius: 100px
}


/* Start Courses */
.courses .card .card-body a {
    color: #ed1b24;
    font-weight: bold;
    font-size: 20px;
    padding: 7px 0;
    display: inline-block;
    text-decoration: none
}
.courses .card {
    background-color: #ffffff;
    border: none;
    height: 700px;
    border: 1px solid #ececec;
    box-shadow: 0 4px 10px #efefef;
    text-align: center
}
.courses .card .card-body p {
    color: #000;
    line-height: 1.9;
}
.courses h3 {
    position: relative;
    margin: auto;
    display: table;
}
.courses h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #b31217;
}
.courses .owl-carousel .owl-stage-outer {padding: 8px !important}

.owl-carousel  .owl-prev, .owl-next {
    position: absolute;
    left: -5%;
    top: 37%;
    background-color: transparent !important;
    width: 35px;
    height: 40px;
    color: #020202 !important;
    font-size: 24px !important;
    box-shadow: none;
    outline: none
}

.owl-carousel .owl-next {
    right: -5%;
    left: -5% !important;
    box-shadow: none;
    outline: none
}

.courses .btn {
    background-color: #ed1b24;
    color: #fff;
    padding: 9px 48px;
    border-radius: 2px;
    box-shadow: inset 0 0px 10px #820005;
    transition: all 0.3s ease-in-out;
    width: 20%;
    border-radius: 100px;
    border: 1px solid #ff2d2d;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;  
}
.courses .btn:hover {
    background-color: #C50815;
    border-radius: 100px
}


/* Start Footer */
.footer {
    background-image: url('../img/footer-bg.jpg');
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.58);
    background-blend-mode: overlay;
    background-position: center;
    color: #fff;
    font-size: 14px
}

.footer ul li {
    margin-bottom: 15px
}
.footer ul li a {
    color: #fff;
    text-decoration: none
}
.end-footer {
    background-color: #000;
    color: #fff
}
.end-footer p a {
    color: #fff;
    text-decoration: none
}

.about-us h3 {
    color: #ed1b24;
    font-weight: bold;
    padding: 10px 0;
}
.about-us p {
    color: #000000;
    font-size: 20px;
}
.about-us .box {
    border: 1px solid #f1f1f1;
    padding: 10px;
    box-shadow: 0 2px 4px #efefef;
} 

/*Start Contact us */
.contact-us h3 {
    color: #ed1b24;
    font-weight: bold;
    padding: 20px 0;
    border-bottom: 2px solid #f00;
    display: inline-block;
}
.contact-us p {
    color: #676767;
    font-size: 21px;
    line-height: 1.8;
}

.courses-page .card {
    height: 100%
}
.courses-page .card .card-body .btn {
    background-color: #000;
    color: #fff;
    width: 100%;
    padding: 10px;
}
.courses-page .card .card-body h3 {
    color: #ed1b24;
    font-weight: bold;
    font-size: 22px;
}
.courses-details .content {
    font-size: 20px;
    color: #000;
} 

/* Services page */
.services-page .card {
    border: none;
    box-shadow: 0 1px 4px #dcdcdc;
}
.services-page .card .card-body .btn {
    display: inline-block;
    background-color: transparent;
    color: #ed1b24;
    border: 1px solid;
    padding: 7px 50px;
}
.services-details p {
    color: #424242;
    line-height: 1.8;
    font-size: 16px;
}
.gallary img {transition: all 0.3s ease-in-out;margin-bottom: 20px}
.gallary img:hover {
    transform: scale(1.2);
    z-index: 1;
    position: relative
    
}

.course-cat .btn {
    background-color: #ed1b24;
    color: #fff;
    padding: 5px 40px;
}