/*-------------- media section ---------------*/
@media screen and (max-width:767px) {
  #sidebar{
    margin-top: 30px;
  }
  .search-post, .archive-inner h1, .archive-inner h2, .archive-inner h3, .archive-inner h4, .archive-inner h5, h1.entry-title{
    text-align: center;
  }
  .media, .media img {
    display: block !important;
    text-align: center;
    margin: 0 auto !important;
  }
  .media img, .media i {
    margin-bottom: 10px;
    margin-right: auto !important; 
    margin-left: auto !important; 
    padding: 0 !important;
  }
  .media-body {
    display: block !important;
  }
  .top_meta_content .button {
    display: inline-block;
    margin-top: 20px;
  }
  .top_meta_content .media, .top_meta_content .button {
    padding: 0;
  }
  #topbar .button a{
    padding: 18px 15px;
  }
  .top_meta_content {
    text-align: center;
  }
  .slider-text .button {
    margin-top: 6px !important;
  }
  .home.page-template .site-header {
    position: unset;
  }
  section#topbar {
    background: #ec4933;
    padding: 0;
  }
  #topbar .content {
    text-align: center;
  }
  #topbar .email p i {
    color: #fff;
  }
  #header .social-icons a {
    color: #000;
  }
  .logo , #footer {
    text-align: center!important;
  }
  .logo {
    margin-bottom: 20px;
  }
  #topbar .button {
    text-align: center;
    margin: 20px 0;
  }
  #slider a.btn-1 {
    margin-right: 5px;
    margin: 0;
    padding: 7px 19px;
  }
  #slider .slider-text h1 {
    font-size: 16px;
  }
  .section_main_head {
    padding: 15px !important;
    text-align: center;
  }
  #services .box .post{
    display: none;
  }
  #services .box .box-content{
    justify-content: center;
  }
  #services .box .title:after, #feature_slider .feature_box .title:after, #counter .counter_box h6::after, #cases .our-case .case-content .post-title:after{
    margin: 0 auto;
  }
  #feature_slider{
    margin-top: 20px;
  }
  #feature .button {
    text-align: center;
    margin-top: 20px;
  }
  #slider .owl-nav button {
    display: none;
  }
  #slider p , #practice .box .post {
    display: none;
  }
  #about .heading , #services .heading , #team .heading , #our-blog .heading , #practice .heading, #feature_slider .feature-content, .blog-btn, .test_btn, #testimonials .bar, #counter .counter_box h6, .team_btn, #home_contact .overlap, #cases {
    text-align: center;
  }
  #practice .theme_button{
    writing-mode: horizontal-tb;
    font-size: 13px;
  }
  #home_contact .flid{
    padding: 0 15px !important;
  }
  #home_contact .left_img {
    margin-bottom: 10px;
  }
  #practice .prac_btn{
      text-align: center;
      margin-top: 10px;
  }
  #practice{
    padding: 30px 0;
  }
  #testimonials .bar {
    text-align: center;
  }
  #testimonials .name{
    font-size: 15px;
  }
  #testimonials .owl-dots{
    position: unset;
    margin-bottom: 20px;
  }
  .owl-carousel .owl-item .partner-img img {
    width: auto;
    margin: 0 auto;
  }
  #about .abt_bg {
    position: unset;
    box-shadow: unset;
    padding: unset;
  }
  #about .about-content img {
    width: 100%;
    margin: 10px 0;
  }
  #feature .text , #feature h6.title ,#feature .days {
    text-align: center;
  }
  #testimonials .content img {
    margin: 0 auto;
  }
  #practice .button a {
    writing-mode: unset;
  }
  #counter .counter_box .title , #testimonials .text {
    text-align: center;
  }
  #home_contact .overlap {
    position: unset;
  }
  #home_contact input , #home_contact textarea {
    text-align: center;
    max-width: unset;
    width: 100%;
  }
  .is-layout-flex.wp-block-buttons {
    display: block;
  }
  .home.page-template .site-header {
    position: unset;
  }
  .custom-social-icons a:last-child {
    margin: 0;
  }
  #topbar .email p i {
    color: #fff;
  }
  #header .social-icons a {
    color: #000;
  }
  .logo {
    margin-bottom: 20px;
  }
  #slider .slider-text {
    position: absolute;
    right: 0;
    width: 90%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
    text-align: center;
  }
  #about .abt_bg {
    position: unset;
    box-shadow: unset;
    padding: unset;
  }
  #about .about-content img {
    width: 100%;
    margin: 10px 0;
  }
  #feature h6.title ,#feature .days {
    text-align: center;
  }
  #testimonials .content img {
    margin: 0 auto;
  }
  #practice .button a {
    writing-mode: unset;
  }
  #testimonials .text {
    text-align: center;
  }
  #home_contact .overlap {
    position: unset;
  }
  #home_contact input , #home_contact textarea {
    text-align: center;
    max-width: unset;
    width: 100%;
  }
}
@media screen and (min-width: 768px) and (max-width:991px) {
  .top_meta_content .media, .top_meta_content .button{
    padding-right: 9px;
  }
  #topbar .email_text{
    font-size: 13px;
  }
  #topbar .button a {
    padding: 14px 9px 8px 9px;
  }
  .about-content .media {
    margin-bottom: 10px;
  }
  #testimonials .content img{
    text-align: center;
    margin: 0 auto;
  }
  #cases, #home_contact .overlap{
    text-align: center;
  }
  .home.page-template .site-header {
    position: unset;
  }
  section#topbar {
    background: #ec4933;
    padding: 0;
  }
  #topbar .email p i {
    color: #fff;
  }
  #topbar .email p {
    text-align: left;
  }
  #topbar .phone p {
    text-align: right;
  }
  #header .social-icons a {
    color: #000;
  }
  #slider .slider-text {
    position: absolute;
    right: 10%;
    width: 75%;
    left: 10%;
    top: 35%;
  }
  #slider .slider-text h1 {
    font-size: 20px;
    line-height: 30px;
  }
  #about .abt_bg {
    position: unset;
    box-shadow: unset;
    padding: 0;
  }
  #about .left_img img {
    width: 100%;
  }
  #practice .theme_button{
    writing-mode: horizontal-tb;
    font-size: 13px;
  }
  #home_contact .overlap {
    position: unset;
  }
  .prac_btn {
    text-align: center;
    margin-top: 20px;
  }
  #home_contact input[type="text"] ,#home_contact input[type="email"] ,#home_contact input[type="tel"] {
    width: 100%;
  }
  #practice .button , #about .button {
    margin-top: 20px;
  }
  #practice .tab-head{
    margin: 0 auto;
    text-align: center;
    max-width: 302px;
  }
  .tab-content {
    margin-top: 20px;
  }
  #feature h6.title , #feature .days {
    text-align: center;
  }
  #practice .button a {
    writing-mode: unset;
  }
  #testimonials .test_btn {
    text-align: center;
  }
  #cases .our-case .case-content .description, #cases .our-case .case-content a{
    display: none;
  }
  #cases .our-case .case-content .post-title:after{
    margin: 0 auto;
  }
}
@media only screen and (min-width: 310px) and (max-width: 1024px) {
  .main-navigation ul ul{
    background-color: transparent !important;
  }
  .pencil-icon {
    display: none;
  }

  .toggle-nav.mobile-menu {
    display: block;
  }
  a.closebtn.mobile-menu {
    display: block;
  }
  .postbtn a {
    padding-left: 10px;
  }
  .main-navigation ul ul {
    background-color: transparent;
    position: relative;
  }
  .main-navigation ul ul li, .menubar.scrolled .main-navigation ul ul li {
    text-align: left;
    border-bottom: none;
  }
  .toggle-nav {
    display: none;
    position: relative;
    float: left;
    cursor: pointer;
    margin-right: 0;
  }
  .toggle-nav i {
    font-size: 20px;
    color: #fff;
  }
  #header{
    padding: 10px 0;
  }
  .sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999999;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
  }
  .sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    color: #818181;
    display: block;
    transition: 0.3s;
  }
  .sidenav a:hover {
    color: #ec4933;
  }
  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    display: block;
    color: #ffffff;
  }
  .sidenav #site-navigation {
    width: 100%;
  }
  iframe {
    width: 100%;
    height: auto;
  }
  .main-navigation ul li {
    display: block;
  }
  .innermenubox {
    position: static;
  }
  .main-navigation .menu {
    float: none;
    text-align: center;
  }
  .main-navigation ul:hover ul {
    display: block;
  }
  .main-navigation ul ul {
    display: none;
  }
  .main-navigation .menu > ul > li.highlight {
    background: transparent !important;
  }
  .menu > ul > li:hover:before,
    .menu > ul > li.current_page_item:before,
    .menu > ul > li.current-menu-item:before {
    display: none;
  }
  .sf-arrows .sf-with-ul:after {
    border-top-color: #a2a2a2;
  }
  .toggle i.fa.fa-bars,.toggle i.fa.fa-times {
    float: right;
    color: black;
  }
  .menubar .nav ul {
    width: 100%;
    margin-top: 0;
  }
  .menubar .nav ul li,
    .menubar.scrolled .main-navigation li {
    border-top: 1px #303030 solid;
    display: block;
    text-align: left;
    float: none;
    width: 100%;
  }
  .nav ul li a {
    padding: 10px 10px;
    display: block;
    color: #ffffff;
    text-align: left;
  }
  .nav ul li a:hover {
    color: #ec4933;
  }
  .nav ul li ul,
    .nav ul li ul ul {
    display: block !important;
    left: 0;
  }
  section, #cases, section#partner, section#team {
    padding: 30px 0;
  }
  .owl-carousel .owl-item .partner-img img {
    width: auto;
    margin: 0 auto;
  }
}

@media screen and (min-width: 992px) and (max-width:1024px) {
  #cases .our-case .case-content{
    padding: 6px 18px;
  }
}
@media screen and (min-width: 992px) and (max-width:1200px) {
  #practice .theme_button{
    writing-mode: horizontal-tb;
  }
  .prac_btn {
    text-align: center;
    margin-top: 20px;
  }
  section#topbar , section#slider {
    padding: 0;
  }
  .home.page-template .site-header {
    top: 0;
  }
  #home_contact .overlap {
    top: 2%;
  }
  #practice li.nav-item {
    padding: 5px 5px;
  }
  .toggle-nav i {
    color: #fff;
  }
  #slider .slider-text h1 {
    font-size: 20px;
    line-height: 30px;
  }
}