/* -----------------------------------------------------------------------------------
 * Custom Styling Overrides
 * ----------------------------------------------------------------------------------- */

.hover-font {
    color: #fff;
}

.hover-font:hover {
    color: rgba(255, 255, 255, 0.65); 
}


/* About Section Image Overlapping Fix */
.about-style-01 .about-image1 {
    width: 80%;
    display: inline-block;
}
.about-style-01 .about-image1 img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-style-01 .about-image2 {
    width: 65%;
    position: absolute;
    right: 0;
    bottom: -40px;
    top: auto; /* Overrides the top: 60px from theme style */
    z-index: 3;
}
.about-style-01 .about-image2 img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    border: 8px solid #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.truncate-multiple-lines {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0px 10px;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 767px) {
    .about-style-01 .about-image1 {
        width: 100%;
    }
    .about-style-01 .about-image1 img {
        height: 350px;
    }
    .about-style-01 .about-image2 {
        display: none;
    }
}

/* ---------------------------------------------------------------------------------------
 * Project Image Slider (oil_gas, power_plant, steel_mill, general_industry)
 * Uses slider-fade1 owl-carousel owl-theme — same engine as homepage banner.
 * Overrides below adapt the banner's full-screen style into a compact card slider.
 * --------------------------------------------------------------------------------------- */

/* Container */
.project-img-slider {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Fix theme override that sets img width:auto */
.project-img-slider .owl-item img {
    width: 100% !important;
    display: block !important;
    height: 400px;
    object-fit: contain;
    object-position: center;
    background-color: #0f1923;
}

/* --- Nav arrows --- */
/* Override slider-fade1 full-height square buttons → small round centred buttons */
.project-img-slider.slider-fade1.owl-theme .owl-nav [class*='owl-'] {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    line-height: 38px !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    opacity: 1 !important;
    background: rgba(0, 91, 171, 0.80) !important;
}
.project-img-slider.slider-fade1.owl-theme .owl-nav [class*='owl-']:hover {
    background: #005bab !important;
    opacity: 1 !important;
}
.project-img-slider.slider-fade1.owl-theme .owl-nav .owl-prev {
    left: 10px !important;
}
.project-img-slider.slider-fade1.owl-theme .owl-nav .owl-next {
    right: 10px !important;
    left: inherit !important;
}
.project-img-slider .owl-nav i,
.project-img-slider .owl-nav span {
    color: #fff !important;
    font-size: 16px !important;
}

/* --- Dot indicators --- */
.project-img-slider.slider-fade1.owl-carousel.owl-theme .owl-dots {
    position: absolute !important;
    bottom: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    text-align: center;
    z-index: 10;
}
.project-img-slider .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.55) !important;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    transition: background 0.25s, width 0.25s, border-radius 0.25s;
}
.project-img-slider .owl-dots .owl-dot.active span,
.project-img-slider .owl-dots .owl-dot:hover span {
    background: #fff !important;
    width: 22px !important;
    border-radius: 4px !important;
}

/* ===================================================
   Product Brand Carousel — Enhanced Card Styling
   =================================================== */

/* Override card-style1 padding / base */
.product-brand-carousel .card-style1 {
    padding: 0;
    border-top: 4px solid #005bab;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-brand-carousel .card-style1:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 91, 171, 0.15);
}

/* Logo container — consistent height, professional blue-tinted background */
.product-brand-carousel .product-logo-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4fb 0%, #f5f8fd 100%);
    padding: 30px 24px;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative circle watermark for depth */
.product-brand-carousel .product-logo-wrap::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(0, 91, 171, 0.05);
    bottom: -50px;
    right: -30px;
}

/* Logo image — constrained and centred */
.product-brand-carousel .product-logo-wrap img {
    max-width: 85%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.10));
    transition: filter 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.product-brand-carousel .card-style1:hover .product-logo-wrap img {
    filter: drop-shadow(0 4px 12px rgba(0, 91, 171, 0.25));
    transform: scale(1.04);
}

/* Card body — white, left-aligned, with top divider */
.product-brand-carousel .card-style1 .card-body {
    background: #ffffff;
    padding: 20px 22px 22px;
    text-align: left;
    border-top: 1px solid #eef2f7;
}

/* Brand name */
.product-brand-carousel .card-style1 .product-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #232323;
    margin-bottom: 6px;
}

/* Description — clamped to 2 lines */
.product-brand-carousel .card-style1 .product-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "View Product" arrow link */
.product-brand-carousel .product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #fff;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.product-brand-carousel .product-link i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.product-brand-carousel .product-link:hover {
    color: #fff;
    gap: 10px;
}

.product-brand-carousel .product-link:hover i {
    transform: translateX(3px);
}

/* ===================================================
   Distributor Cards (About Us)
   =================================================== */
.distributor-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    background-color: #fff;
    border: 1px solid #eef2f7 !important;
}
.distributor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
    border-color: transparent !important;
}
.distributor-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(0, 91, 171, 0.08);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}
.distributor-card:hover .distributor-icon-wrap {
    background: #005bab;
}
.distributor-card:hover .distributor-icon-wrap i,
.distributor-card:hover .distributor-icon-wrap span {
    color: #fff !important;
}
.distributor-link {
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}
.distributor-link i {
    transition: transform 0.3s ease;
}
.distributor-link:hover i {
    transform: translateX(4px);
}

/* ===================================================
   Vision & Mission Cards (Solid Block Design)
   =================================================== */
.vm-solid-block {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-solid-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.vm-solid-block .watermark-icon {
    font-size: 14rem;
    position: absolute;
    right: -25px;
    bottom: -40px;
    line-height: 1;
    z-index: 0;
    transition: transform 0.5s ease;
}
.vm-solid-block:hover .watermark-icon {
    transform: scale(1.05) rotate(-5deg);
}

/* Zoom-in effect on distributor certificate images */
.pdf-preview-container img {
    transition: transform 0.4s ease;
    width: 100%;
    display: block;
}
.pdf-preview-container:hover img {
    transform: scale(1.06);
}

/* ===================================================
   Footer – Get in Touch (address-list) hover fix
   Prevent links from picking up footer-list-style2 hover color
   =================================================== */
.address-list li a:hover {
    color: #005bab;
}

/* ===================================================
   WhatsApp Floating Button
   =================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 80px; /* sits just above the scroll-to-top button */
    right: 20px;
    z-index: 9999;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}
.whatsapp-float i {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}
.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

/* ===================================================
   Product Brand Cards (product.php)
   Original card-style8 design — border + shadow only
   =================================================== */
.product-card.card-style8 {
    border: 1px solid #dde3ea !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}
.product-card.card-style8:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14) !important;
    transform: translateY(-4px);
}
.product-card.card-style8 .card-body {
    border-radius: 5px;
    overflow: hidden;
}

/* Make PDF popup button bigger */
.product-card.card-style8 .portfolio-link a {
    width: 40px;
    height: 40px;
    line-height: 58px;
    padding: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.product-card.card-style8 .portfolio-link a i {
    font-size: 20px;
    color: #c0392b;
    transition: color 0.3s ease;
}
.product-card.card-style8 .portfolio-link a:hover i {
    color: #ffffff;
}

/* Tablet & Mobile: Always show overlay info on product cards */
@media (max-width: 991px) {
    .product-card.card-style8 .portfolio-overlay {
        opacity: 0.8 !important; /* Slightly transparent so image is still visible */
        visibility: visible !important;
    }
    .product-card.card-style8 .overlay-info {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        position: unset;
    }
}

@media screen and (max-width: 768px) {
    .product-card.card-style8 .overlay-info {
        position: absolute;
    }
}
