/* Custom styles for partner logos */
.wprt-partners .owl-carousel .partner {
    padding: 0 20px;
}

.wprt-partners .owl-carousel .partner img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Optional hover effect */
.wprt-partners .owl-carousel .partner img:hover {
    opacity: 0.8;
}

/* Smooth scrolling and scroll spy improvements - Optimized for performance */
html {
    /* scroll-behavior: smooth; -- Disabled for faster JavaScript control */
    scroll-padding-top: 120px; /* Account for sticky header */
}

/* Section scroll targets with proper spacing */
section.wprt-section {
    scroll-margin-top: 120px;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
    contain: layout style; /* Optimize rendering performance */
}

/* Navigation active state enhancement - Faster transitions */
#main-nav ul li.current-menu-item > a {
    color: #ffc925 !important;
    transition: color 0.15s ease; /* Faster transition for snappier feel */
}

#main-nav ul li a {
    transition: color 0.15s ease; /* Consistent fast transitions */
}

/* Mobile responsive scroll adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
    
    section.wprt-section {
        scroll-margin-top: 80px;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
}

/* Contact form - Clean Bootstrap styling with centered positioning */
.contact-form {
    max-width: 100%;
    margin: 0 auto;
    text-align: left; /* Reset any inherited text alignment */
}

/* Facts section - Ensure text is always visible */
#facts.wprt-section {
    /* Missing background image replaced with existing one */
    background: url(../assets/img/about.jpg) no-repeat center center;
    /* background: url(../assets/img/bg-section-facts.jpg) no-repeat center center; */
    background-size: cover;
    position: relative;
}

#facts.wprt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(49, 48, 48, 0.8); /* More/lighter grey overlay */
    z-index: 1;
}

#facts.wprt-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure Facts counter text is always visible */
.wprt-counter.accent-type .text {
    color: #fff !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/* Override theme's wprt-contact-form styles that might interfere */
.contact-form,
.contact-form .inner,
.contact-form .left-side,
.contact-form .message-wrap {
    position: static !important;
    float: none !important;
    width: 100% !important;
    right: auto !important;
    top: auto !important;
}

/* Ensure Bootstrap grid centering works properly */
.col-md-6.offset-md-3 {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.contact-form .form-control {
    border: 1px solid #e7e7e7;
    border-radius: 3px;
    padding: 15px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    width: 100% !important;
    float: none !important;
}

.contact-form .form-control:focus {
    border-color: #ffc925;
    box-shadow: 0 0 0 0.2rem rgba(255, 201, 37, 0.25);
    outline: none;
}

.contact-form .btn-contact {
    background-color: #ffc925;
    border: 1px solid #ffc925;
    color: #fff;
    padding: 12px 30px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
    width: auto !important;
}

.contact-form .btn-contact:hover {
    background-color: #e6b523;
    border-color: #e6b523;
    color: #fff;
}

/* Make load more button yellow - Override gallery.css */
.load-more-container #load-more {
    background-color: #ffc925 !important;
    color: #fff !important;
    border: 1px solid #ffc925 !important;
    padding: 12px 30px !important;
    font-weight: 500 !important;
}

/* Contact form success/error popup styling */
.contact-alert {
    border-radius: 5px;
    padding: 15px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-alert.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.contact-alert.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.contact-alert .fa {
    margin-right: 8px;
}

.contact-alert .close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    float: right;
    margin-left: 15px;
}

.contact-alert .close:hover {
    opacity: 1;
}
