﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #2c3e50; /* Dark blue-grey */
    color: #ecf0f1; /* Light grey */
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .header .logo {
        font-size: 24px;
        font-weight: bold;
        display: flex;
        align-items: center;
    }

        .header .logo i {
            margin-right: 10px;
        }

    .header .search-bar {
        flex-grow: 1;
        margin: 0 30px;
    }

        .header .search-bar input {
            width: 100%;
            padding: 10px 15px;
            border: none;
            border-radius: 5px;
            font-size: 16px;
        }

    .header nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

        .header nav ul li {
            margin-left: 25px;
        }

            .header nav ul li a {
                color: #ecf0f1;
                font-weight: bold;
                transition: color 0.3s ease;
            }

                .header nav ul li a:hover {
                    color: #3498db; /* Blue on hover */
                }

    .header .utility-icons {
        margin-left: 25px;
    }

        .header .utility-icons i {
            font-size: 20px;
            margin-left: 20px;
            cursor: pointer;
            transition: color 0.3s ease;
        }

            .header .utility-icons i:hover {
                color: #3498db;
            }

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero-banner {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-half {
    flex: 1;
    padding: 60px 40px;
    color: #fff;
    text-align: left;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px; /* Ensure a minimum height for smaller screens */
}

    .hero-half::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
        z-index: 1;
    }

    .hero-half > * {
        position: relative;
        z-index: 2;
    }

    .hero-half h2 {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hero-half .btn {
        display: inline-block;
        padding: 12px 25px;
        background-color: #e67e22; /* Orange */
        color: #fff;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

        .hero-half .btn:hover {
            background-color: #d35400; /* Darker orange */
        }

.hero-material-handling {
    background-image: url('../../../Content/gyanva_2_0/images/products/mhe.png'); /* Placeholder Image */
}

.hero-auto-parts {
    background-image: url('../../../Content/gyanva_2_0/images/products/aprts.png'); /* Placeholder Image */
}

/* Dual Category Gateway */
.category-gateway {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

    .category-gateway h2 {
        font-size: 28px;
        margin-bottom: 40px;
        color: #2c3e50;
    }

.category-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.category-card {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0px;
    width: 45%; /* Adjust width for two columns */
    max-width: 500px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .category-card-description-container{
        padding:20px;
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .category-card img {
        width: -webkit-fill-available;
        height: 200px;
        object-fit: cover;
        border-radius: 5px;
        margin-bottom: 20px;
    }

    .category-card h3 {
        font-size: 22px;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .category-card p {
        font-size: 16px;
        color: #555;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .category-card .btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #3498db; /* Blue */
        color: #fff;
        border-radius: 5px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

        .category-card .btn:hover {
            background-color: #2980b9; /* Darker blue */
        }

/* Featured Products */
.featured-products {
    padding: 60px 0;
    text-align: center;
}

    .featured-products h2 {
        font-size: 28px;
        margin-bottom: 40px;
        color: #2c3e50;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .product-item img {
        max-width: 100%;
        height: 180px;
        object-fit: contain; /* Use contain to show entire product */
        margin-bottom: 15px;
        border-radius: 5px;
    }

    .product-item h3 {
        font-size: 18px;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .product-item .price {
        font-size: 20px;
        font-weight: bold;
        color: #e67e22; /* Orange */
    }

.callout-box {
    background-color: #3498db;
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px; /* Separates it from the grid */
    grid-column: span 1; /* For grid placement if needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .callout-box p {
        font-size: 18px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .callout-box strong {
        font-size: 22px;
        display: block;
        margin-top: 5px;
    }


/* Trust Bar */
.trust-bar {
    background-color: #ecf0f1;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-top: 60px;
}

.trust-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    flex-basis: 20%; /* Roughly 4 items per row */
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #555;
}

    .trust-item i {
        font-size: 35px;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .trust-item p {
        font-size: 14px;
        margin: 0;
    }

.brand-logos {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

    .brand-logos img {
        max-height: 40px;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

        .brand-logos img:hover {
            filter: grayscale(0%);
            opacity: 1;
        }


/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #3498db; /* Blue for headings */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-column ul li {
        margin-bottom: 10px;
    }

        .footer-column ul li a {
            color: #ecf0f1;
            transition: color 0.3s ease;
        }

            .footer-column ul li a:hover {
                color: #3498db;
            }

.footer-column p {
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

    .footer-bottom .social-links a {
        color: #ecf0f1;
        font-size: 18px;
        margin-left: 15px;
        transition: color 0.3s ease;
    }

        .footer-bottom .social-links a:hover {
            color: #3498db;
        }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header nav {
        display: none; /* Hide main nav on smaller screens, could use a hamburger menu */
    }

    .header .search-bar {
        margin: 0 15px;
    }

    .header .utility-icons {
        margin-left: 15px;
    }

    .hero-banner {
        flex-direction: column;
    }

    .hero-half {
        padding: 40px 20px;
    }

        .hero-half h2 {
            font-size: 26px;
        }

    .category-cards {
        flex-direction: column;
        align-items: center;
    }

    .category-card {
        width: 90%;
        max-width: 450px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .trust-item {
        flex-basis: 45%; /* 2 items per row */
    }

    .footer-bottom {
        justify-content: center;
    }

        .footer-bottom .social-links {
            margin-top: 20px;
        }
}

@media (max-width: 576px) {
    .header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

        .header .logo, .header .utility-icons {
            margin-bottom: 10px;
        }

        .header .search-bar {
            order: 3; /* Move search bar below logo/icons */
            flex-basis: 100%;
            margin: 10px 0;
        }

        .header nav {
            order: 4; /* Below search */
        }

    .hero-half h2 {
        font-size: 22px;
    }

    .category-card img {
        height: 150px;
    }

    .product-item img {
        height: 150px;
    }

    .trust-item {
        flex-basis: 100%; /* 1 item per row */
    }
}
