/*--------------------------------------------------*/
/* ASIDE */
/*--------------------------------------------------*/

aside {
    width: 100%;
    padding: 30px;
    font-size: 14px;
    color: var(--black);
    background-color: var(--white);
    position: sticky;
    top: 80px;
}

aside ul {
    padding-left: 0;
}

@media (max-width: 1200px) {
    aside {
        margin-bottom: 50px;
        margin-top: 50px;
    }
}

aside #search-form .button {
    margin-top: 20px;
}

aside .aside-list ul li {
    position: relative;
    display: flex;
    justify-content: space-between;
    color: var(--blue);
    list-style: square inside;
    padding: 15px;
    border-left: 5px solid var(--golden);
}

aside .aside-list ul li a {
    color: var(--blue);
}

aside .aside-list ul li a:hover {
    color: #1b5097;
}

aside .aside-list li.aside-list ul li:last-child {
    color: var(--blue);
    font-weight: 700;
    opacity: 0.8;
    font-size: 14px;
}

aside .aside-title {
    color: var(--blue);
    font-weight: 600;
    margin: 15px 0;
    display: block;
}

aside #form-search-procedure {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*--------------------------------------------------*/
/* PAGE HEADER */
/*--------------------------------------------------*/
#page-header {
    padding: 50px 8vw 50px 8vw;
    margin-bottom: 60px;
    background-color: var(--blue);
}

#page-header .container {
    max-width: 1320px;
    width: 80vw;
}

@media (max-width: 999px) {
    #page-header {
        padding: 50px 5vw 50px 5vw;
    }

    #page-header .container {
        width: 100vw;
        max-width: 100vw;
        padding: 0 2vw;
    }
}

#page-header h1.header-title,
span.header-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--white);
}

#single-procedure h1 {
    margin-bottom: 20px;
    line-height: 2rem;
    font-size: 2rem;
}

/* Estilo geral para o breadcrumb */
.rank-math-breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    display: inline-block;
}

/* Estilo para os links do breadcrumb */
.rank-math-breadcrumb a {
    text-transform: capitalize;
    color: var(--white); 
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease
}

.rank-math-breadcrumb a:hover {
    color: var(--black);
    font-weight: 600;
}

/* Estilo para o separador entre os itens do breadcrumb */
.rank-math-breadcrumb .separator {
    color: var(--white);
    margin: 0 5px;
}

/* Estilo para o último item do breadcrumb */
.rank-math-breadcrumb .last {
    color: var(--white);
    font-weight: 500;
}

/*--------------------------------------------------*/
/* Procedimentos e cidades */
/*--------------------------------------------------*/

#single-city .procedures {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

#single-procedure .destinations-box {
    margin-bottom: 30px;
}

/*--------------------------------------------------*/
/* Card PROCEDURES */
/*--------------------------------------------------*/

.card-procedure {
    list-style: none;
    background-color: #F0E8D6; 
    border-radius: 12px;
    padding: 35px;

    display: flex;
    flex-direction: column;
    
    /* A SOLUÇÃO DE ALTURA */
    height: 100%;
    min-height: 480px;
    
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.card-procedure:hover {
    transform: translateY(-5px);
}

.card-procedure .post-excerpt p {
    font-size: 0.9rem;
    line-height: 1.5rem;
    color: #6d4300b0 !important
    
}

.procedure-list .card-procedure {
    flex: 1 1 48%;
    box-sizing: border-box;
}

.procedure-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

/* 1. O Label "Bariatric Surgery" (Topo) */
.procedure-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.procedure-label a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.card-procedure:hover .procedure-label a {
    color: #1b5097;
}

/* 2. O Título Principal H1 (Link Roxo/Azul) */
.post-main-title {
    margin-top: 5px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-main-title a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black);
    display: block;
}

.post-main-title a:hover {
    opacity: 0.8;
}

/* 3. Descrição */
.post-excerpt {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

.post-excerpt p {
    margin: 0; 
}

/* 4. Cidades (Available in:) */
.post-cities {
    font-size: 12px;
    color: #c3a779; 
    line-height: 1.5;
    margin-bottom: 30px;
    margin-top: auto;
}

.post-cities strong {
    color: #c3a779;
    font-weight: 400;
}

.post-cities a.city-link {
    color: #c3a779;
    text-decoration: underline !important;
    font-weight: 600;
    transition: color 0.2s;
}

.post-cities a.city-link:hover {
    color: var(--blue); /* Efeito hover sutil */
}

/* 5. Botão (+ Learn more) */
.button-simple {
    font-size: 15px;
    font-weight: 800;
    color: #1A1A1A;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, color 0.2s;
}

.button-simple:hover {
    color: var(--blue);
    transform: translateX(3px);
}

/* Responsivo */
@media (max-width: 768px) {
    .procedure-list .card-procedure {
        flex: 1 1 100%;
        padding: 25px; /* Padding um pouco menor no mobile */
    }
}

/*--------------------------------------------------*/
/* SKELETON LOADER */
/*--------------------------------------------------*/

.skeleton-item {
    animation: pulse 1.5s infinite;
}

.skeleton-item {
    background: #ebe3d1;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 30px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    background: #d6c5a8;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    background: #d6c5a8;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 80%;
}

.skeleton-button {
    height: 16px;
    width: 140px;
    background: #c9b796;
    margin-top: 1rem;
}

@keyframes pulse {
    0% { background-color: #ebe3d1; }
    50% { background-color: rgb(213, 213, 213); }
    100% { background-color: #ebe3d1; }
}

/*--------------------------------------------------*/
/* NO RESULTS Search */
/*--------------------------------------------------*/

.no-results-message h3 {
    font-size: 24px;
}

.no-results-message {
    text-align: center;
    padding: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/*--------------------------------------------------*/
/* FILTER PROCEDURES */
/*--------------------------------------------------*/

#all-procedures #filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

aside #filter-form > div {
    width: 100%;
    margin-bottom: 10px;
}

/*--------------------------------------------------*/
/* Contato formulário */
/*--------------------------------------------------*/

#contact-form label {
    color: var(--black);
    font-weight: 500;
    display: block;
    font-family: 'Lato', sans-serif;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--golden);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

#contact-form input:focus, #contact-form textarea:focus {
    border-color: var(--blue);
    outline: none;
}

#contact-form .obs {
    font-size: 0.875rem;
    color: var(--black);
    margin-top: 15px;
    opacity: 0.5;
}

#contact-form .button-submit {
    margin-top: 20px;
}

.alert {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

/*--------------------------------------------------*/
/* Procedure e city single */
/*--------------------------------------------------*/

.form-box {
    background-color: var(--white);
    padding: 3vw;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#single-cit .procedures-list .procedures {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}