/* Custom Fixes for Tristar Localized Site */

/* 
 * Mobile Responsiveness for Hero Section Logo
 * Target the specific elementor widget ID for the Tristar Logo
 * Overrides inline styles for mobile devices (max-width 767px)
 */
@media (max-width: 767px) {
    .elementor-element-0966352 {
        /* Reset top position to center it within the hero container */
        top: 20% !important;
        
        /* Ensure it is centered horizontally and vertically */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        
        /* Adjust width for smaller screens */
        width: 70% !important;
        max-width: 280px !important;
        
        /* Ensure z-index keeps it on top */
        z-index: 20 !important;
    }
}

/* 
 * Mobile Navbar Spacing Fix for "About Us" Page
 * Ensures the heading is pushed properly below the fixed navbar
 */
@media (max-width: 768px) {
    .page-id-49 .hfe-page-title,
    .page-id-61 .hfe-page-title {
        padding-top: 100px; /* Push heading below fixed navbar */
        display: block;
    }
}

/* 
 * Scrollup Button Styling (Matching Index Page)
 * Applies to gallery.html and others using .scrollup
 */
.scrollup {
    position: fixed;
    right: 30px;
    bottom: 80px;
    width: 50px; /* Adjusted size to be more standard, style.css had 70px which is big */
    height: 50px;
    
    /* Flex alignment for the img */
    display: none; /* JS toggles to flex */
    justify-content: center;
    align-items: center;
    
    text-decoration: none;
    background: var(--primary, #12648D);
    border: 1px solid var(--primary, #12648D);
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.scrollup img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1); /* Make white */
    margin: 0;
}

.scrollup:hover {
    background: var(--text, #0C0305);
    border-color: var(--text, #0C0305);
    transform: translateY(-3px);
}

@media (min-width: 1024px) {
  .scrollup {
    bottom: 40px;
    right: 40px;
  }
}
