/* ===== FIXES FOR 738x832 RESOLUTION ===== */
/* Specific fixes for reported issues at 738x832 screen size */

/* Fix for Carousel Image Display Issue */
@media (width: 738px) and (height: 832px), 
       (min-width: 730px) and (max-width: 745px) and (min-height: 825px) and (max-height: 840px) {
  
  /* Carousel Image Positioning Fix */
  .hero-carousel-section .carousel-inner .carousel-item {
    position: relative;
    overflow: hidden;
  }
  
  .hero-carousel-section .carousel-inner .carousel-item img.hero-image {
    position: relative;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 400px; /* Fixed height for this resolution */
    margin: 0;
    padding: 0;
  }
  
  .hero-carousel-section .carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
  }
}

/* Fix for Mobile Menu Toggle Content Issue */
@media (width: 738px) and (height: 832px),
       (min-width: 730px) and (max-width: 745px) and (min-height: 825px) and (max-height: 840px) {
  
  /* Force mobile menu to show properly */
  .mobile-nav {
    display: block !important;
  }
  
  .mobile-nav .collapse.navbar-collapse {
    display: none;
  }
  
  .mobile-nav .collapse.navbar-collapse.show {
    display: block !important;
  }
  
  /* Ensure all navigation items are visible */
  .mobile-nav .nav-menu .nav-item {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Fix dropdown menus */
  .mobile-nav .dropdown-menu {
    position: static !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 1rem;
  }
  
  /* Show dropdown items */
  .mobile-nav .dropdown-item {
    display: block !important;
    padding: 8px 0 !important;
    color: inherit !important;
  }
}

/* Fix for Footer Logo Size Issue */
@media (width: 738px) and (height: 832px),
       (min-width: 730px) and (max-width: 745px) and (min-height: 825px) and (max-height: 840px) {
  
  /* Footer Logo Responsive Fix */
  .footer-logo {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem !important;
  }
  
  /* Footer adjustments */
  .main-footer {
    padding: 2rem 0 !important;
  }
  
  .footer-widget {
    margin-bottom: 1.5rem;
  }
  
  .footer-widget h5.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .footer-widget p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Additional responsive fixes for similar resolutions */
@media (min-width: 720px) and (max-width: 760px) and (min-height: 800px) and (max-height: 850px) {
  
  /* Carousel improvements */
  .hero-carousel-section {
    margin-bottom: 2rem;
  }
  
  .carousel-indicators {
    bottom: 10px;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    opacity: 0.8;
  }
  
  /* Navigation improvements */
  .navbar-toggler {
    padding: 8px 10px;
    font-size: 1.1rem;
  }
  
  .mobile-nav .nav-link {
    padding: 12px 0;
    font-size: 1rem;
  }
  
  /* Footer improvements */
  .main-footer .row {
    margin: 0;
  }
  
  .main-footer .col-lg-4,
  .main-footer .col-lg-2,
  .main-footer .col-md-6 {
    padding: 0 15px;
    margin-bottom: 1rem;
  }
}

/* Fallback for tablet portrait mode */
@media (min-width: 700px) and (max-width: 800px) and (orientation: portrait) {
  
  /* Ensure elements scale properly */
  .hero-carousel-section .hero-image {
    height: clamp(300px, 50vh, 400px);
  }
  
  .footer-logo {
    width: clamp(50px, 8vw, 70px) !important;
    height: clamp(50px, 8vw, 70px) !important;
  }
  
  .mobile-nav {
    z-index: 1050;
  }
}
