/*-----------------------------------
    Extra small devices (phones, less than 576px)
------------------------------------*/
@media (max-width: 575.98px) {

  header {
    background-color: rgba(212, 192, 129);
}

  /* Hero */
  .hero .slide-content {
    min-height: 100vh;
  }
  .hero .slide-content h1 {
    font-size: 2rem !important;
    margin-left: 0 !important;
    margin-top: 70px;
  }
  .hero .slide-content p {
    padding: 15px 12px;
    font-size: 14px;
  }
  .hero .slide-content .btn {
    margin-top: 20px;
  }
  .hero .slide-content .btn:last-child {
    margin-left: 8px;
    margin-top: 8px;
  }

  /* Inner page hero banners */
  .hero1,
  .hero-services,
  .hero-gallery,
  .hero-contact {
    height: 260px;
  }
  .hero1 .single-slide,
  .hero-services .single-slide,
  .hero-gallery .single-slide,
  .hero-contact .single-slide {
    margin-top: 6em !important;
  }
  .hero1 h1,
  .hero-services h1,
  .hero-gallery h1,
  .hero-contact h1 {
    font-size: 1.8rem !important;
  }
  .hero1 p,
  .hero-services p,
  .hero-gallery p,
  .hero-contact p {
    display: none;
  }
  .hero1 .btn,
  .hero-services .btn,
  .hero-gallery .btn,
  .hero-contact .btn {
    font-size: 12px;
    padding: 6px 12px;
    margin-top: 8px;
    margin-right: 4px;
  }

  /* Services "Why Choose Us" */
  .services {
    padding: 50px 0 30px;
  }
  .services .media {
    margin: 15px 0;
  }

  /* Featured / About section */
  .featured-img {
    height: 220px;
    margin-top: 0;
    margin-bottom: 20px;
  }
  .featured-big {
    max-width: 68%;
  }
  .featured-small {
    max-width: 52%;
  }
  .featured .btn {
    margin-top: 20px;
  }
  .featured p {
    margin: 20px 0 25px;
  }

  /* Recent Posts / Services cards */
  .recent-posts {
    padding: 40px 0 60px;
  }
  .post-thumb {
    flex: none !important;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0 !important;
  }
  .post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .single-rpost {
    margin: 20px 0 0;
  }
  .recent-posts .btn {
    margin-top: 30px;
  }

  /* Pricing table */
  .pricing-table {
    padding: 50px 0 40px;
  }
  .single-pricing {
    margin-top: 15px;
  }
  .single-pricing:hover {
    margin: 15px 0 0;
  }

  /* Tables */
  table td {
    font-size: 12px;
    padding: 5px 4px;
    word-break: break-word;
  }

  /* CTA */
  .cta-content {
    padding: 25px 15px 55px;
    text-align: center;
  }
  .cta-content h2 {
    font-size: 1.2rem;
  }
  .cta-content p {
    font-size: 14px;
  }
  .cta-content .subscribe-btn {
    margin-right: 0;
    margin-top: 15px;
  }

  /* Testimonials */
  .testimonials {
    padding: 60px 0 50px;
  }
  .testimonials p {
    font-size: 14px;
    line-height: 22px;
  }

  /* Footer */

  .footer{
    text-align: center;
  }
  .footer-widgets {
    padding: 50px 0;
  }
  .single-widget .widget-tiltle {
    margin-bottom: 20px;
  }
  .footer-widgets .media {
    flex-direction: column;
    align-items: center;
  }
  .footer-widgets .media i {
    margin-bottom: 6px;
  }
  .footer-widgets .media .media-body {
    margin-left: 0 !important;
    text-align: center;
  }
  .foot-note {
    padding: 20px 0;
    text-align: center;
  }

  /* Contact page */
  .contact iframe {
    height: 280px;
  }
}

/*-----------------------------------
    Stacked breakpoint fix — md and below (< 992px)
    Applies when featured image section is stacked under the text
------------------------------------*/
@media (max-width: 991.98px) {
  .featured-img {
    height: 300px;
    margin-top: 10px;
    margin-bottom: 30px;
  }
  .featured-big {
    max-width: 65%;
  }
  .featured-small {
    max-width: 50%;
  }
}

