/* Variables for easy branding updates */
:root {
    --primary-blue: #0056b3;
    --dark-grey: #2d3436;
    --light-grey: #dfe6e9;
    --border-color: #e0e0e0;
}

/* 3-Column Grid Layout for index.php */
.product-grid {
    display: grid !important; /* Force grid even if W3.CSS tries to override */
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* Rigid 3-column split */
    align-items: center;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.product-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.grid-img {
    width: 40%;
    height: 300px; 
    object-fit: cover;
    display: block;
}

/* Ensure no floats interfere with grid items */
.product-grid > div {
    float: none !important;
    width: auto !important;
}
.grid-content {
    padding: 30px;
    text-align: center;
}

/* Typography adjustment for the services list */
.service-list-item {
    margin-bottom: 6px;
    line-height: 1.4;
    color: #636e72;
}

/* Buttons */
.btn-outline {
    border: 2px solid var(--primary-blue);
    padding: 10px 28px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: #fff !important;
    text-decoration: none;
}

/* Footer Styling */
.footer-custom {
    background-color: var(--dark-grey);
    color: var(--light-grey);
}

.footer-custom a {
    transition: color 0.2s;
}

.footer-custom a:hover {
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .w3-hide-small {
        display: none !important;
    }
}