/**
 * UltraAddons Feature List Widget Stylesheet
 *
 * Scoped, responsive, lightweight styling for Feature List widget.
 * Supports Left, Center, and Right layouts, Square & Rhombus icon shapes,
 * animated connector lines, custom icons, and individual item overrides.
 *
 * @package UltraAddons
 */

/* ==========================================================================
   1. BASE FEATURE LIST CONTAINER & LIST
   ========================================================================== */
.ua-feature-list-wrap {
    display: block;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 20px;
}

.ua-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.ua-feature-list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    box-sizing: border-box;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   2. LAYOUTS (LEFT, RIGHT, CENTER)
   ========================================================================== */
/* Left Layout (Default) */
.ua-feature-list-left .ua-feature-list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: left;
}

.ua-feature-list-left .ua-feature-list-icon-wrap {
    margin-right: 25px;
}

.ua-feature-list-left .ua-feature-list-content-wrap {
    text-align: left;
}

/* Right Layout */
.ua-feature-list-right .ua-feature-list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: right;
}

.ua-feature-list-right .ua-feature-list-icon-wrap {
    margin-left: 25px;
}

.ua-feature-list-right .ua-feature-list-content-wrap {
    text-align: right;
}

/* Center Layout */
.ua-feature-list-center .ua-feature-list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

.ua-feature-list-center .ua-feature-list-content-wrap {
    text-align: center;
}

/* Text Alignments when Center Layout is active */
.ua-feature-list-align-flex-start .ua-feature-list-title,
.ua-feature-list-align-flex-start .ua-feature-list-description {
    text-align: left;
}

.ua-feature-list-align-center .ua-feature-list-title,
.ua-feature-list-align-center .ua-feature-list-description {
    text-align: center;
}

.ua-feature-list-align-flex-end .ua-feature-list-title,
.ua-feature-list-align-flex-end .ua-feature-list-description {
    text-align: right;
}

/* ==========================================================================
   3. ICON & IMAGE CONTAINER
   ========================================================================== */
.ua-feature-list-icon-wrap {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 1;
}

.ua-feature-list-wrap .ua-feature-list-icon-inner-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #3872FA;
    color: #ffffff;
    border-radius: 5px;
    position: relative;
    z-index: 2;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.ua-feature-list-icon-inner-wrap i {
    line-height: 1;
    color: inherit;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.ua-feature-list-icon-inner-wrap svg {
    width: 25px;
    height: auto;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
    -webkit-transition: fill 0.3s ease;
    transition: fill 0.3s ease;
}

.ua-feature-list-icon-inner-wrap img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: inherit;
}

/* Circle Icon Shape */
.ua-feature-list-circle .ua-feature-list-icon-inner-wrap,
.ua-feature-list-wrap.ua-feature-list-circle .ua-feature-list-icon-inner-wrap {
    border-radius: 50% !important;
}

/* Rhombus Icon Shape & Spacing Compensation */
.ua-feature-list-rhombus .ua-feature-list-icon-wrap {
    margin: 16px;
}

.ua-feature-list-rhombus.ua-feature-list-left .ua-feature-list-icon-wrap,
.ua-feature-list-left.ua-feature-list-rhombus .ua-feature-list-icon-wrap,
.ua-feature-list-rhombus .ua-feature-list-left .ua-feature-list-icon-wrap {
    margin: 16px 30px 16px 16px;
}

.ua-feature-list-rhombus.ua-feature-list-right .ua-feature-list-icon-wrap,
.ua-feature-list-right.ua-feature-list-rhombus .ua-feature-list-icon-wrap,
.ua-feature-list-rhombus .ua-feature-list-right .ua-feature-list-icon-wrap {
    margin: 16px 16px 16px 30px;
}

.ua-feature-list-rhombus.ua-feature-list-center .ua-feature-list-icon-wrap,
.ua-feature-list-center.ua-feature-list-rhombus .ua-feature-list-icon-wrap,
.ua-feature-list-rhombus .ua-feature-list-center .ua-feature-list-icon-wrap {
    margin: 16px auto;
}

.ua-feature-list-rhombus .ua-feature-list-icon-inner-wrap {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.ua-feature-list-rhombus .ua-feature-list-icon-wrap i,
.ua-feature-list-rhombus .ua-feature-list-icon-wrap svg,
.ua-feature-list-rhombus .ua-feature-list-icon-wrap img {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/* ==========================================================================
   4. CONNECTOR LINE
   ========================================================================== */
.ua-feature-list-line-yes .ua-feature-list-icon-wrap {
    position: relative;
}

.ua-feature-list-item:not(:last-of-type) .ua-feature-list-line {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 0;
    height: calc(100% + 35px);
    border-left: 2px solid #3872FA;
    z-index: 1;
}

.ua-feature-list-item:last-of-type .ua-feature-list-line,
.ua-feature-list-center .ua-feature-list-line {
    display: none !important;
}

/* ==========================================================================
   5. CONTENT (TITLE & DESCRIPTION)
   ========================================================================== */
.ua-feature-list-content-wrap {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.ua-feature-list-title {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #000000;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.ua-feature-list-title a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.ua-feature-list-title a:hover {
    color: #3872FA;
}

.ua-feature-list-description {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #6E6B6B;
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.ua-feature-list-description:last-child {
    margin-bottom: 0;
}
