/* ===== Scoped Template Styles Only ===== */
#dev-templates {
    background: #fafafa;
    padding: 60px 20px;
}

/* Template Grid */
#dev-templates .dev-templates__items {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    #dev-templates .dev-templates__items {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 28px;
    }
}

@media (min-width: 1069px) {
    #dev-templates .dev-templates__items {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 44px;
    }
}

/* Individual Template Card */
#dev-templates .dev-templates__item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#dev-templates .dev-templates__item:hover {
    transform: scale(1.02);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
}

/* Template Image */
#dev-templates .dev-templates__item-img img {
    width: 100%;
    display: block;
}

/* Hover Overlay */
#dev-templates .dev-templates__item-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

#dev-templates .dev-templates__item:hover .dev-templates__item-hover {
    opacity: 1;
}

/* View Button */
#dev-templates .dev-templates__item-hover .dui-btn,
#dev-templates .dev-templates__item-hover a.dui-btn {
    background-color: #ff7426;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none !important;
    font-weight: bold;
    border-radius: 50px;
    display: inline-block;
    border: none;
    font-size: 14px;
}

/* Template Title */
#dev-templates .dev-templates__item-title {
    padding: 15px 10px 5px;
    text-align: center;
}

#dev-templates .dev-templates__item-title p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Builder Icon */
#dev-templates .dev-templates__item-title img {
    height: 20px;
    margin-top: 10px;
}

/* Empty State (hidden by default) */
#dev-templates .dev-templates__empty {
    display: none;
}

#dev-templates .dev-templates__empty--visible {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: #999;
    font-size: 18px;
}

/* Responsive Button Hover */
#dev-templates .dui-btn:hover {
    background-color: #e95e0f;
}
