/**
 * Frontend Styles - Portal Transparência
 * Modern High-Craft Design System by comunikar.ia.br (Elementor Full Width Compatible)
 */

:root {
    --pt-primary: #0056b3;
    --pt-primary-hover: #004085;
    --pt-primary-light: rgba(0, 86, 179, 0.08);
    --pt-secondary: #0d9488;
    --pt-bg-page: #f8fafc;
    --pt-bg-card: #ffffff;
    --pt-border: #e2e8f0;
    --pt-border-hover: #cbd5e1;
    --pt-text-main: #0f172a;
    --pt-text-muted: #64748b;
    --pt-radius-sm: 6px;
    --pt-radius: 12px;
    --pt-radius-lg: 16px;
    --pt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --pt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --pt-shadow-hover: 0 10px 20px -5px rgba(0, 86, 179, 0.1), 0 6px 10px -4px rgba(0, 0, 0, 0.04);
    --pt-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Ocultar Títulos Nativos do Tema em Páginas com o Portal
   ========================================================================== */

.page-template-elementor_header_footer .entry-title,
.page-template-elementor_header_footer .entry-header,
.page-template-elementor_header_footer h1.page-title,
body.page-slug-portal-transparencia .entry-title,
body.page-slug-portal-transparencia .entry-header,
body.page-slug-portal-transparencia h1.page-title,
body.page-slug-portal-transparencia .wp-block-post-title,
body:has(#pt-portal-app) .entry-header,
body:has(#pt-portal-app) .entry-title,
body:has(#pt-portal-app) h1.page-title,
body:has(#pt-portal-app) .wp-block-post-title {
    display: none !important;
}

/* ==========================================================================
   Container Principal (Elementor Largura Total)
   ========================================================================== */

.pt-portal-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 60px auto;
    padding-top: var(--pt-top-spacing, 40px);
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pt-text-main);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Compensação automática para sites com Sticky Header Effects (she-header-yes) e menus transparentes */
.she-header-yes ~ #pt-portal-app,
.she-header-yes ~ * #pt-portal-app,
header:has(.she-header-yes) ~ #pt-portal-app,
header:has(.she-header-yes) ~ * #pt-portal-app,
body:has(.she-header-yes) .pt-portal-wrapper,
body:has(.header_she-header-transparent-yes) .pt-portal-wrapper,
body:has([class*="she-header"]) .pt-portal-wrapper,
body:has([data-settings*="transparent"]) .pt-portal-wrapper,
body.has-transparent-header .pt-portal-wrapper {
    padding-top: max(var(--pt-top-spacing, 40px), 210px) !important;
}

body.admin-bar:has(.she-header-yes) .pt-portal-wrapper,
body.admin-bar:has(.header_she-header-transparent-yes) .pt-portal-wrapper,
body.admin-bar:has([class*="she-header"]) .pt-portal-wrapper,
body.admin-bar:has([data-settings*="transparent"]) .pt-portal-wrapper,
body.admin-bar.has-transparent-header .pt-portal-wrapper {
    padding-top: max(var(--pt-top-spacing, 40px), 242px) !important;
}

@media (max-width: 768px) {
    .she-header-yes ~ #pt-portal-app,
    .she-header-yes ~ * #pt-portal-app,
    header:has(.she-header-yes) ~ #pt-portal-app,
    header:has(.she-header-yes) ~ * #pt-portal-app,
    body:has(.she-header-yes) .pt-portal-wrapper,
    body:has(.header_she-header-transparent-yes) .pt-portal-wrapper,
    body:has([class*="she-header"]) .pt-portal-wrapper,
    body:has([data-settings*="transparent"]) .pt-portal-wrapper,
    body.has-transparent-header .pt-portal-wrapper {
        padding-top: max(var(--pt-top-spacing, 40px), 125px) !important;
    }

    body.admin-bar:has(.she-header-yes) .pt-portal-wrapper,
    body.admin-bar:has(.header_she-header-transparent-yes) .pt-portal-wrapper,
    body.admin-bar:has([class*="she-header"]) .pt-portal-wrapper,
    body.admin-bar:has([data-settings*="transparent"]) .pt-portal-wrapper,
    body.admin-bar.has-transparent-header .pt-portal-wrapper {
        padding-top: max(var(--pt-top-spacing, 40px), 160px) !important;
    }
}

.pt-portal-wrapper *,
.pt-portal-wrapper *::before,
.pt-portal-wrapper *::after {
    box-sizing: inherit;
}

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

.pt-portal-hero {
    background: #ffffff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: 36px 40px;
    margin-bottom: 24px;
    box-shadow: var(--pt-shadow-sm);
}

.pt-portal-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.pt-portal-hero-text {
    max-width: 780px;
}

.pt-portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--pt-primary);
    background: var(--pt-primary-light);
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.pt-portal-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 10px 0;
    color: var(--pt-text-main);
    line-height: 1.2;
}

.pt-portal-description {
    font-size: 1.05rem;
    color: var(--pt-text-muted);
    margin: 0;
    line-height: 1.6;
}

.pt-portal-hero-badge {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 16px 24px;
    min-width: 140px;
}

.pt-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pt-primary);
    line-height: 1;
}

