/* =========================================================
   Juventude Vidigalense
   Artigos Técnicos
   ========================================================= */

.technical-articles-page {
    --technical-red: #e4002b;
    --technical-red-dark: #bb0023;
    --technical-ink: #171717;
    --technical-muted: #686868;
    --technical-line: #e7e7e7;
    --technical-surface: #f6f6f6;
    background: #fff;
    color: var(--technical-ink);
}

.technical-articles-page *,
.technical-articles-page *::before,
.technical-articles-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   Shared
   ========================================================= */

.technical-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--technical-red);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.technical-eyebrow--light {
    color: rgba(255, 255, 255, .7);
}

/*
 * Bootstrap antigo adiciona ::before e ::after aos .container.
 * Como alguns destes containers usam flex/grid, removemos esses
 * pseudo-elementos para não ocuparem posições invisíveis.
 */
.technical-hero__inner::before,
.technical-hero__inner::after,
.technical-video__inner::before,
.technical-video__inner::after {
    display: none;
    content: none;
}

/* =========================================================
   Hero
   ========================================================= */

.technical-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 52px;
    background:
            radial-gradient(
                    circle at 87% 28%,
                    rgba(255, 255, 255, .075),
                    transparent 23%
            ),
            linear-gradient(
                    120deg,
                    #101010 0%,
                    #191919 58%,
                    #292929 100%
            );
    color: #fff;
}

.technical-hero::after {
    position: absolute;
    right: -105px;
    bottom: -205px;
    width: 330px;
    height: 330px;
    border: 48px solid var(--technical-red);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.technical-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.technical-hero__content {
    max-width: 720px;
}

.technical-hero h1 {
    margin: 0 0 13px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 46px !important;
    font-weight: 800;
    line-height: 1.05 !important;
    letter-spacing: -1px;
    text-transform: none;
}

.technical-hero__content p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 16px;
    line-height: 1.6;
}

.technical-hero__visual {
    display: flex;
    flex: 0 0 190px;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.technical-hero__icon {
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: #fff;
    font-size: 29px;
}

/* =========================================================
   Main section
   ========================================================= */

.technical-section {
    padding: 68px 0 78px;
    background: #fff;
}

.technical-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 31px;
}

.technical-section-heading > div:first-child {
    max-width: 700px;
}

.technical-section-heading h2 {
    margin: 0 0 10px;
    color: var(--technical-ink);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.5px;
}

.technical-section-heading p {
    margin: 0;
    color: var(--technical-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* =========================================================
   Counter
   ========================================================= */

.technical-count {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--technical-surface);
    border: 1px solid var(--technical-line);
    border-radius: 8px;
    color: #777;
}

.technical-count > i {
    color: var(--technical-red);
    font-size: 14px;
}

.technical-count span,
.technical-count strong {
    display: block;
}

.technical-count span {
    color: #999;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.technical-count strong {
    margin-top: 2px;
    color: #333;
    font-size: 11px;
    font-weight: 800;
}

/* =========================================================
   Table
   ========================================================= */

.technical-table-wrap {
    overflow: hidden;
    border: 1px solid var(--technical-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .045);
}

.technical-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.technical-table th,
.technical-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #ededed;
    text-align: left;
    vertical-align: middle;
}

.technical-table th {
    background: #f7f7f7;
    color: #777;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.technical-table td {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.technical-table tbody tr {
    transition: background .15s ease;
}

.technical-table tbody tr:last-child td {
    border-bottom: 0;
}

.technical-table tbody tr:hover {
    background: #fcfcfc;
}

.technical-table__author {
    width: 220px;
}

.technical-table__year {
    width: 100px;
    text-align: center !important;
}

.technical-table__document {
    width: 165px;
    text-align: right !important;
}

/* =========================================================
   Article
   ========================================================= */

.technical-article-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.technical-article-title__icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    background: rgba(228, 0, 43, .07);
    border-radius: 50%;
    color: var(--technical-red);
    font-size: 14px;
}

.technical-article-title > div {
    min-width: 0;
}

.technical-article-title strong,
.technical-article-title small {
    display: block;
}

.technical-article-title strong {
    color: #222;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.technical-article-title small {
    display: none;
    margin-top: 3px;
    color: #888;
    font-size: 11px;
    line-height: 1.4;
}

.technical-year {
    display: inline-flex;
    min-width: 55px;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: #f3f3f3;
    border-radius: 999px;
    color: #555;
    font-size: 10px;
    font-weight: 800;
}

