/* Retirement Planning Strategies page */

.retirement-page {
    color: #475467;
}
.wv-wrapper.wv-circle-small{
    display: none !important;
}
/* Hero banner */
.retirement-hero {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1B41CA;
    background-image: linear-gradient(90deg, #1B41CA 0%, #1B41CA 24%, rgba(27, 65, 202, 0.15) 66%), url('../images/retire-banner-img.png');
    background-repeat: no-repeat;
    background-position: calc(50% + 141px) center;
    background-size: cover;
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 68px 83px 67px;
}

.retirement-hero__title {
    color: #ffffff;
    font-weight: 400;
    font-size: 2.25rem;
    line-height: 1.1;
    margin: 0;
}

/* Section heading (exclude FAQ accordion — matches about-us template) */
.retirement-page h2:not(.accordion-header):not(.title) {
    color: #1D2939;
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 33px;
}

.retirement-page p {
    font-size: 1rem;
    color: #475467;
    font-weight: 400;
    line-height: 1.625rem;
}

/* Stat callout */
.retirement-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #EFF5FF;
    border-left: 4px solid #1B41CA;
    border-radius: 4px;
    padding: 20px 24px;
    margin: 24px 0;
}

.retirement-stat__number {
    color: #1D2939;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
    white-space: nowrap;
}

.retirement-stat__text {
    color: #1D2939;
    font-size: 1rem;
    margin: 0;
}
p.retirement-finan-adv-subheading{
    font-size: 1rem;
    line-height: 1.625rem;
    color: #ffffff;
    margin: 0;
    text-align: center;
}

/* CTA banner */
.retirement-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background-color: #1B41CA;
    background-image: linear-gradient(90deg, rgba(27, 65, 202, 0) 0%, rgb(27 65 202 / 64%) 11%, rgb(27 65 202 / 98%) 16%, #1B41CA 26%), url(../images/compare-top-financial-advisor.jpg);
    background-repeat: no-repeat, no-repeat;
    background-position: center, left center;
    background-size: contain;
    border-radius: 8px;
    padding: 38px 42px 38px 220px;
    margin: 32px 0;
    min-height: 140px;
    overflow: hidden;
    isolation: isolate;
}

.retirement-cta__title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.3;
    margin: 0;
    flex: 1 1 auto;
    min-width: 260px;
}

.retirement-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.retirement-cta .retirement-cta__actions a.retirement-cta__button {
    display: inline-block;
    background-color: #FAD700;
    color: #000 !important;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 64px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.retirement-cta__button:hover {
    background-color: #FFEE8A;
    color: #000;
    transform: scale(1.05);
}

.retirement-cta__caption {
    color: #ffffff;
    font-size: 0.75rem;
    margin: 0;
    text-align: center;
}

/* Take-charge banner (ZIP lookup) */
.take-charge-banner {
    display: flex;
    align-items: stretch;
    background-color: #1B41CA;
    border-radius: 8px;
    overflow: hidden;
    margin: 32px 0;
    min-height: 180px;
}

.take-charge-banner__media {
    position: relative;
    flex: 0 0 260px;
    overflow: hidden;
}

.take-charge-banner__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(27, 65, 202, 0) 0%, rgba(27, 65, 202, 0.5) 70%, #1B41CA 100%);
}

.take-charge-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 23% center;
}

.take-charge-banner__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 320px;
    padding: 24px 32px;
}

.take-charge-banner__title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 0 8px;
}

p.take-charge-banner__desc {
    color: #ffffff;
    font-size: 1rem;
    line-height: 26px;
    margin: 0;
}

.take-charge-banner__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 24px 32px;
    min-width: 300px;
}

p.take-charge-banner__form-label {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

.take-charge-banner__form-row {
    display: flex;
    gap: 8px;
}

.take-charge-banner__input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 1rem;
}