/*-----------------------------------
    Small devices (landscape phones, 576px and up)
------------------------------------*/
@media (min-width: 576px) {
    .top-header {
        padding: 15px 0 0;
    }
  .hero .slide-content {
    min-height: 700px;
  }
  .hero .slide-content h1 {
    font-size: 2.5rem !important;
    margin-top: 100px;
  }
  .recent-posts .row .col-lg-6:nth-of-type(odd) .post-thumb {
    margin-top: 0;
    margin-left: 25px;
  }
  .recent-posts .row .col-lg-6:nth-of-type(even) .post-thumb {
    margin-bottom: 0;
    margin-right: 25px;
  }
}

/*-----------------------------------
    Medium devices (tablets, 768px and up)
------------------------------------*/
@media (min-width: 768px) {
  .navbar-brand img {
    width: 100px;
  }
  .navbar-expand-md .navbar-nav .nav-link {
    padding: 8px 10px;
  }
  .navbar-expand-md .navbar-nav .nav-item {
    margin-right: 12px;
  }
  .navbar-collapse .nav-link {
    font-size: 0.875rem;
    position: relative;
  }
  .navbar-collapse .nav-link::before {
    content: "\f0d8";
    font-family: FontAwesome;
    color: #fbf5d3;
    position: absolute;
    bottom: 7px;
    line-height: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    opacity: 0;
    transition: all 0.35s ease;
  }
  .navbar-collapse .nav-link::after {
    content: "";
    width: 0;
    height: 4px;
    background-color: #fbf5d3;
    position: absolute;
    left: 50%;
    bottom: 0;
    transition: all 0.35s ease;
  }
  .navbar-collapse .nav-link:hover::after {
    width: 100%;
    left: 0;
  }
  .navbar-collapse .nav-link:hover::before {
    opacity: 1;
  }
  .navbar-collapse .search-form {
    padding: 10px;
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
    opacity: 0;
    transition: all 0.35s ease-in-out;
  }
  .navbar-collapse .search-form.show {
    display: block;
    opacity: 1;
  }
  .navbar-collapse .search-form input[type="text"] {
    border: 1px solid #ced4da;
    color: #343a40;
    padding: 1.5313rem 0.625rem;
  }
  .navbar-collapse .search-form .btn {
    margin-top: 0;
  }
  .navbar-collapse .search-form input[type="submit"] {
    border: 1px solid #ced4da;
    margin-left: -1px;
    border-radius: 0;
  }
  .group {
    order: 2;
  }
  .cart,
  .search-icon {
    font-size: 0.875rem;
  }
  .cart:hover,
  .search-icon:hover {
    color: #ee1515;
  }
  .search-icon {
    margin: 0 13px;
    order: 1;
  }
  .hero .slide-content h1 {
    font-size: 3.5rem !important;
  }
  .hero .slide-content br {
    display: block;
  }
  .hero .arr-left,
  .hero .arr-right {
    top: 50%;
  }
  .cta-content {
    border-top-right-radius: 200px;
    border-bottom-left-radius: 200px;
  }
  .cta-content::after {
    border-top-right-radius: 200px;
    border-bottom-left-radius: 200px;
  }
  .cta-content .subscribe-btn {
    align-self: flex-end;
    margin-right: 30px;
  }
}

/*-----------------------------------
    Large devices (desktops, 992px and up)
------------------------------------*/
@media (min-width: 992px) {
  .navbar-expand-md .navbar-nav .nav-link {
    padding: 8px 13px;
    font-size: 20px;
  }
  .navbar-expand-md .navbar-nav .nav-item {
    margin-right: 22px;
  }
  .hero .slide-content {
    min-height: 100vh;
  }
  .hero .slide-content h1 {
    font-size: 4.5rem !important;
  }
  .hero .slide-content br {
    display: block;
  }
  .hero .arr-left,
  .hero .arr-right {
    top: 50%;
  }
  .title h1 {
    font-size: 48px;
  }
  .featured-img {
    height: 530px;
    margin-top: 60px;
    margin-bottom: 0;
  }
  .featured-big {
    max-width: none;
  }
  .featured-small {
    max-width: none;
  }
}

/*-----------------------------------
    Extra large devices (large desktops, 1200px and up)
------------------------------------*/
@media (min-width: 1200px) {
  .navbar-brand img {
    width: auto;
  }
  .title h1 {
    font-size: 58px;
  }
  .trust .title {
    padding-top: 70px;
  }
  .trust ul {
    padding-bottom: 30px;
  }
  .trust .gallery {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 75px 0;
  }
}