.technical-empty-value {
    color: #bbb;
}

/* =========================================================
   PDF
   ========================================================= */

.technical-document-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    background: var(--technical-red);
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}

.technical-document-link:hover,
.technical-document-link:focus {
    background: var(--technical-red-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.technical-document-link .fa-external-link {
    font-size: 8px;
    opacity: .7;
}

.technical-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   Empty
   ========================================================= */

.technical-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px;
    background: var(--technical-surface);
    border: 1px solid var(--technical-line);
    border-radius: 12px;
}

.technical-empty__icon {
    display: flex;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    background: rgba(228, 0, 43, .08);
    border-radius: 50%;
    color: var(--technical-red);
    font-size: 21px;
}

.technical-empty h3 {
    margin: 0 0 5px;
    color: #292929;
    font-size: 17px;
    font-weight: 800;
}

.technical-empty p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

/* =========================================================
   YouTube
   ========================================================= */

.technical-video {
    padding: 42px 0;
    background: #f6f6f6;
    border-top: 1px solid #ececec;
}

.technical-video__inner {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.technical-video__icon {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    background: var(--technical-red);
    border-radius: 50%;
    color: #fff;
    font-size: 25px;
}

.technical-video__content {
    min-width: 0;
    max-width: 700px;
}

.technical-video__content .technical-eyebrow {
    margin-bottom: 5px;
}

.technical-video h2 {
    margin: 0 0 7px;
    color: #202020;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
}

.technical-video p {
    margin: 0;
    color: #6f6f6f;
    font-size: 13px;
    line-height: 1.6;
}

.technical-video__button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    background: #202020;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}

.technical-video__button:hover,
.technical-video__button:focus {
    background: var(--technical-red);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991px) {
    .technical-hero {
        padding: 44px 0 48px;
    }

    .technical-hero h1 {
        font-size: 41px !important;
    }

    .technical-hero__visual {
        display: none;
    }

    .technical-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .technical-table__author {
        width: 180px;
    }

    .technical-video__inner {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 18px;
    }

    .technical-video__icon {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }

    .technical-video__button {
        grid-column: 2;
        justify-self: start;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
    .technical-hero {
        padding: 38px 0 40px;
    }

    .technical-hero::after {
        right: -155px;
        bottom: -190px;
        width: 290px;
        height: 290px;
        border-width: 42px;
    }

    .technical-hero h1 {
        font-size: 34px !important;
    }

    .technical-hero__content p {
        font-size: 15px;
    }

    .technical-section {
        padding: 50px 0 58px;
    }

    .technical-section-heading {
        margin-bottom: 25px;
    }

    .technical-section-heading h2 {
        font-size: 28px;
    }

    .technical-count {
        width: 100%;
    }

    /* Transformar tabela em cartões */
    .technical-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .technical-table,
    .technical-table tbody,
    .technical-table tr,
    .technical-table td {
        display: block;
        width: 100%;
    }

    .technical-table thead {
        display: none;
    }

    .technical-table tbody {
        display: grid;
        gap: 14px;
    }

    .technical-table tr {
        overflow: hidden;
        padding: 19px;
        background: #fff;
        border: 1px solid var(--technical-line);
        border-radius: 10px;
        box-shadow: 0 6px 22px rgba(0, 0, 0, .035);
    }

    .technical-table td {
        padding: 0;
        border: 0;
        text-align: left !important;
    }

    .technical-table td + td {
        margin-top: 13px;
        padding-top: 13px;
        border-top: 1px solid #eee;
    }

    .technical-table__author {
        display: none !important;
    }

    .technical-article-title {
        align-items: flex-start;
    }

    .technical-article-title small {
        display: block;
    }

    .technical-table__year::before {
        display: inline-block;
        margin-right: 8px;
        color: #999;
        content: "Ano";
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .7px;
        text-transform: uppercase;
    }

    .technical-document-link {
        width: 100%;
        min-height: 43px;
    }

    .technical-video {
        padding: 38px 0;
    }

    .technical-video__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .technical-video__icon {
        width: 52px;
        height: 52px;
        font-size: 21px;
    }

    .technical-video h2 {
        font-size: 21px;
    }

    .technical-video__button {
        grid-column: auto;
        width: 100%;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .technical-articles-page *,
    .technical-articles-page *::before,
    .technical-articles-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}