/* BloomForte Layout Fixes */

/* 1. COMPLETELY HIDE rotating text from hero/slider section */
.slider_03 .marqueeText,
.rev_slider .marqueeText,
.tp-caption .marqueeText,
.slider_03 .runRight,
.slider_03 .runLeft,
section.slider_03 .marqueeText,
.slider_03 .stokeText,
.slider_03 + .marqueeText,
.rev_slider_wrapper + .marqueeText,
.aboutSection03 + .marqueeText,
body .slider_03 .marqueeText,
html .slider_03 .marqueeText {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide any marquee that appears between sections */
.slider_03 ~ .marqueeText:not(.serviceSection03 .marqueeText),
.aboutSection03 ~ .marqueeText:not(.serviceSection03 .marqueeText) {
    display: none !important;
    visibility: hidden !important;
}

/* 2. Fix the services section to show proper rotating text */
.serviceSection03 .marqueeText {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure services section marquee text is visible */
.serviceSection03 .marqueeText.runRight,
.serviceSection03 .marqueeText.runLeft {
    display: block !important;
    visibility: visible !important;
}

/* 3. Fix Why Choose BloomForte section background image size */
.companySec01,
.chooseSection03 {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.companySec01 .container,
.chooseSection03 .container {
    position: relative;
    z-index: 2;
}

/* Fix the image in company section */
.companySec01 .col-lg-6 img,
.chooseSection03 .chImage img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 10px;
}

/* Ensure proper spacing and visibility */
.companySec01 .comCon {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 10px;
    margin: 20px 0;
}

/* 4. Ensure Core Services section has proper title styling */
.serviceSection03 .secTitle {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

/* Add space for rotating text after "Core Services" */
.serviceSection03 .secTitle::after {
    content: "";
    display: inline-block;
    width: 10px;
}

/* 5. Typography animation for services section */
.serviceSection03 .typing-text {
    color: #ed1b24 !important;
    font-weight: bold !important;
    display: inline-block !important;
    border-right: 2px solid #ed1b24;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { 
        border-color: transparent; 
    }
    50% { 
        border-color: #ed1b24; 
    }
}

/* 6. Responsive fixes */
@media (max-width: 768px) {
    .companySec01 .comCon {
        margin: 15px;
        padding: 30px 20px;
    }
    
    .serviceSection03 .secTitle {
        font-size: 2.5rem;
    }
    
    .companySec01 .col-lg-6 img,
    .chooseSection03 .chImage img {
        margin-bottom: 20px;
    }
}

/* 7. Make sure marquee text in services section works properly */
.serviceSection03 .marqueeText h2 {
    color: rgba(0, 0, 0, 0.05) !important;
    font-size: 120px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

/* Position marquee text properly */
.serviceSection03 .marqueeText.runRight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

.serviceSection03 .marqueeText.btMr.runLeft {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Ensure content is above marquee text */
.serviceSection03 .container {
    position: relative;
    z-index: 2;
}

/* 8. Additional fixes for slider sections */
.slider_03 {
    position: relative;
}

/* Remove any accidentally placed marquee text from slider */
.slider_03 .marqueeText,
.aboutSection03 + .marqueeText,
.slider_03 ~ .marqueeText:not(.serviceSection03 .marqueeText) {
    display: none !important;
}

/* 9. Fix company section background if it has one */
.companySec01[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* 10. Ensure proper contrast in overlaid content */
.companySec01 .comCon {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chooseSection03 .pdAcc {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 10px;
    margin: 20px 0;
}