.pt-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pt-text-muted);
    margin-top: 6px;
    text-align: center;
}

/* ==========================================================================
   Barra de Busca & Filtros
   ========================================================================== */

.pt-search-filter-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 12px 16px;
    margin-bottom: 24px;
    box-shadow: var(--pt-shadow-sm);
    align-items: center;
}

.pt-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.pt-search-icon {
    position: absolute;
    left: 14px;
    color: var(--pt-text-muted);
    pointer-events: none;
}

.pt-search-field {
    width: 100%;
    height: 46px;
    padding: 0 40px 0 44px;
    font-size: 0.95rem;
    border: 1.5px solid var(--pt-border);
    border-radius: var(--pt-radius);
    background: #f8fafc;
    color: var(--pt-text-main);
    transition: var(--pt-transition);
}

.pt-search-field:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--pt-primary);
    box-shadow: 0 0 0 3px var(--pt-primary-light);
}

.pt-btn-clear-search {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--pt-text-muted);
    cursor: pointer;
    padding: 4px;
}

.pt-btn-clear-search:hover {
    color: var(--pt-text-main);
}

.pt-selects-row {
    display: flex;
    gap: 10px;
}

.pt-select-box {
    position: relative;
    display: flex;
    align-items: center;
}

.pt-select-input {
    appearance: none;
    -webkit-appearance: none;
    height: 46px;
    padding: 0 38px 0 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--pt-border);
    border-radius: var(--pt-radius);
    background: #f8fafc;
    color: var(--pt-text-main);
    cursor: pointer;
    transition: var(--pt-transition);
    white-space: nowrap;
}

.pt-select-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--pt-primary);
}

.pt-select-chevron {
    position: absolute;
    right: 14px;
    pointer-events: none;
    color: var(--pt-text-muted);
}

/* ==========================================================================
   Category Tabs Navigation (Menu Fixo por Tipos)
   ========================================================================== */

.pt-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.pt-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pt-text-muted);
    background: #ffffff;
    border: 1px solid var(--pt-border);
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--pt-transition);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pt-tab-btn:hover {
    color: var(--pt-text-main);
    border-color: var(--pt-border-hover);
    background: #f8fafc;
}

.pt-tab-btn.is-active {
    background: var(--pt-primary);
    color: #ffffff;
    border-color: var(--pt-primary);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.25);
}

.pt-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f1f5f9;
    color: var(--pt-text-muted);
}

.pt-tab-btn.is-active .pt-tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Bloco de Declarações Institucionais & MROSC (Licitações, RH CLT)
   ========================================================================== */

.pt-notice-card {
    background: #ffffff;
    border: 1px solid var(--pt-border);
    border-left: 4px solid var(--pt-primary);
    border-radius: var(--pt-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--pt-shadow-sm);
    transition: var(--pt-transition);
}

.pt-notice-card:hover {
    box-shadow: var(--pt-shadow-md);
    border-color: var(--pt-border-hover);
    border-left-color: var(--pt-primary);
}

.pt-notice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.pt-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--pt-primary-light);
    color: var(--pt-primary);
    flex-shrink: 0;
}

.pt-notice-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pt-text-main);
    margin: 0;
    letter-spacing: -0.01em;
}

