/* Mobile Responsive*/

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #main-content {
    border-left: 1px solid #eee;
  }

}

@media (max-width: 991.98px) {
  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    background: #4a6741;
    border-radius: 10px;
    padding: 0rem;
    margin-top: 1em;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin-bottom: 5px;
    transition: background 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-arrow {
    transform: none !important;
  }

  .hero-section {
    height: 400px;
  }

  .hero-section .carousel-item {
    height: 400px;
  }
}




@media (max-width: 768px) {
  .obituary-image {
    height: 200px;
  }

  .obituary-content {
    padding: 1.25rem;
  }
  
}


@media (max-width: 767.98px) {
  .hero-section {
    height: 300px;
  }

  .hero-section .carousel-item {
    height: 300px;
  }

  .carousel-caption {
    padding: 1rem;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .quick-link-card {
    margin-bottom: 1rem;
  }
}


@media (max-width: 576px) {
  .main-service .service-card p {
    margin: 0;
    font-size: 0.9rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .main-service .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .top-info {
    display: block;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .mail-info {
    display: block;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .social-icons {
    text-align: center;
  }

  .contact-cta {
    text-align: center;
  }

  .send-flower-home .section-title {
    margin: 1em 0 0;
  }

  .recent-obituaries-section .card {
    width: 260px;
    min-width: 260px;
    background: #fff;
    margin: 0 25px;
    min-height: 300px;
  }

  .footer {
    text-align: center;
  }

  .foot-info {
    display: block;
  }

  .flo-shop {
    width: 100%;
  }



}

@media (max-width: 425px) {
  .top-bar .top-info.d-flex {
    display: block !important;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .main-service .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .main-service .service-card {
    padding: 1rem;
  }

  .send-flower-home {
    margin-top: 1em;
  }
}


@media (max-width: 390px) {
  .recent-obituaries-section .card {
    width: 255px;
    min-width: 255px;
    background: #fff;
    margin: 0 35px 0 0;
    min-height: 302px;
  }
}