/* Solar Water Pumps Page Enhancement CSS */
/* This file provides professional styling for the solar water pumps page */

/* Professional Pattern Background */
.bg-professional-pattern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.bg-professional-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="solar-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="%23660099" opacity="0.03"/><circle cx="10" cy="10" r="1" fill="%23e98e39" opacity="0.02"/><polygon points="50,20 55,25 50,30 45,25" fill="%23b0d7ab" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23solar-pattern)"/></svg>');
    z-index: 1;
}

.bg-professional-pattern .container {
    position: relative;
    z-index: 2;
}

/* Gradient Light Background */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    position: relative;
}

/* Enhanced Section Badge */
.section-badge {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(102, 0, 153, 0.3);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.section-badge:hover::before {
    left: 100%;
}

.section-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 0, 153, 0.4);
}

/* Enhanced Section Title */
.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Introduction Section */
.introduction-section {
    padding: 6rem 0;
}

.introduction-content {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.introduction-content .lead {
    font-size: 1.25rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

/* Feature Highlight Cards */
.feature-highlight-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
}

.feature-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
}

.feature-highlight-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.feature-highlight-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Enhanced Product Cards */
.enhanced-product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.enhanced-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
}

.enhanced-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.enhanced-product-card .product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
    flex-shrink: 0;
}

.enhanced-product-card .product-image .product-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 100%;
    max-height: 100%;
}

.enhanced-product-card .product-image .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: var(--medium-gray);
    font-size: 3rem;
}

.enhanced-product-card:hover .product-image .product-icon-image {
    transform: scale(1.05);
}

.enhanced-product-card .product-content {
    padding: 1.5rem;
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.enhanced-product-card .product-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.3;
}

.enhanced-product-card .product-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.enhanced-product-card .product-price {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-product-card .product-price .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-purple);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product overlay for better interaction */
.enhanced-product-card .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.enhanced-product-card:hover .product-overlay {
    opacity: 1;
}

.enhanced-product-card .product-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.enhanced-product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

/* Component Cards */
.component-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.component-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
}

.component-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.component-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.component-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.component-tag {
    background: rgba(102, 0, 153, 0.1);
    color: var(--primary-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 0;
}

.benefits-content {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.enhanced-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(102, 0, 153, 0.05);
    transform: translateX(5px);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-green), #2e7d32);
    flex-shrink: 0;
}

.benefit-content {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.benefit-content strong {
    color: var(--primary-purple);
}

/* Benefits Visual */
.benefits-visual {
    position: relative;
}

.enhanced-image-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.enhanced-stack-item {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.enhanced-stack-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.image-container {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.enhanced-stack-item:hover .benefit-image {
    transform: scale(1.05);
}

/* Responsive image sizing */
@media (max-width: 991.98px) {
    .image-container {
        height: 250px;
    }
    
    .enhanced-image-stack {
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .image-container {
        height: 200px;
    }
    
    .enhanced-image-stack {
        gap: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .introduction-content {
        padding: 2rem;
    }
    
    .feature-highlight-card {
        padding: 1.5rem;
    }
    
    .component-card {
        padding: 1.5rem;
    }
    
    .benefits-content {
        padding: 2rem;
    }
    
    /* Enhanced product cards responsive */
    .enhanced-product-card .product-image {
        height: 220px;
        padding: 15px;
    }
    
    .enhanced-product-card .product-content {
        padding: 1.25rem;
    }
    
    .enhanced-product-card .product-content h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .introduction-content {
        padding: 1.5rem;
    }
    
    .feature-highlight-card {
        padding: 1.25rem;
    }
    
    .component-card {
        padding: 1.25rem;
    }
    
    .benefits-content {
        padding: 1.5rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin: 0 auto 1rem;
    }
    
    /* Enhanced product cards mobile responsive */
    .enhanced-product-card .product-image {
        height: 200px;
        padding: 12px;
    }
    
    .enhanced-product-card .product-content {
        padding: 1rem;
    }
    
    .enhanced-product-card .product-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .enhanced-product-card .product-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .product-features {
        gap: 0.25rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 575.98px) {
    /* Extra small devices */
    .enhanced-product-card .product-image {
        height: 180px;
        padding: 10px;
    }
    
    .enhanced-product-card .product-content {
        padding: 0.875rem;
    }
    
    .enhanced-product-card .product-content h4 {
        font-size: 1rem;
    }
    
    .enhanced-product-card .product-content p {
        font-size: 0.85rem;
    }
}

/* Surface and Submersible Pumps Sections */
.surface-pumps-section,
.submersible-pumps-section {
    position: relative;
}

.surface-pumps-content,
.submersible-pumps-content {
    position: relative;
    z-index: 2;
}

/* Ensure consistent card heights */
.surface-pumps-section .row,
.submersible-pumps-section .row {
    align-items: stretch;
}

.surface-pumps-section .col-md-6,
.surface-pumps-section .col-lg-4,
.submersible-pumps-section .col-md-6,
.submersible-pumps-section .col-lg-4 {
    display: flex;
    flex-direction: column;
}

/* Enhanced Product Cards - Additional fixes */
.enhanced-product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.enhanced-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-green));
}

.enhanced-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Additional Image Handling Fixes */
.enhanced-product-card .product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
}

.enhanced-product-card .product-image .product-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

/* Ensure images don't overflow their containers */
.enhanced-product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Better placeholder styling */
.enhanced-product-card .product-image .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: var(--medium-gray);
    font-size: 3rem;
    box-sizing: border-box;
}

/* Ensure content doesn't overflow */
.enhanced-product-card .product-content {
    padding: 1.5rem;
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
}

.enhanced-product-card .product-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.enhanced-product-card .product-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 4.8em; /* 3 lines * 1.6 line-height */
}

/* Ensure feature tags don't overflow */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    max-width: 100%;
    padding-top: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

/* Product overlay for better interaction */
.enhanced-product-card .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.enhanced-product-card:hover .product-overlay {
    opacity: 1;
}

.enhanced-product-card .product-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.enhanced-product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

/* Final Card Layout Improvements */
.enhanced-product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    max-height: 600px;
}

/* Ensure proper image container sizing */
.enhanced-product-card .product-image {
    width: 100%;
    height: 250px;
    min-height: 200px;
    max-height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Optimize image display */
.enhanced-product-card .product-image .product-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}

/* Ensure content area is properly sized */
.enhanced-product-card .product-content {
    padding: 1.5rem;
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 200px;
}

/* Optimize text content */
.enhanced-product-card .product-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.enhanced-product-card .product-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-height: 4.8em; /* 3 lines * 1.6 line-height */
}

/* Ensure feature tags are properly positioned */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    max-width: 100%;
    padding-top: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-green));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
