/* --- Layout Principal --- */
.utility-single-main {
    background-color: var(--color-bg-light);
    padding: clamp(32px, 5vw, 64px) 0;
}

.seo-text-block h2 {
    position: relative;
}

.seo-text-block h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    background-color: var(--color-primary);
    width: 20%;
    left: 0px;
    height: 4px;
}

.utility-layout-grid {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-gutter);
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Esconder barras laterais no mobile */
.sidebar-left,
.sidebar-right {
    display: none;
}

/* --- Espaços Publicitários --- */
.ad-space {
    background-color: #EBEBEB;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #A0A0A0;
    font-size: 14px;
    font-weight: 700;
    position: relative;
}

.ad-space::before {
    content: 'ADVERTISEMENT';
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 10px;
    letter-spacing: 1px;
    color: #B0B0B0;
}

.ad-vertical {
    height: 100%;
    min-height: 600px;
}

.ad-square {
    height: 300px;
    margin-bottom: 24px;
}

/* --- Cabeçalho da Ferramenta --- */
.utility-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
}

.utility-description {
    font-size: 16px;
    color: #5b656f;
    margin-bottom: 32px;
    max-width: 800px;
}

/* --- Rank Math FAQ Accordion --- */
.rank-math-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.rank-math-list-item {
    background: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    overflow: hidden;
    /* Crucial to hide the answer when closed */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    transition: box-shadow 0.2s;
}

.rank-math-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.rank-math-question {
    margin: 0 !important;
    /* Overrides default WordPress heading margins */
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-primary);
    background: transparent;
    transition: background 0.2s;
}

/* Creates the + icon dynamically */
.rank-math-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.rank-math-answer {
    max-height: 0;
    padding: 0 24px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    color: #5b656f;
    line-height: 1.6;
    font-size: 15px;
}

.rank-math-answer p:last-child {
    margin-bottom: 0;
}

/* --- The "Open" State --- */
.rank-math-list-item.is-open .rank-math-question {
    border-bottom: 1px solid #EAEAEA;
    background: var(--color-primary);
    color: var(--color-surface);
}

/* Turns the + into a - and rotates it */
.rank-math-list-item.is-open .rank-math-question::after {
    content: '-';
    transform: rotate(180deg);
    color: var(--color-surface);
}

.rank-math-list-item.is-open .rank-math-answer {
    max-height: 600px;
    /* High enough to fit any answer */
    padding: 20px 24px;
    opacity: 1;
}

/* --- WordPress Blockquote Styling --- */
blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background-color: #EFF1F2;
    /* Light grey background */
    border-left: 4px solid var(--color-primary);
    /* Your blue theme color */
    border-radius: 4px;
    position: relative;
}

blockquote p {
    margin: 0;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: #374151;
    /* Dark grey for readability */
}

/* Optional: Styling for the citation/author if you use it */
blockquote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* --- Desktop Layout --- */
@media (min-width: 1024px) {
    .utility-layout-grid {
        grid-template-columns: 240px minmax(0, 1fr) 240px;
        /* Anúncio - Centro - Anúncio */
        align-items: start;
    }

    .sidebar-left,
    .sidebar-right {
        display: block;
        position: sticky;
        top: 100px;
    }
}