/*
 Theme Name: CTPL Services Child Theme
 Description: A universal child theme for any WordPress theme.
 Author: ITYPE
 Author URI: https://itype.design/
 Template: hello-elementor
 Version: 1.0.0
*/

/* Enqueue parent theme styles */
@import url("../hello-elementor/style.css");

/* Add your custom styles below */

.related-equipment,
.related-region {
    margin: 40px 0;
}

.related-equipment h2,
.related-region h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default: 2 columns */
    gap: 20px;
    width: 100%;
}

@media (min-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    }
}


.related-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    transition: transform 0.2s ease;
}

.related-item a.image-link {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-item h3 {
    margin: 10px;
    font-size: 1.1rem;
}

.related-item h3 a {
    text-decoration: none;
    color: #333;
}

.equipment-regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 20px;
}

.equipment-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.equipment-category-item {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
}
.equipment-category-item img {
    max-width: 100%;
    height: auto;
}
