/* Barra de Acessibilidade - Topo do Site */
#acessibilidade {
    background-color: #efedea !important;
    padding: 0 !important;
    border-bottom: 1px solid #ddd !important;
    position: absolute !important;
    top: 117px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    will-change: auto !important;
}

#acessibilidade a {
    color: #0071ad !important;
    text-decoration: none;
    font-size: 17px !important;
    font-weight: normal;
    font-family: "Trebuchet MS", Arial, sans-serif !important;
    padding: 8px 12px 8px 15px !important;
    margin-left: 0px !important;
    display: inline-block;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    width: auto;
    height: 17px;
    line-height: 17px;
}

#acessibilidade a::after {
    content: "";
    display: inline-block;
    width: 21px;
    height: 21px;
    background-image: url('https://rastreamento.correios.com.br/core/templates/bunker/img/arrow-down.svg');
    background-size: 21px 21px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 5px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

#acessibilidade a:hover {
    background-color: #e6e6e6;
    color: #0071ad !important;
}

#acessibilidade a:hover::after {
    border-top-color: #0052a3;
}

#acessibilidade a:focus {
    outline: 2px solid #0073ab;
    outline-offset: -2px;
}

/* Menu Dropdown de Acessibilidade */
#acess-drop-down {
    position: fixed;
    top: 33px;
    left: 0;
    right: 0;
    background-color: #efedea;
    z-index: 999;
    display: none;
    border: none;
    border-top: 1px solid #ddd;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: -1px !important;
}

#acess-drop-down.active {
    display: block;
}

#acess-drop-down header {
    padding: 0px 20px 2px 20px !important;
    border-bottom: none;
    background-color: #efedea;
    display: flex;
    justify-content: flex-end;
    margin: 0 !important;
}

#acess-drop-down header .close {
    color: #0073ab;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-weight: bold;
}

#acess-drop-down header .close:hover {
    background-color: #f0f0f0;
    color: #0073ab;
}

/* Quando o dropdown estiver ativo, mudar ícone para seta para cima */
#acessibilidade.active > a::after {
    background-image: url('https://rastreamento.correios.com.br/core/templates/bunker/img/arrow-up.svg') !important;
}

/* Remover ícones ::after dos links dentro do dropdown */
#acess-drop-down section a::after {
    display: none !important;
}

#acess-drop-down header .close::after {
    content: "";
    background-image: url('https://rastreamento.correios.com.br/core/templates/bunker/img/close-blue.svg');
    background-size: 21px 21px;
    background-repeat: no-repeat;
    background-position: center;
    width: 21px;
    height: 21px;
    display: block;
}

#acess-drop-down section {
    padding: 3px 20px 5px 10px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0px !important;
    width: 100% !important;
    margin: 0 !important;
    background-color: #efedea;
}

#acess-drop-down section a {
    color: #0073ab;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
    font-family: 'Times New Roman', Times, serif !important;
    padding: 1px 20px 1px 0px !important;
    margin: 0 !important;
    background-color: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 4px !important;
    border: none;
    border-bottom: none;
    line-height: 1.2 !important;
    text-align: left !important;
    min-height: 25px;
    padding-left: 0px !important;
}

#acess-drop-down section a:hover {
    background-color: #f8f9fa;
    color: #0073ab;
    border-color: #0073ab;
}

#acess-drop-down section a:focus {
    outline: 2px solid #0066cc;
    outline-offset: -2px;
}

/* Números das opções */
#acess-drop-down section a::before {
    font-weight: bold;
    font-size: 12px;
    padding: 4px;
    border-radius: 50%;
    min-width: 21px;
    width: 21px;
    height: 21px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}

/* Número 1 - ícone SVG inline */
#acess-drop-down section a[data-numero="1"]::before {
    content: "";
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><circle cx="12" cy="12" r="12" fill="%230073ab"/><text x="12" y="16" text-anchor="middle" fill="white" font-family="Times New Roman, serif" font-size="12" font-weight="bold">1</text></svg>');
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 25px;
    height: 21px;
    min-width: 25px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Número 2 - ícone SVG inline */
#acess-drop-down section a[data-numero="2"]::before {
    content: "";
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><circle cx="12" cy="12" r="12" fill="%230073ab"/><text x="12" y="16" text-anchor="middle" fill="white" font-family="Times New Roman, serif" font-size="12" font-weight="bold">2</text></svg>');
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 25px;
    height: 21px;
    min-width: 25px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Número 3 - ícone SVG inline */