.pt-notice-text {
    font-size: 0.95rem;
    line-height: 1.68;
    color: #334155;
}

.pt-notice-text p {
    margin: 0 0 12px 0;
}

.pt-notice-text p:last-child {
    margin-bottom: 0;
}

.pt-notice-text strong {
    color: var(--pt-text-main);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pt-notice-card {
        padding: 18px 16px;
        margin-bottom: 18px;
    }

    .pt-notice-title {
        font-size: 1.05rem;
    }

    .pt-notice-text {
        font-size: 0.88rem;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Grid de Documentos (Layout em Cards Elegantes)
   ========================================================================== */

.pt-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 22px;
}

.pt-card-item {
    display: flex;
    flex-direction: column;
    background: var(--pt-bg-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    box-shadow: var(--pt-shadow-sm);
    transition: var(--pt-transition);
    position: relative;
    overflow: hidden;
}

.pt-card-item:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--pt-shadow-hover);
}

.pt-card-item.is-hidden {
    display: none !important;
}

.pt-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 22px 24px;
}

/* Topo do Card */
.pt-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.pt-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pt-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.pt-chip-type {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.pt-chip-year {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.pt-file-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

/* Corpo do Card */
.pt-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.pt-card-icon-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pt-icon-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--pt-radius-sm);
    background: #f8fafc;
    border: 1px solid var(--pt-border);
    color: var(--pt-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.pt-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pt-text-main);
    margin: 0;
    line-height: 1.35;
    word-break: break-word;
}

.pt-card-excerpt {
    font-size: 0.88rem;
    color: var(--pt-text-muted);
    margin: 0;
    line-height: 1.5;
}

.pt-card-project {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    margin-top: 4px;
}

/* Rodapé do Card */
.pt-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--pt-border);
}

.pt-card-meta {
    font-size: 0.8rem;
    color: var(--pt-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pt-btn-card-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pt-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--pt-radius-sm);
    transition: var(--pt-transition);
}

.pt-btn-card-download:hover {
    background: var(--pt-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.25);
}

.pt-btn-card-disabled {
    font-size: 0.8rem;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px dashed var(--pt-border);
    padding: 6px 12px;
    border-radius: var(--pt-radius-sm);
}

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

.pt-empty-state-card {
    text-align: center;
    padding: 60px 24px;
    background: #ffffff;
    border: 2px dashed var(--pt-border);
    border-radius: var(--pt-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pt-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-bottom: 16px;
}

.pt-empty-state-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--pt-text-main);
}

.pt-empty-state-card p {
    font-size: 0.95rem;
    color: var(--pt-text-muted);
    margin: 0 0 20px 0;
    max-width: 500px;
}

.pt-btn-reset-filters {
    background: var(--pt-primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--pt-radius-sm);
    cursor: pointer;
    transition: var(--pt-transition);
}

.pt-btn-reset-filters:hover {
    background: var(--pt-primary-hover);
}

/* ==========================================================================
   Responsividade & Visualização Mobile Aprimorada
   ========================================================================== */

