/* 
 * Custom Responsive Fixes
 */

/* Staff Section - Circular Photos */
.staff-section .staff .mb-4 img,
.staff .mb-4 img {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  display: inline-block;
}

/* 
 * GLOBAL MOBILE FIXES 
 */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile Menu Fixes */
.site-mobile-menu {
  position: fixed !important;
  right: 0;
  z-index: 9999;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  top: 0;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Logo Responsiveness (Title Website) */
@media (max-width: 991.98px) {

  /* Ensure parent container is Flexbox for proper alignment */
  .site-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    position: relative;
  }

  .logo.multiline {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    /* Forces vertical wrapping */

    /* Box Model */
    max-width: 70%;
    display: block !important;
    text-align: left;
    margin: 0 !important;

    /* Reset Position */
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

  /* Adjust Hamburger to sit comfortably on the right */
  .burger {
    position: relative !important;
    margin-left: auto !important;
    right: auto !important;
    top: auto !important;
    margin-top: 0 !important;
  }
}

/* Testimonial Section - Circular Photos */
.block-testimonial .author img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* 
 * NEWS LIST & DETAIL MOBILE FIXES
 * Added on 2026-01-14
 */

/* 1. News Content Image Responsiveness */
.news-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  /* Removes bottom spacing */
  margin: 10px auto;
  /* Centers image */
}

/* 2. Youtube Video Responsiveness */
.news-content iframe {
  max-width: 100% !important;
}

/* 3. Hero Section Title & Meta on Mobile */
@media (max-width: 767.98px) {
  .untree_co-hero h1.heading {
    font-size: 1.75rem !important;
    /* Smaller title */
    line-height: 1.3;
  }

  .untree_co-hero span.d-block {
    font-size: 0.9rem !important;
    /* Smaller meta text */
  }

  .untree_co-hero {
    min-height: 50vh !important;
    /* Reduce hero height on mobile */
  }
}

/* 4. Navbar Fixes for Mobile (Logo vs Portal Login) */
@media (max-width: 991.98px) {

  /* Adjust Logo Size */
  .logo {
    font-size: 1.1rem !important;
    max-width: 55%;
    /* Limit width to avoid hitting the button */
    white-space: normal;
    /* Allow wrapping if needed */
    line-height: 1.2;
    left: 15px !important;
  }

  /* Adjust Portal Login Button Position */
  .btn-book {
    right: 50px !important;
    /* Move left of hamburger */
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
  }

  /* Ensure Header Container has space */
  .site-navigation {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}