/* ==========================================================================
   Atic Info Box Widget
   ========================================================================== */

/* Base wrapper */
.atic-info-box {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 10px;
}

/* Ensure cards in the same Elementor row can match heights */
.elementor-widget-atic_info_box,
.elementor-widget-atic_info_box .elementor-widget-container {
    height: 100%;
}

.elementor-widget-atic_info_box {
    display: flex;
}

.elementor-widget-atic_info_box .elementor-widget-container {
    display: flex;
    flex: 1;
}

.elementor-widget-atic_info_box .atic-info-box {
    width: 100%;
    min-height: 100%;
}

/* ---- Icon-on-left layout (side-by-side) ---- */
.atic-info-box--icon-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.atic-info-box--icon-left .atic-info-box__icon-wrap {
    flex-shrink: 0;
    margin-bottom: 0;
}

.atic-info-box--icon-left .atic-info-box__body {
    flex: 1;
}

/* ---- Icon / Image wrap ---- */
.atic-info-box__icon-wrap {
    margin-bottom: 20px;
}

/* ---- Icon element ---- */
.atic-info-box__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    line-height: 1;
    vertical-align: middle;
}

.atic-info-box__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.atic-info-box__icon img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---- Text letter badge ---- */
.atic-info-box__icon--text {
    font-size: 2em;
    font-weight: 700;
}

/* ---- Body ---- */
.atic-info-box__body {
    flex: 1;
}

/* ---- Title ---- */
.atic-info-box__title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}

/* ---- Sub Title ---- */
.atic-info-box__sub-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
}

/* ---- Content text ---- */
.atic-info-box__content-text {
    margin: 0 0 16px;
    overflow: hidden;
}

.atic-info-box__content-text p:last-child {
    margin-bottom: 0;
}

/* ---- Button wrapper ---- */
.atic-info-box__button {
    display: flex;
    margin-top: 20px;
}

/* ---- Button ---- */
.atic-info-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.atic-info-box__btn:hover {
    text-decoration: none;
}

.atic-info-box__btn-icon--before,
.atic-info-box__btn-icon--after {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* ---- Clickable infobox overlay ---- */
.atic-info-box--clickable {
    cursor: pointer;
}

.atic-info-box__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}