/**
 * What Makes Us Different Widget Styles
 */

/* Widget Container */
.wmd-widget {
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
}

/* Header Section */
.wmd-header {
    margin-bottom: 40px;
}

.wmd-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 10px 0;
    text-align: center;
    color: #666;
}

.wmd-main-title {
    font-family: var(--iabt-font-family);
    font-size: var(--iabt-h2);
    font-weight: var(--iabt-font-bold);
    color: var(--iabt-text-heading);
    line-height: var(--iabt-line-height-heading);
    margin: 0 0 40px 0;
    text-align: center;
}

/* Responsive Design - Tablet */
@media screen and (max-width: 991px) {
    .wmd-main-title {
        font-size: 30px;
    }
}

/* Responsive Design - Mobile */
@media screen and (max-width: 767px) {
    .wmd-main-title {
        font-size: 24px;
    }
}

/* Features Grid */
.wmd-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

/* Desktop Layout - 3 columns */
@media (min-width: 992px) {
    .wmd-features-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 30px;
    }
}

/* Columns */
.wmd-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Feature Cards */
.wmd-feature-card {
    background: #fff;
    padding: 60px 25px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    margin-top: 40px;
}

.wmd-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Icon */
.wmd-icon {
    width: auto;
    height: auto;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    transition: all 0.3s ease;
    position: absolute;
    /* top position is dynamically set by icon size control: calc(-iconSize / 2) */
    left: 50%;
    transform: translateX(-50%);
}

.wmd-icon i {
    font-size: 40px;
}

.wmd-icon svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.wmd-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Feature Title */
.wmd-feature-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

/* Feature Description */
.wmd-feature-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

/* Center Image */
.wmd-center-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.wmd-center-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide center image on mobile */
.wmd-hide-mobile {
    display: none;
}

@media (min-width: 992px) {
    .wmd-hide-mobile {
        display: flex;
    }
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animated-slow {
    animation-duration: 1.5s;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInLeft {
    animation-name: fadeInLeft;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInRight {
    animation-name: fadeInRight;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 50px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Responsive Design */
@media (max-width: 991px) {
    .wmd-main-title {
        font-size: 28px;
    }

    .wmd-feature-card {
        padding: 25px 20px;
    }
}

@media (max-width: 767px) {
    .wmd-widget {
        padding: 30px 0;
    }

    .wmd-main-title {
        font-size: 24px;
    }

    .wmd-subtitle {
        font-size: 14px;
    }

    .wmd-feature-card {
        padding: 20px 15px;
    }

    .wmd-icon {
        width: 60px;
        height: 60px;
    }

    .wmd-icon i {
        font-size: 30px;
    }

    .wmd-icon svg,
    .wmd-icon img {
        width: 30px;
        height: 30px;
    }

    .wmd-feature-title {
        font-size: 16px;
    }

    .wmd-feature-description {
        font-size: 13px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .wmd-widget {
    min-height: 200px;
}
