/* DT Infobox Widget Styles - Modern Version */

.dt-infobox {
    position: relative;
    padding: 35px 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dt-infobox::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #f9b100;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dt-infobox:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Layout styles */
.dt-infobox.icon-position-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dt-infobox.icon-position-left {
    display: flex;
    text-align: left;
    align-items: flex-start;
}

.dt-infobox.icon-position-right {
    display: flex;
    flex-direction: row-reverse;
    text-align: right;
    align-items: flex-start;
}

/* Icon styles */
.dt-infobox-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: rgba(249, 177, 0, 0.1);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.dt-infobox:hover .dt-infobox-icon-wrapper {
    transform: scale(1.1);
    background-color: rgba(249, 177, 0, 0.15);
}

.dt-infobox.icon-position-top .dt-infobox-icon-wrapper {
    margin-bottom: 25px;
}

.dt-infobox.icon-position-left .dt-infobox-icon-wrapper {
    margin-right: 25px;
}

.dt-infobox.icon-position-right .dt-infobox-icon-wrapper {
    margin-left: 25px;
}

.dt-infobox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f9b100;
    font-size: 32px;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.dt-infobox-icon i, 
.dt-infobox-icon svg {
    width: 1em;
    height: 1em;
    font-size: 32px;
    display: inline-flex;
}

.dt-infobox-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.dt-infobox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.dt-infobox:hover .dt-infobox-image img {
    transform: scale(1.1);
}

/* Content styles */
.dt-infobox-content-wrapper {
    width: 100%;
}

.dt-infobox-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    color: #222;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.dt-infobox:hover .dt-infobox-title {
    color: #f9b100;
}

.dt-infobox-description {
    margin: 0 0 25px;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}

/* Button styles */
.dt-infobox-button {
    display: inline-flex;
    align-items: center;
    background-color: #f9b100;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dt-infobox-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dt-infobox-button:hover {
    background-color: #f9b100;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(249, 177, 0, 0.3);
}

.dt-infobox-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.dt-infobox-button-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dt-infobox-button:hover .dt-infobox-button-icon {
    transform: translateX(4px);
}

/* Hover effects */
.dt-infobox:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .dt-infobox.icon-position-left,
    .dt-infobox.icon-position-right {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .dt-infobox.icon-position-left .dt-infobox-icon-wrapper,
    .dt-infobox.icon-position-right .dt-infobox-icon-wrapper {
        margin: 0 0 20px 0;
    }
    
    .dt-infobox {
        padding: 30px 20px;
    }
}

/* Support Elementor's icon system */
.elementor-icon i, 
.elementor-icon svg {
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
}
