/* Product Portfolio Card Styles */
/* This file ensures equal height cards in the Our Product Portfolio section */

/* Product Line Section Headers */
.product-line-section {
    margin-bottom: 50px;
}

.product-line-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 2px solid transparent;
}

.product-line-header .line-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.product-line-header .line-content h3 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.product-line-header .line-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Vantage Comforts Styling */
.product-line-header.comforts {
    border-bottom-color: var(--primary-gold);
}

.product-line-header.comforts .line-icon {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: white;
}

.product-line-header.comforts .line-content h3 {
    color: var(--deep-black);
}

.product-line-header.comforts .line-content p {
    color: var(--grey-medium);
}

/* Vantage Elements Styling */
.product-line-header.elements {
    border-bottom-color: #2c5364;
}

.product-line-header.elements .line-icon {
    background: linear-gradient(135deg, #2c5364 0%, #203a43 100%);
    color: white;
}

.product-line-header.elements .line-content h3 {
    color: var(--deep-black);
}

.product-line-header.elements .line-content p {
    color: var(--grey-medium);
}

/* RTL Support for Product Line Headers */
body.rtl .product-line-header {
    flex-direction: row-reverse;
}

body.rtl .product-line-header .line-content {
    text-align: right;
}

/* Responsive Product Line Headers */
@media (max-width: 767px) {
    .product-line-header .line-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .product-line-header .line-content h3 {
        font-size: 1.4rem;
    }

    .product-line-header .line-content p {
        font-size: 0.85rem;
    }
}

/* Product Portfolio Grid Container */
.product-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Service Card Base Styling */
.service-card {
    background: var(--pure-white);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px;

    /* Flexbox for equal height cards */
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards fill the grid cell height */
}

/* Card Hover Effects */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Image Container */
.service-card .card-image-container {
    margin-bottom: 30px;
    text-align: center;
    flex-shrink: 0; /* Don't shrink the image container */
}

.service-card .card-image-container img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* New inline styled image containers */
.service-card div[style*="margin-bottom: 30px"] img {
    width: 90%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Card Title */
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    flex-shrink: 0; /* Don't shrink the title */
}

/* Card Description */
.service-card p {
    color: var(--grey-medium);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to grow and fill available space */
    line-height: 1.6;
}

/* Feature List */
.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0; /* Don't shrink the feature list */
}

.service-card ul li {
    padding: 8px 0;
    color: var(--grey-dark);
    display: flex;
    align-items: center;
}

.service-card ul li i {
    color: var(--primary-gold);
    margin-right: 8px;
    flex-shrink: 0;
}

/* Desktop Responsive Optimizations */
@media (min-width: 1200px) {
    .product-portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .service-card {
        min-height: 550px; /* Minimum height for larger screens */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .product-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .service-card {
        min-height: 520px;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 991px) {
    .product-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .service-card {
        padding: 35px;
        min-height: 480px;
    }

    .service-card .card-image-container img {
        height: 180px;
    }

    .service-card div[style*="margin-bottom: 30px"] img {
        width: 90%;
        aspect-ratio: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .product-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        padding: 30px;
        /* Remove min-height on mobile for natural content flow */
        min-height: auto;
    }

    .service-card .card-image-container {
        margin-bottom: 25px;
    }

    .service-card .card-image-container img {
        height: 160px;
        margin-bottom: 15px;
    }

    .service-card div[style*="margin-bottom: 30px"] img {
        width: 90%;
        aspect-ratio: 1;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .service-card p {
        margin-bottom: 15px;
        font-size: 14px;
    }

    .service-card ul li {
        padding: 6px 0;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .product-portfolio-grid {
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }

    .service-card .card-image-container img {
        height: 140px;
    }

    .service-card div[style*="margin-bottom: 30px"] img {
        width: 90%;
        aspect-ratio: 1;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }
}

