/* ===== SECTION HEADING RED UNDERLINE ===== */

/* Add red underline to all section headings with -4px gap */
.sec-title h4 {
    position: relative;
    padding-bottom: 0px;
    margin-bottom: -4px !important;
}

.sec-title h4:before {
    content: '';
    width: 100%;
    height: 3px;
    background: #E73944 !important;
    position: absolute;
    bottom: -4px;
    left: 0;
}

/* ===== TESTIMONIAL SECTION FIXES ===== */

/* Fix gap between section title and bottom border */
.testimonial-section .sec-title {
    margin-bottom: 50px;
    /* padding-bottom: 20px; */
}

/* Equal height testimonial cards */
.testimonials-carousel .item {
    display: flex;
    margin-bottom: 80px;
}

/* Add space for images extending below cards */
.testimonials-carousel {
    padding-bottom: 0px;
}

.signle-testimonial-style-one {
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.testimonial-section {
    padding: 15px 0 25px !important;
}

.signle-testimonial-style-one .inner-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0px 30px 0px 30px;
    position: relative;
}

/* Text content */
.signle-testimonial-style-one .inner-box .client-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 110px;
}

.signle-testimonial-style-one .inner-box .client-content p {
    text-align: left;
    margin-bottom: 20px;
    flex: 1;
}

.signle-testimonial-style-one .inner-box .client-content h3 {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    padding: 0 20px;
    text-align: center;
    line-height: 1.4;
    color: #303030;
}

.signle-testimonial-style-one .inner-box .client-content span {
    position: absolute;
    bottom: 58px;
    left: 0;
    right: 0;
    display: block;
    font-size: 14px;
    color: #666;
    margin: 0;
    padding: 0 20px;
    text-align: center;
    line-height: 1.3;
}

/* Image container at bottom center */
.signle-testimonial-style-one .inner-box .client-photo {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

/* Circular image - Override original styles */
.signle-testimonial-style-one .client-image,
.signle-testimonial-style-one .inner-box .client-photo .client-image {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 75px !important;
    height: 75px !important;
    object-fit: cover;
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25) !important;
    display: block !important;
    margin: 0 auto;
}


/* ===== SLIDER IMAGE AND TEXT FIXES ===== */

/* Ensure slider image stays within carousel */
.main-slider .slide-item {
    position: relative;
    overflow: hidden;
}

.main-slider .slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix slider text visibility */
.main-slider .carousel-caption {
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
}

