@font-face {
    font-family: 'ms-regular';
    src: url('../fonts/ms-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --page-bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #fbfcfe;
    --border-soft: #e2eaf3;
    --text-primary: #122a59;
    --text-secondary: #556579;
    --accent-red: #ee4348;
    --accent-blue: #1f68a9;
    --shadow-soft: 0 14px 30px rgba(18, 42, 89, 0.08);
}

body {
    background-color: var(--page-bg);
    color: #333333;
}

.mostra-projetos-page,
.projeto-single-page {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%);
    font-family: 'ms-regular', Arial, Helvetica, sans-serif;
}

.mostra-projetos-page .page-section {
    position: relative;
    padding: 26px 0;
}

.mostra-projetos-hero {
    padding-top: 40px;
    padding-bottom: 18px;
}

.mostra-projetos-hero__panel {
    position: relative;
    overflow: hidden;
    padding: 52px 42px;
    border: 1px solid rgba(18, 42, 89, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(31, 104, 169, 0.10), transparent 35%),
        radial-gradient(circle at top right, rgba(238, 67, 72, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: 0 24px 48px rgba(18, 42, 89, 0.08);
    text-align: center;
}

.mostra-projetos-hero__panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(18, 42, 89, 0.02), transparent 40%),
        linear-gradient(315deg, rgba(31, 104, 169, 0.04), transparent 42%);
    pointer-events: none;
}