#acess-drop-down section a[data-numero="3"]::before {
    content: "";
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><circle cx="12" cy="12" r="12" fill="%230073ab"/><text x="12" y="16" text-anchor="middle" fill="white" font-family="Times New Roman, serif" font-size="12" font-weight="bold">3</text></svg>');
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 25px;
    height: 21px;
    min-width: 25px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Número 4 - ícone SVG inline */
#acess-drop-down section a[data-numero="4"]::before {
    content: "";
    background-image: url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><circle cx="12" cy="12" r="12" fill="%230073ab"/><text x="12" y="16" text-anchor="middle" fill="white" font-family="Times New Roman, serif" font-size="12" font-weight="bold">4</text></svg>');
    background-size: 17px 17px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 25px;
    height: 21px;
    min-width: 25px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ícone de contraste - SVG oficial dos Correios */
#acess-drop-down section a.contraste::before {
    content: "";
    background-image: url('https://rastreamento.correios.com.br/core/templates/bunker/img/alto-contraste-blue.svg');
    background-size: 21px 21px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 25px;
    height: 21px;
    min-width: 25px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ícone Libras - SVG oficial dos Correios */
#acess-drop-down section a.libras::before {
    content: "";
    background-image: url('https://rastreamento.correios.com.br/core/templates/bunker/img/libras.svg');
    background-size: 21px 21px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 25px;
    height: 21px;
    min-width: 25px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ícone SVG para "Saiba mais" */
#acess-drop-down section a.saiba-mais::before {
    content: "";
    background-image: url('https://rastreamento.correios.com.br/core/templates/bunker/img/marcador-blue.svg');
    background-size: 21px 21px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    width: 25px;
    height: 21px;
    min-width: 25px;
    border-radius: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsividade */
@media (max-width: 768px) {
    #acessibilidade a {
        margin-left: 15px;
        font-size: 13px;
        padding: 5px 12px;
    }
    
    #acess-drop-down section {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    #acessibilidade {
        padding: 6px 0;
    }
    
    #acessibilidade a {
        margin-left: 10px;
        font-size: 12px;
        padding: 4px 10px;
    }
    
    #acess-drop-down section {
        padding: 10px;
    }
    
    #acess-drop-down section a {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Cabeçalho Correios - Estilo Oficial */
header {
    background: #efedea;
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-correios {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-correios img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: #FFE600;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo-text:hover {
    color: #FDD835;
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    background-color: rgba(255, 230, 0, 0.2);
    color: #FFE600;
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 8px 15px;
    min-width: 200px;
}

.header-search input {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
    width: 100%;
    padding: 5px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search button {
    background: none;
    border: none;
    color: #FFE600;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.header-search button:hover {
    color: #FDD835;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFE600;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        display: none;
    }
    
    .header-nav.active {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 230, 0, 0.3);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    
    .header-search {
        min-width: 150px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .header-search {
        min-width: 120px;
    }
    
    .nav-links li a {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* Estilo para ícones SVG */
.icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Alto Contraste */
body.alto-contraste {
    background: #000000 !important;
    color: #ffffff !important;
}

body.alto-contraste #acessibilidade {
    background-color: #000000 !important;
    border-bottom-color: #ffffff !important;
}

body.alto-contraste #acessibilidade a {
    color: #ffffff !important;
    background-color: #000000 !important;
}

body.alto-contraste #acessibilidade a::after {
    border-top-color: #ffffff !important;
}

body.alto-contraste #acessibilidade a:hover,
body.alto-contraste #acessibilidade a:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.alto-contraste #acessibilidade a:hover::after {
    border-top-color: #000000 !important;
}

body.alto-contraste #acess-drop-down {
    background-color: #000000 !important;
    border-color: #ffffff !important;
}

body.alto-contraste #acess-drop-down header {
    border-bottom-color: #ffffff !important;
}

body.alto-contraste #acess-drop-down header .close {
    color: #ffffff !important;
}

body.alto-contraste #acess-drop-down section a {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.alto-contraste #acess-drop-down section a:hover,
body.alto-contraste #acess-drop-down section a:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
}

body.alto-contraste #acess-drop-down section a.numero::before {
    background-color: #ffffff !important;
    color: #000000 !important;
}