/* Basic CSS reset and display fixes */

/* Ensure all content is visible */
.ftco-section,
.hero-wrap,
section,
.container,
.container-fluid {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix Bootstrap grid system */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-4,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Desktop grid widths */
@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Remove any problematic animations */
.ftco-animate {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure text is visible */
h1, h2, h3, h4, h5, h6, p, span, a, div {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hide loader immediately */
#ftco-loader {
    display: none !important;
}

/* Fixed top right controls */
#top-right-controls {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    display: flex !important;
    gap: 10px !important;
}

/* Light theme for all buttons */
.light-theme-desktop {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.light-theme-desktop:hover {
    background: #ffffff !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Hide menu button on desktop */
@media (min-width: 768px) {
    .navbar-toggler-fixed {
        display: none !important;
    }
}

/* Menu toggle button styling */
.navbar-toggler-fixed:focus {
    outline: none !important;
}

/* Basic mobile menu fixes */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse.collapse {
        display: none;
    }
    
    .navbar-collapse.show {
        display: block;
    }
    
    /* Adjust top controls for mobile */
    #top-right-controls {
        top: 15px !important;
        right: 15px !important;
        gap: 8px !important;
    }
    
    #lang-toggle-fixed,
    .navbar-toggler-fixed {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}