.mostra-projetos-hero__title {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto 16px;
    color: var(--text-primary);
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.mostra-projetos-hero__intro {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.06rem;
    line-height: 1.8;
}

.mostra-projetos-hero__intro p {
    margin: 0;
}

.mostra-projetos-section {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.mostra-projetos__filters {
    margin-bottom: 24px;
    padding: 26px 24px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 42, 89, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(18, 42, 89, 0.08);
}

.mostra-projetos__filters-row {
    margin-bottom: 0;
}

.mostra-projetos__label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.mostra-projetos__field {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid #d9e4ef;
    border-radius: 18px;
    background: #ffffff;
}

.mostra-projetos__field--search {
    gap: 10px;
}

.mostra-projetos__field--search i {
    color: var(--accent-blue);
}

.mostra-projetos__select,
.mostra-projetos__input {
    width: 100%;
    height: 54px;
    margin: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.98rem;
}

.mostra-projetos__input::placeholder {
    color: #8ca0b8;
}

.mostra-projetos__filter-action {
    display: flex;
    align-items: flex-end;
}

.mostra-projetos__filter-button {
    width: 100%;
    height: 56px;
    border-radius: 18px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.mostra-projetos__active-filters {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

.mostra-projetos__clear {
    color: var(--accent-blue);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mostra-projetos__result-summary {
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mostra-projetos__grid-row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.projeto-card-shell {
    height: 100%;
    padding: 0 0.75rem;
    margin-bottom: 24px;
}

.projeto-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(18, 42, 89, 0.08);
    box-shadow: 0 16px 34px rgba(18, 42, 89, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projeto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(18, 42, 89, 0.14);
}

.projeto-card__image-link {
    display: block;
}

.projeto-card__image-wrap {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #cfe0f4 0%, #edf4fb 100%);
}

.projeto-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projeto-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.projeto-card__image--placeholder .material-icons {
    font-size: 52px;
}

.projeto-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.projeto-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.projeto-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #122a59;
    color: #ffffff;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.projeto-card__badge--secondary {
    background: #eaf3fc;
    color: var(--accent-blue);
}

.projeto-card__title {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 1.22rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projeto-card__excerpt {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projeto-card__meta {
    margin-top: auto;
}

.projeto-card__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.projeto-card__meta-item:last-child {
    margin-bottom: 0;
}

.projeto-card__meta-item i {
    font-size: 18px;
    color: var(--accent-blue);
}

.projeto-card__actions {
    padding-top: 18px;
}

.projeto-card__button {
    width: 100%;
    border-radius: 16px;
}

.mostra-projetos__empty-state {
    padding: 32px 24px;
    border: 1px solid rgba(18, 42, 89, 0.08);
    border-radius: 22px;
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.mostra-projetos__empty-state h3 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.mostra-projetos__empty-state p {
    margin: 0;
    color: var(--text-secondary);
}

.mostra-projetos__pagination {
    padding-top: 10px;
    text-align: center;
}

.mostra-projetos__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    margin: 0 4px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d6e2ef;
    color: var(--text-primary);
    font-family: 'ms-regular', Arial, Helvetica, sans-serif;
    transition: all 0.25s ease;
}

.mostra-projetos__pagination .page-numbers:hover,
.mostra-projetos__pagination .page-numbers.current {
    background: #122a59;
    border-color: #122a59;
    color: #ffffff;
}

.projeto-single-hero {
    padding: 36px 0 26px;
}

.projeto-single__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--accent-blue);
    font-size: 0.92rem;
}

.projeto-single__hero-card {
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #122a59 0%, #1f68a9 100%);
    box-shadow: 0 24px 44px rgba(18, 42, 89, 0.20);
}

.projeto-single__title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 2.5rem;
    line-height: 1.1;
}

.projeto-single__excerpt {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.04rem;
    line-height: 1.7;
}

.projeto-single__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.projeto-single__highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.92rem;
}

.projeto-single__highlights i {
    font-size: 18px;
}

.projeto-single-content {
    padding-bottom: 54px;
}

.projeto-single-content__row {
    margin-bottom: 0;
}

.projeto-single__image-panel {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.projeto-single__image {
    width: 100%;
    height: auto;
    display: block;
}

.projeto-single__body {
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(18, 42, 89, 0.08);
    box-shadow: var(--shadow-soft);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.85;
}

.projeto-single__body h2,
.projeto-single__body h3,
.projeto-single__body h4 {
    color: var(--text-primary);
}

.projeto-single__sidebar {
    position: sticky;
    top: 110px;
}

.projeto-single__sidebar-card {
    padding: 28px 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(18, 42, 89, 0.08);
    box-shadow: var(--shadow-soft);
}

.projeto-single__sidebar-title {
    margin: 0 0 20px;
    color: var(--text-primary);
    font-size: 1.35rem;
}

.projeto-single__info-item + .projeto-single__info-item {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 42, 89, 0.08);
}

.projeto-single__info-label {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-blue);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.projeto-single__info-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.projeto-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.projeto-single__tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf5fd;
    color: var(--accent-blue);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 1080px) {
    .mostra-projetos-hero__title {
        font-size: 2.55rem;
    }

    .projeto-single__title {
        font-size: 2.15rem;
    }
}

@media (max-width: 992px) {
    .mostra-projetos-page .page-section {
        padding: 22px 0;
    }

    .mostra-projetos__filters {
        padding: 22px 18px 14px;
    }

    .mostra-projetos__filter-action {
        margin-top: 6px;
    }

    .projeto-single__sidebar {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 600px) {
    .mostra-projetos-hero {
        padding-top: 24px;
    }

    .mostra-projetos-hero__panel {
        padding: 32px 20px;
        border-radius: 22px;
    }

    .mostra-projetos-hero__title {
        font-size: 2rem;
    }

    .mostra-projetos-hero__intro {
        font-size: 0.97rem;
        line-height: 1.7;
    }

    .mostra-projetos__filters {
        padding: 18px 16px 12px;
        border-radius: 20px;
    }

    .mostra-projetos__field,
    .mostra-projetos__filter-button {
        min-height: 52px;
        height: 52px;
    }

    .projeto-card__image-wrap {
        height: 200px;
    }

    .projeto-card__content {
        padding: 20px 18px 22px;
    }

    .projeto-single-hero {
        padding-top: 24px;
    }

    .projeto-single__hero-card,
    .projeto-single__body,
    .projeto-single__sidebar-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .projeto-single__title {
        font-size: 1.8rem;
    }

    .projeto-single__highlights {
        gap: 10px;
    }

    .projeto-single__highlights span {
        width: 100%;
        justify-content: flex-start;
    }
}