.take-charge-banner__button {
    display: inline-block;
    flex: 0 0 auto;
    background-color: #FAD700;
    color: #1D2939;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}

.take-charge-banner__button:hover {
    background-color: #FFEE8A;
    color: #1D2939;
}

p.take-charge-banner__caption {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.75rem;
    margin: 0;
}

/* Retirement income calculator CTA banner */
.retirement-calculator-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background-color: #1B41CA;
    background-image: linear-gradient(72deg, rgba(27, 65, 202, 0) 0%, rgba(27, 65, 202, 0.45) 14%, rgba(27, 65, 202, 0.85) 20%, #1B41CA 26%), url(../images/retirement-income-calculator-img.jpg);
    background-repeat: no-repeat, no-repeat;
    background-position: center, left center;
    background-size: 100% 100%, calc(22% + 2px) 100%;
    border-radius: 8px;
    padding: 38px 42px 38px 324px;
    margin: 32px 0;
    min-height: 140px;
    overflow: hidden;
    isolation: isolate;
}

.retirement-calculator-cta__title {
    color: #ffffff;
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    margin: 0;
    flex: 1 1 auto;
    min-width: 260px;
    max-width: 550px;
}

.retirement-calculator-cta a.retirement-calculator-cta__button {
    display: inline-block;
    background-color: #FAD700;
    color: #000 !important;
    font-weight: 500;
    font-size: 1rem;
    line-height: 24px;
    padding: 12px 64px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.retirement-calculator-cta__button:hover {
    background-color: #FFEE8A;
    color: #000 !important;
    transform: scale(1.05);
}

/* Numbered list */
.retirement-numbered-list {
    margin: 24px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.retirement-numbered-list__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: #ffffff;
    border: 1px solid #EAECF0;
    border-radius: 8px;
    padding: 20px 24px;
}

.retirement-numbered-list__number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #1B41CA;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.retirement-ad-form-wrapper p{
    color: #fff !important;
}

.retirement-numbered-list__item p {
    margin: 0;
}

/* Strategy comparison chart */
.retirement-chart {
    text-align: center;
    margin: 40px auto !important;
    max-width: 626px;
    width: 100%;
}

.retirement-chart img {
    max-width: 100%;
    height: auto;
}

/* Strategy columns */
.retirement-strategies {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
    align-items: stretch;
}

.retirement-strategy {
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    padding: 24px;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.retirement-strategy__title {
    color: #1B41CA;
    font-weight: 400;
    font-size: 1.25rem;
    margin: 0 0 16px;
    line-height: 1.3;
}

.retirement-strategy p {
    margin-bottom: 12px;
}

.retirement-strategy p:last-child {
    margin-bottom: 0;
}

.retirement-strategy ul {
    padding-left: 20px;
    margin: 0 0 12px;
    flex: 1;
}

.retirement-strategy li {
    font-size: 1rem;
    line-height: 26px;
    color: #475467;
    margin-bottom: 8px;
}

.retirement-strategy li:last-child {
    margin-bottom: 0;
}

.retirement-strategies-footer {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #E4E7EC;
    width: 100%;
    clear: both;
}

.retirement-strategies--stacked {
    grid-template-columns: repeat(2, 1fr);
    margin: 20px 0;
}

.retirement-strategies--quad {
    grid-template-columns: repeat(2, 1fr);
}

.retirement-strategy ul ul {
    margin-top: 8px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .retirement-strategies {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Accordion */
.retirement-accordion {
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.retirement-accordion__item {
    background-color: #F9FAFB;
    /* border-bottom: 1px solid #EAECF0; */
    margin-bottom: 14px;
    border-radius: 12px !important;
}

.retirement-accordion__item:last-child {
    border-bottom: none;
}

.retirement-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 24px;
    text-align: left;
}

.retirement-accordion__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.retirement-accordion__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.retirement-accordion__title {
    color: #1D2939;
    font-weight: 600;
    font-size: 1rem;
}

.retirement-accordion__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.retirement-accordion__toggle .icon-chevron {
    transition: transform 0.2s ease-in-out;
}

.retirement-accordion__item.is-open .retirement-accordion__toggle .icon-chevron {
    transform: rotate(180deg);
}

.retirement-accordion__body {
    display: none;
    padding: 0 24px 24px 60px;
}

.retirement-accordion__item.is-open .retirement-accordion__body {
    display: block;
}

.retirement-accordion__body p {
    margin: 0;
}

.retirement-accordion__body p + p,
.retirement-accordion__body p + ul,
.retirement-accordion__body ul + p {
    margin-top: 12px;
}

.retirement-accordion__body ul {
    padding-left: 20px;
    margin: 0;
}

.retirement-accordion__body li {
    font-size: 1rem;
    line-height: 26px;
    color: #475467;
    margin-bottom: 4px;
}

/* FAQ accordion */
.retirement-faq__heading {
    border-left: 4px solid #FAD700;
    padding-left: 16px;
    margin-top: 26px;
    font-weight: 600 !important;
    margin-bottom: 34px !important;
}

.retirement-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 32px;
}

.retirement-faq__item {
    background-color: #F9FAFB;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0px !important;
}

.retirement-faq__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    text-align: left;
}

.retirement-faq__question {
    color: #1D2939;
    font-weight: 700;
    font-size: 1rem;
}

.retirement-faq__toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retirement-faq__toggle .icon-chevron {
    transition: transform 0.2s ease-in-out;
}

.retirement-faq__item.is-open .retirement-faq__toggle .icon-chevron {
    transform: rotate(180deg);
}

.retirement-faq__body {
    display: none;
    padding: 0 24px 20px;
}

.retirement-faq__item.is-open .retirement-faq__body {
    display: block;
}

.retirement-faq__body p {
    margin: 0;
}

/* Bootstrap FAQ accordion — match about-us.php styling */
.retirement-page #faq_section.title {
    margin-bottom: 0;
}

.retirement-page .accordion .accordion-header {
    margin-bottom: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.retirement-page .accordion .accordion-button {
    color: var(--bs-primary-text-emphasis, #052c65);
}

.retirement-page .accordion .accordion-body.text-body {
    color: #475467;
    font-size: 1rem;
    line-height: 1.625rem;
}

.share-icon-wrapper{
    position: fixed;
    top: 190px;
    right: 0px;
    z-index: 99;
}
.share-icon{    
    background: #1B41CA;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
a.share-icon-single{
    background: #1B41CA;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-top: 0.5px solid #fff;
}
.shareicons{
    display: none;
}
.shareicons.show{
    display: block;
}

/* Inline share icons */
.retirement-page .retirement-share-inline .retirement-share-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    background: #ffffff;
    border-color: #1B41CA !important;
    text-decoration: none;
    flex-shrink: 0;
}

.retirement-page .retirement-share-inline .retirement-share-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.retirement-page .retirement-share-inline .retirement-share-btn:hover {
    background: #EFF5FF;
}

.retirement-page .retirement-share-inline .retirement-share-btn:focus {
    outline: none;
}

.retirement-page .retirement-share-inline .retirement-share-btn:focus-visible {
    outline: 2px solid #1B41CA;
    outline-offset: 2px;
}

/* Related Guide section */
.retirement-related-guide {
    margin-bottom: 32px;
}

.retirement-related-guide .retirement-faq__heading {
    margin-top: 0;
}

.related-guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-guide-card__image-wrapper {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 16 / 10;
    background-color: #F2F4F7;
}

.related-guide-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-guide-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-guide-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.related-guide-card__title a {
    color: #1D2939;
    text-decoration: none;
}

.related-guide-card__title a:hover {
    color: #1B41CA;
}

.related-guide-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #475467;
}

.related-guide-card__read-more {
    color: #1B41CA;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.related-guide-card__read-more:hover {
    text-decoration: underline;
}

.retirement-number-inner{
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.retirement-strategies--stacked .retirement-strategy{
    padding: 0px;
    border: none;
}
.retirement-strategies--stacked .retirement-strategy .retirement-strategy__title{
    font-weight: 600;
    font-size: 17px;
    margin: 0 0 5px;
    color: #475467;
}
.retirement-strategies--stacked .retirement-strategy p{
    font-size: 14px;
    line-height: 23px !important;
}
.retirement-numbered-list-subpoints{
    flex-direction: column;
}

@media (max-width: 767px) {
    .related-guide-card__image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .related-guide-card__title {
        font-size: 15px;
        line-height: 22px;
    }

    .related-guide-card__excerpt {
        font-size: 14px;
        line-height: 22px;
    }
}

@media (max-width: 991px) {
    .retirement-hero {
        padding: 40px;
    }

    .retirement-cta {
        background-size: 100% 100%, calc(30% + 2px) 100%;
        background-position: center, left center;
        padding: 32px 32px 32px 200px;
    }

    .retirement-calculator-cta {
        background-size: 100% 100%, calc(30% + 2px) 100%;
        background-position: center, left center;
        padding: 32px 32px 32px 200px;
    }

    .retirement-calculator-cta__title {
        font-size: 1.5rem;
        line-height: 1.35;
    }

    .take-charge-banner__media {
        flex: 0 0 200px;
    }
}

@media (max-width: 767px) {
    .retirement-hero {
        min-height: 200px;
        padding: 24px;
        background-position: calc(50% + 0px) center;
    }

    .retirement-hero__title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .retirement-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .retirement-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        background-image: linear-gradient(180deg, rgba(27, 65, 202, 0.55) 0%, #1B41CA 65%);
        padding: 24px 24px 24px;
    }

    .retirement-cta__title {
        min-width: 0;
    }
    .retirement-page h2:not(.accordion-header):not(.title) {
    font-size: 24px;
    line-height: 34px;
    }
    .retirement-page p {
    font-size: 14px;
    line-height: 24px !important;
    }

    .retirement-calculator-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        background-image: linear-gradient(180deg, rgba(27, 65, 202, 0.55) 0%, #1B41CA 65%);
        padding: 24px 24px 24px;
    }

    .retirement-calculator-cta__title {
        font-size: 1.375rem;
        line-height: 1.3;
        min-width: 0;
        max-width: none;
    }

    .retirement-cta .retirement-cta__actions a.retirement-cta__button,
    .retirement-calculator-cta a.retirement-calculator-cta__button {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }

    .take-charge-banner {
        flex-direction: column;
    }

    .take-charge-banner__media {
        flex: 0 0 180px;
    }

    .take-charge-banner__content,
    .take-charge-banner__form {
        padding: 20px 24px;
        text-align: center;
        align-items: center;
        min-width: 0;
    }

    .take-charge-banner__caption {
        justify-content: center;
    }
}