@media (max-width: 900px) {
    .pt-portal-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .pt-portal-hero-badge {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .pt-search-filter-card {
        grid-template-columns: 1fr;
    }

    .pt-selects-row {
        width: 100%;
    }

    .pt-select-box {
        flex: 1;
    }

    .pt-select-input {
        width: 100%;
    }
}

/* Mobile & Telas Menores (Smartphones) */
@media (max-width: 768px) {
    .pt-portal-wrapper {
        padding-top: var(--pt-top-spacing, 35px);
        padding-left: 14px;
        padding-right: 14px;
        margin: 0 auto 40px auto;
    }

    .pt-portal-hero {
        padding: 22px 18px;
        margin-bottom: 16px;
    }

    .pt-portal-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .pt-portal-hero-badge {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 18px;
        min-width: 0;
    }

    .pt-stat-number {
        font-size: 1.6rem;
    }

    .pt-portal-title {
        font-size: 1.55rem;
        margin-bottom: 6px;
    }

    .pt-portal-description {
        font-size: 0.92rem;
    }

    /* Carrossel de Abas com Rolagem Horizontal Suave */
    .pt-category-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 6px;
        margin-bottom: 18px;
        gap: 8px;
    }

    .pt-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .pt-tab-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    /* Controles de Busca e Filtros */
    .pt-search-filter-card {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 10px;
        margin-bottom: 18px;
    }

    .pt-search-field {
        height: 44px;
        font-size: 0.9rem;
    }

    .pt-selects-row {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .pt-select-box {
        width: 100%;
    }

    .pt-select-input {
        width: 100%;
        height: 44px;
    }

    /* Grid de Documentos em Coluna Única no Mobile */
    .pt-documents-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pt-card-inner {
        padding: 18px 16px;
    }

    .pt-card-title {
        font-size: 1rem;
    }

    .pt-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pt-card-meta {
        justify-content: space-between;
        width: 100%;
    }

    .pt-btn-card-download {
        width: 100%;
        justify-content: center;
        height: 44px;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   Galeria Contextual de Projetos (Injeção no Rodapé de Projetos / Costamar)
   ========================================================================== */

.pt-project-gallery-wrapper {
    box-sizing: border-box;
    clear: both;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 30px auto;
    padding: 32px 36px;
    background: #ffffff;
    border: 1px solid var(--pt-border, #e2e8f0);
    border-radius: var(--pt-radius-lg, 16px);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pt-text-main, #0f172a);
    line-height: 1.5;
    position: relative;
}

.pt-project-gallery-wrapper *,
.pt-project-gallery-wrapper *::before,
.pt-project-gallery-wrapper *::after {
    box-sizing: inherit;
}

.pt-project-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pt-border, #e2e8f0);
}

.pt-project-header-info {
    flex: 1;
}

.pt-project-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pt-secondary, #0d9488);
    background: rgba(13, 148, 136, 0.08);
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.pt-project-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--pt-text-main, #0f172a);
    margin: 0 0 6px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.pt-project-description {
    font-size: 0.95rem;
    color: var(--pt-text-muted, #64748b);
    margin: 0;
    line-height: 1.5;
}

.pt-project-portal-link {
    flex-shrink: 0;
}

.pt-btn-portal-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--pt-primary, #0056b3) !important;
    background: #ffffff;
    border: 1.5px solid var(--pt-primary, #0056b3);
    border-radius: 8px;
    text-decoration: none !important;
    transition: var(--pt-transition, all 0.2s ease);
    white-space: nowrap;
}

.pt-btn-portal-outline:hover {
    background: var(--pt-primary, #0056b3);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
    transform: translateY(-1px);
}

/* Grid de Documentos do Projeto */
.pt-project-docs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pt-project-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--pt-border, #e2e8f0);
    border-radius: var(--pt-radius, 12px);
    transition: var(--pt-transition, all 0.2s ease);
}

.pt-project-doc-item:hover {
    background: #ffffff;
    border-color: var(--pt-primary, #0056b3);
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.08);
    transform: translateY(-1px);
}

.pt-project-doc-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.pt-project-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.pt-project-doc-info {
    flex: 1;
    min-width: 0;
}

.pt-project-doc-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.pt-project-doc-tags .pt-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.pt-project-doc-tags .pt-badge-type {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.pt-project-doc-tags .pt-badge-year {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.pt-project-doc-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--pt-text-main, #0f172a);
    margin: 0 0 4px 0;
    line-height: 1.35;
    word-break: break-word;
}

.pt-project-doc-meta {
    font-size: 0.82rem;
    color: var(--pt-text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pt-project-doc-right {
    flex-shrink: 0;
}

.pt-btn-project-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--pt-primary, #0056b3);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--pt-transition, all 0.2s ease);
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.2);
}

.pt-btn-project-download:hover {
    background: var(--pt-primary-hover, #004085);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .pt-project-gallery-wrapper {
        padding: 22px 18px;
        margin: 36px auto 20px auto;
    }

    .pt-project-gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pt-project-portal-link {
        width: 100%;
    }

    .pt-btn-portal-outline {
        width: 100%;
        justify-content: center;
    }

    .pt-project-doc-item {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px;
    }

    .pt-project-doc-right {
        width: 100%;
    }

    .pt-btn-project-download {
        width: 100%;
        justify-content: center;
        height: 44px;
    }
}