.main-slider .main-banner-content h3.title {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.main-slider .main-banner-content .text {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 18px;
    line-height: 1.6;
}

/* ===== ABOUT US PAGE - CHANGE GREEN TO RED ===== */

/* Change all green (#00a651) to red (#E73944) */
.about-section .sec-title h4,
.about-section .text-content h3,
.about-section .list-style-one li:before {
    color: #E73944 !important;
}

.about-section .theme-btn,
.about-section .btn-style-one {
    background: #E73944 !important;
    border-color: #E73944 !important;
}

.about-section .theme-btn:hover,
.about-section .btn-style-one:hover {
    background: #c42d3a !important;
    border-color: #c42d3a !important;
}

/* Section title underline */
.about-section .sec-title:after,
.about-section .sec-title:before {
    background: #E73944 !important;
}

/* ===== ABOUT US PAGE - REDUCE MARGINS AND PADDING ===== */

.about-section {
    padding: 60px 0 !important;
}

.history-section,
.location-section,
.commitment-section {
    padding: 40px 0 !important;
}

.about-section .sec-title {
    margin-bottom: 30px !important;
}

.about-section .content-column,
.about-section .image-column {
    margin-bottom: 20px !important;
}

.about-section .inner-column {
    padding: 0 15px !important;
}

/* Reduce spacing between sections */
.about-section + .history-section,
.history-section + .location-section,
.location-section + .commitment-section {
    margin-top: -20px !important;
}

/* ===== ABOUT US PAGE - FIX ICONS ===== */

.about-section .icon-box {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #E73944;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 20px;
}

.about-section .icon-box i,
.about-section .icon-box span {
    display: inline-block;
    vertical-align: middle;
}

/* Feature blocks icons */
.feature-block .inner-box .icon-box {
    background: #E73944;
    color: #fff;
}

.feature-block .inner-box:hover .icon-box {
    background: #c42d3a;
}

/* ===== CONTACT US PAGE - REDUCE PADDING ===== */

.contact-section {
    padding: 25px 0 !important;
}

.contact-info-section {
    padding: 40px 0 !important;
}

.contact-section .sec-title {
    margin-bottom: 30px !important;
}

.contact-section .form-group {
    margin-bottom: 20px !important;
}

.contact-section .info-column {
    margin-bottom: 20px !important;
}

.contact-section .contact-info {
    padding: 20px !important;
}

.contact-section .map-section {
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

/* Reduce spacing in contact info boxes */
.contact-page-section .info-column .inner-column {
    padding: 20px !important;
}

.contact-page-section .contact-info li {
    margin-bottom: 15px !important;
}

/* ===== GENERAL SECTION SPACING IMPROVEMENTS ===== */

section {
    overflow: hidden;
}

.sec-title h2 {
    margin-bottom: 15px;
}

.sec-title h4 {
    margin-top: 30px;
    margin-bottom: 10px;
}

/* ===== GALLERY PAGE FIXES ===== */

/* Add space between heading and product details */
.gallery-section .sec-title {
    margin-top: 20px !important;
    margin-bottom: 50px !important;
}

.gallery-section .product-gallery {
    margin-top: 40px !important;
}

.gallery-section .mixitup-gallery {
    margin-top: 40px !important;
}

/* ===== LINK HOVER COLOR - DARK RED ===== */

a:hover,
.navigation > li > a:hover,
.footer-widget a:hover,
.product-block a:hover,
.gallery-item a:hover {
    color: #8B0000 !important;
}

/* Change mouse hover color in links to dark red */
.main-footer a:hover {
    color: #8B0000 !important;
}

/* ===== ACTIVE NAVIGATION MENU - CHANGE FROM ORANGE TO RED ===== */

.header-new-style .navigation > li.current > a,
.header-new-style .navigation > li:hover > a,
.main-header .navigation > li.current > a,
.main-header .navigation > li:hover > a {
    background: #E73944 !important;
    color: #fff !important;
}

.sticky-header .navigation > li.current > a,
.sticky-header .navigation > li:hover > a {
    background: #E73944 !important;
    color: #fff !important;
}

/* ===== FOOTER SPACING FIXES ===== */

/* Remove extra space between footer and content */
.main-footer {
    margin-top: 0px !important;
}

/* Reduce padding - make top and bottom same (currently 120px top, 40px bottom) */
.main-footer.padding-top {
    padding-top: 5px !important;
    padding-bottom: 0px !important;
}

.main-footer.padding-top .widgets-section {
    padding: 25px 0px 20px !important;
}

.main-footer .widgets-section {
    padding: 25px 0px 20px !important;
}

.main-footer .footer-column {
    margin-bottom: 20px !important;
}

.main-footer .footer-widget {
    margin-bottom: 20px !important;
}

/* Remove extra margin from .main-footer .footer-widget class (25px comment margin) */
.main-footer .footer-widget {
    margin: 0 !important;
}

.main-footer .widgets-section {
    margin-bottom: 0 !important;
}

/* ===== MARKET SECTORS / PRODUCTS HOVER OPACITY FIX ===== */

/* Make overlay semi-transparent on hover so images remain visible */
.services-block .inner-box:hover .overlay-box {
    background-color: rgba(24, 24, 24, 0.5) !important;
}

/* Proper sizing for market sectors images */
.services-block .image-box {
    height: 250px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f8f8;
}

.services-block .image-box figure {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.services-block .image-box img {
    max-width: 90% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.project-block-two:hover .image-box .overlay-box:before,
.project-block-four:hover .image-box .overlay-box:before {
    opacity: 0.5 !important;
}

/* Fix product/project images sizing */
.project-block .image-box,
.project-block-two .image-box,
.project-block-three .image-box,
.project-block-four .image-box {
    height: 280px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f8f8;
}

.project-block .image-box figure,
.project-block-two .image-box figure,
.project-block-three .image-box figure,
.project-block-four .image-box figure {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.project-block .image-box img,
.project-block-two .image-box img,
.project-block-three .image-box img,
.project-block-four .image-box img {
    max-width: 90% !important;
    max-height: 90% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* ===== CONTINUOUS SCROLLING TICKER ===== */

/* Dark background for highlights section */
.highlights.dark-bg {
    background-color: #181818 !important;
    padding: 0 !important;
}

/* Remove borders/separators between items */
.highlights .highlight-block .inner-box:before {
    display: none !important;
}

/* Hide icons */
.highlights .icon-box {
    display: none !important;
}

/* Ticker wrapper - contains overflow */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 15px 0;
}

/* Ticker content - animated container */
.ticker-content {
    display: flex;
    width: max-content;
    animation: slide-left 40s linear infinite;
}

/* Highlight blocks in ticker */
.ticker-content .highlight-block {
    flex-shrink: 0;
}

/* Inner box styling */
.ticker-content .highlight-block .inner-box {
    padding: 0 100px;
    min-height: auto;
}

/* Text styling */
.ticker-content .highlight-block .text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

/* Highlighted text (ISO certification) */
.ticker-content .highlight-block .text span {
    color: #ffffff;
    background-color: #e73944;
    padding: 2px 8px;
}

/* Continuous slide-left animation */
@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

/* ===== SECTION SPACING FIXES ===== */

/* Reduce excessive section padding */
.services-section {
    padding: 0px 0 0px !important;
}

.about-section,
.history-section,
.location-section,
.commitment-section {
    padding: 50px 0 !important;
}

.project-section,
.products-section {
    padding: 50px 0 60px !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 991px) {
    .about-section,
    .history-section,
    .location-section,
    .commitment-section {
        padding: 40px 0 !important;
    }
    
    .contact-section {
        padding: 40px 0 !important;
    }
    
    .main-footer.padding-top {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 767px) {
    .about-section,
    .history-section,
    .location-section,
    .commitment-section {
        padding: 30px 0 !important;
    }
    
    .contact-section {
        padding: 30px 0 !important;
    }
    
    .main-slider .main-banner-content h3.title {
        font-size: 32px;
    }
    
    .main-footer.padding-top {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
}
