/* Custom fixes and improvements */

/* Preloader fix */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: #ffffff;
}

.spinner {
    border: 1px solid transparent;
    border-radius: 3px;
    position: relative;
}

.spinner-rotate {
    display: block;
    width: 45px;
    height: 45px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #43ac34;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Placeholder images with CSS */
.placeholder-image {
    background: linear-gradient(135deg, #43ac34, #2d7a24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    min-height: 300px;
}

/* Hero section background */
#home .item {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                linear-gradient(135deg, #43ac34, #2d7a24);
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo placeholder */
.logo-ofar {
    max-height: 50px;
    width: auto;
}

/* If logo image doesn't exist, show text */
.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #43ac34 !important;
}

/* Map section styling */
#map {
    background-color: #f9f9f9;
    padding: 80px 0;
}

#map .placeholder-image {
    min-height: 400px;
    background: linear-gradient(135deg, #e8f5e8, #43ac34);
    border-radius: 10px;
}

/* Team section improvements */
.team-thumb {
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-thumb:hover {
    transform: translateY(-5px);
}

/* About section image placeholder */
.about-info img {
    border-radius: 10px;
}

/* Responsive improvements */
@media (max-width: 768px) {
    #home h2.slides {
        font-size: 1.8em;
        line-height: 1.2em;
    }
    
    .team-thumb {
        margin-bottom: 20px;
    }
}

/* Ensure content is hidden until preloader is gone */
body.loading {
    overflow: hidden;
}

body.loading .preloader {
    display: flex;
}

body:not(.loading) .preloader {
    display: none;
}
