/* ==========================================================================
   Guia de Exames (Page & Detail)
   ========================================================================== */
.guia-page-header {
    background: transparent;
    padding: 24px 0 40px;
}

.guia-header-inner {
    background-image: url('../img/fundo-topo-paginas.png');
    background-size: cover;
    background-position: right center;
    border-radius: 32px;
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background-color: var(--color-ice);
}

.guia-header-content {
    flex: 1;
    max-width: 480px;
    text-align: left;
}

.guia-page-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 16px;
    line-height: 1.1;
}

.guia-page-header h1 span {
    color: var(--color-green);
}

.guia-page-header p {
    font-size: 16px;
    color: var(--color-navy);
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.guia-page-search {
    flex: 1;
    max-width: 580px;
}

.guia-search-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 8px 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04);
}

.guia-search-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--color-navy);
    opacity: 0.5;
    flex-shrink: 0;
}

.guia-search-wrapper input {
    flex: 1;
    height: 64px;
    font-size: 16px;
    padding: 0 16px;
    border: none;
    color: var(--color-navy);
    background: transparent;
    outline: none;
}

.guia-search-wrapper input::placeholder {
    color: var(--color-muted);
}

.guia-search-hint {
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-muted);
    padding-left: 24px;
}
.guia-page-content {
    padding: 60px 0 100px;
}
.guia-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.guia-section-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 181, 134, 0.08);
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guia-section-icon svg {
    width: 28px;
    height: 28px;
}

.guia-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}

.guia-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--color-green);
    border-radius: 3px;
}

.guia-popular-grid-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}
@media (min-width: 768px) {
    .guia-popular-grid-page { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
    .guia-popular-grid-page { grid-template-columns: repeat(4, 1fr); }
}

.guia-popular-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    padding: 24px;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.guia-popular-card:hover {
    border-color: rgba(0, 181, 134, 0.3);
    box-shadow: 0 16px 32px rgba(0,0,0,0.04);
    transform: translateY(-4px);
}

.guia-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 181, 134, 0.08);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guia-card-icon svg {
    width: 24px;
    height: 24px;
}

.guia-card-content {
    flex: 1;
}

.guia-card-content .guia-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.guia-card-content .guia-material {
    font-size: 13px;
    color: var(--color-muted);
}

.guia-card-arrow {
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.guia-card-arrow svg {
    width: 20px;
    height: 20px;
}

.guia-popular-card:hover .guia-card-arrow {
    opacity: 1;
}

/* Guia Detail Box */
.guia-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--color-line);
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
}

.detail-card-header {
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-line);
    gap: 24px;
}

.detail-title-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 181, 134, 0.08);
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg { width: 28px; height: 28px; }

.detail-title-area h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 4px;
    line-height: 1.2;
}

.detail-category {
    font-size: 14px;
    color: var(--color-muted);
}

.detail-code-box {
    display: flex;
    flex-direction: column;
    background: #f8fbfd;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 12px 20px;
    align-items: flex-end;
}

.detail-code-box .code-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-code-box .code-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-icon {
    color: var(--color-green);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.copy-icon:hover { opacity: 1; }
.copy-icon svg { width: 16px; height: 16px; }

.detail-info-bar {
    display: flex;
    align-items: center;
    padding: 24px 40px;
    gap: 32px;
    border-bottom: 1px solid var(--color-line);
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 140px;
    border-right: 1px solid var(--color-line);
    padding-right: 24px;
}

.info-item:last-child {
    border-right: none;
    padding-right: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
    flex-shrink: 0;
}

.info-icon svg { width: 20px; height: 20px; }

.info-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
}

.detail-body-sections {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--color-green);
    margin: 0 0 16px;
}

.heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
}

.heading-icon svg { width: 20px; height: 20px; }

.section-box {
    border-radius: 12px;
    padding: 24px;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
}

.section-box.yellow {
    background: #fffdf5;
    border: 1px solid #fef3c7;
}

.section-box.gray {
    background: #f8fbfd;
    border: 1px solid var(--color-line);
}

.box-icon {
    display: inline-flex;
    margin-right: 8px;
    vertical-align: middle;
    color: var(--color-navy);
    opacity: 0.5;
}
.box-icon svg { width: 18px; height: 18px; }

.guia-cta-box {
    background: #f8fbfd;
    border: 1px solid var(--color-line);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.guia-cta-box .cta-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.guia-cta-box .cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 181, 134, 0.08);
    color: var(--color-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guia-cta-box .cta-icon svg { width: 32px; height: 32px; }

.guia-cta-box .cta-text h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0 0 4px;
}

.guia-cta-box .cta-text p {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
}

.guia-cta-box .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 24px;
    border: 1px solid var(--color-green);
    color: var(--color-green);
    background: transparent;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.guia-cta-box .cta-btn:hover {
    background: var(--color-green);
    color: #fff;
}

.guia-cta-box .cta-btn svg { width: 18px; height: 18px; }
@media (max-width: 991px) {
    .guia-header-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        gap: 32px;
        background-position: center;
    }
    .guia-header-content {
        text-align: center;
    }
    .guia-page-header h1 {
        font-size: 36px;
    }
    
    .detail-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-code-box {
        align-items: flex-start;
        width: 100%;
    }
    
    .info-item {
        border-right: none;
        padding-right: 0;
        min-width: 100%;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--color-line);
    }
    
    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .guia-cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .guia-cta-box .cta-left {
        flex-direction: column;
    }
}
@media (max-width: 767px) {
    .guia-page-header { padding: 16px 0; }
    .guia-search-wrapper { padding: 8px 16px; }
    .guia-search-wrapper input {
        font-size: 15px;
        height: 56px;
    }
    .guia-search-hint { text-align: center; padding-left: 0; }
    
    .detail-card-header { padding: 24px; }
    .detail-info-bar { padding: 24px; gap: 16px; }
    .detail-body-sections { padding: 24px; }
    .guia-cta-box { padding: 24px; }
}
