/* ==========================================================================
   IAPS Tabs Widget
   Frontend Style
   ========================================================================== */

.iaps-tabs-widget {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

.iaps-tabs-widget *,
.iaps-tabs-widget *::before,
.iaps-tabs-widget *::after {
    box-sizing: border-box;
}

.iaps-tabs-widget .dashicons {
    font-family: dashicons !important;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.iaps-tabs-widget__navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 55px;
}

.iaps-tabs-widget__nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 999px;
    border: 1px solid rgba(21, 172, 41, 0.25);
    background: rgba(21, 172, 41, 0.05);
    color: #166534;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: none;
}

.iaps-tabs-widget__nav-item:hover {
    background: rgba(21, 172, 41, 0.1);
    border-color: rgba(21, 172, 41, 0.5);
    color: #166534;
}

.iaps-tabs-widget__nav-item:hover,
.iaps-tabs-widget__nav-item:focus {
    background: rgba(21, 172, 41, 0.1);
    border-color: rgba(21, 172, 41, 0.5);
    color: #166534;
}

.iaps-tabs-widget__nav-item.active {
    background: linear-gradient(135deg,
            #16a34a,
            #15803d);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(22,
            163,
            74,
            0.25);
}

.iaps-tabs-widget__nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.iaps-tabs-widget__nav-icon i,
.iaps-tabs-widget__nav-icon svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.iaps-tabs-widget__nav-title {
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   TABS CONTENT
   ========================================================================== */

.iaps-tabs-widget__tabs-content {
    position: relative;
}

.iaps-tabs-widget__tab-panel {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .25s ease,
        visibility .25s ease;
    height: 0;
    overflow: hidden;
}

.iaps-tabs-widget__tab-panel.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */

.iaps-tabs-widget__section-header {
    margin-bottom: 50px;
}

.iaps-tabs-widget__section-title {
    margin: 0;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #111111;
}

/* ==========================================================================
   SIMPLE DOCUMENTS
   ========================================================================== */

.iaps-tabs-widget__documents-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==========================================================================
   INITIAL HIDDEN ITEMS
   ========================================================================== */

.iaps-tabs-widget__document-item.is-hidden {
    display: none;
}

/* ==========================================================================
   DOCUMENT CARD
   ========================================================================== */

.iaps-tabs-widget__document-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #ececec;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.iaps-tabs-widget__document-card:hover {
    border-color: #15AC29;

    box-shadow:
        0 8px 20px rgba(0,
            0,
            0,
            0.04),
        0 0 0 1px rgba(21,
            172,
            41,
            0.10);
}

.iaps-tabs-widget__document-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.iaps-tabs-widget__document-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #111111;
}

.iaps-tabs-widget__document-description {
    font-size: 13px;
    line-height: 1.5;
    color: #777777;
}

/* ==========================================================================
   DOCUMENT ACTION
   ========================================================================== */

.iaps-tabs-widget__document-action {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(21,
            172,
            41,
            0.08);

    color: #166534;
}

.iaps-tabs-widget__document-action .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   BADGE
   ========================================================================== */

.iaps-tabs-widget__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #666666;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

/* ==========================================================================
   GROUPS
   ========================================================================== */

.iaps-tabs-widget__groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.iaps-tabs-widget__group {
    width: 100%;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid #ececec;
    background: #ffffff;
    transition: all 0.25s ease;
}

.iaps-tabs-widget__group:not(.is-open):hover {
    border-color: #15AC29;
    box-shadow:
        0 8px 20px rgba(0,
            0,
            0,
            0.04),
        0 0 0 1px rgba(21,
            172,
            41,
            0.10);
}

/* ==========================================================================
   GROUP HEADER
   ========================================================================== */

.iaps-tabs-widget__group-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.iaps-tabs-widget__group-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* ==========================================================================
   GROUP INTERACTION
   ========================================================================== */

.iaps-tabs-widget__group[data-accordion="yes"] .iaps-tabs-widget__group-header {
    cursor: pointer;
}

.iaps-tabs-widget__group[data-accordion="no"] .iaps-tabs-widget__group-header {
    cursor: default;
}

.iaps-tabs-widget__group-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #111111;
}

.iaps-tabs-widget__group-subtitle {
    font-size: 13px;
    line-height: 1.5;
    color: #777777;
}

/* ==========================================================================
   GROUP TOGGLE
   ========================================================================== */

.iaps-tabs-widget__group-toggle {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background: rgba(21, 172, 41, 0.08) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #166534;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.iaps-tabs-widget__group-toggle:hover,
.iaps-tabs-widget__group-toggle:focus,
.iaps-tabs-widget__group-toggle:active {
    background: rgba(21, 172, 41, 0.08) !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #166534;
}

.iaps-tabs-widget__group-toggle .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    transition: transform 0.25s ease;
}

.iaps-tabs-widget__group.is-open .iaps-tabs-widget__group-toggle .dashicons {
    transform: rotate(180deg);
}

.iaps-tabs-widget__group-indicator {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
/* ========================================================================== 
   GROUP CONTENT - SUAVE SEM MOVER LAYOUT INTERNO
   ========================================================================== */

.iaps-tabs-widget__group-content {
    max-height: none;
    opacity: 1;
    overflow: visible;
    margin-top: 24px;
    transition: opacity 0.35s ease, margin-top 0.35s ease;
}

.iaps-tabs-widget__group-content.closed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
    overflow: hidden;
}

.iaps-tabs-widget__group.is-open .iaps-tabs-widget__group-content {
    margin-top: 24px;
}

/* ==========================================================================
   CONTENT STACK
   ========================================================================== */

.iaps-tabs-widget__content-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ==========================================================================
   LOAD MORE
   ========================================================================== */

.iaps-tabs-widget__load-more-wrapper {
    margin-top: 30px;
    text-align: center;
}

.iaps-tabs-widget__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg,
            #16a34a,
            #15803d);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}


/* ==========================================================================
   LOAD MORE LOADER
   ========================================================================== */

.iaps-tabs-widget__load-more {
    position: relative;
    min-width: 160px;
    transition: all 0.25s ease;
}

.iaps-tabs-widget__load-more-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: iaps-tabs-spin 0.7s linear infinite;
}

.iaps-tabs-widget__load-more.is-loading {
    pointer-events: none;
    opacity: 0.9;
}

.iaps-tabs-widget__load-more.is-loading .iaps-tabs-widget__load-more-text {
    display: none;
}

.iaps-tabs-widget__load-more.is-loading .iaps-tabs-widget__load-more-loader {
    display: inline-block;
}

@keyframes iaps-tabs-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {

    .iaps-tabs-widget {
        padding: 50px 24px;
    }

    .iaps-tabs-widget__section-title {
        font-size: 28px;
    }

    .iaps-tabs-widget__document-card {
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {

    .iaps-tabs-widget {
        padding: 40px 16px;
    }

    .iaps-tabs-widget__navigation {
        gap: 10px;
    }

    .iaps-tabs-widget__nav-item {
        font-size: 13px;
        padding: 8px 12px;
    }

    .iaps-tabs-widget__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .iaps-tabs-widget__document-card {
        flex-direction: column;

        align-items: flex-start;
        gap: 12px;
    }

    .iaps-tabs-widget__document-action {
        align-self: flex-end;
        width: 38px;
        height: 38px;
    }

    .iaps-tabs-widget__document-title {
        font-size: 15px;
    }

    .iaps-tabs-widget__document-description {
        font-size: 12px;
    }

    .iaps-tabs-widget__group {
        padding: 20px;
    }

    .iaps-tabs-widget__group-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .iaps-tabs-widget__nav-item {
        flex: 1 1 auto;
        justify-content: center;
    }

    .iaps-tabs-widget__section-title {
        font-size: 22px;
    }
}

body {
    overflow-x: hidden;
}