/**
 * Financial Advisor Theme Styles
 * Custom styles for the Financial Advisor WordPress theme
 */

/* Base Styles */


.wp-block-group.about-icon.is-layout-flow.wp-block-group-is-layout-flow {
    width: 60px !important;
}

.about-section .wp-block-button a:hover {
    color: #fff !important;
    background: var(--wp--preset--color--primary) !important;
}

.about-section{
    position: relative;
}

figure.about-img-2{
    text-align: right;
    width: 100%;
}

.about-col-1 {
    position: relative;
    right: -75px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.about-col-2 figure{
    height: 100%;
}

.wp-block-column.about-col-2 img {
    height: 100%;
    min-height: 400px;
    max-width: 75%;
}
.award-box{
    width: fit-content !important;
    box-shadow: 0px 4px 21px 0px #C1BDB1;
}   

.about-img-2 {
    position: relative;
}

.about-img-2::after {
    content: "";
    margin: 10px auto 0;
    width: 80px;
    height: 80px;
    background-image: url(../images/dotted-round.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    top: -35px;
    z-index: 1;
    left: 35px;
}
.about-col-1 img {
    z-index: 9;
    position: relative;
}

.award-box::before {
    content: "\f559";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    background: red;
    position: absolute;
    top: -20px;
    left: 16px;
    z-index: 1;
    line-height: 1;
    display: inline-block;
    padding: 10px;
    border-radius: 8px;
}
@media (max-width: 1024px){
    .about-section{
        max-width: 100% !important;
        margin: 0 auto;
    }
}

@media (min-width: 300px) and (max-width: 767px){
    .about-col-1{
        position: static;
        align-items: center !important;
    }
    figure.about-img-2 {
        text-align: center !important;
    }
    .wp-block-column.about-col-2 img{
        max-width: 300px;
    }
    .pro-column {
        margin: 0 auto !important;
    }
    .ravan {
        font-size: 12px;
    }
    .about-img-2::after{
        display: none;
    }
    .about-col-2 figure{
        text-align: center;
    }
    .about-section {
        padding: 40px 0px;
    }
    .about-content-box,h2.product-main-heading-about,p.sub-head{
        text-align: center !important;
    }
    .about-main-row{
        flex-wrap: wrap;
    }
}

@media (min-width: 300px) and (max-width: 768px){
    .wp-block-group.topbar-detail,.slide-group,.banner-heading,.banner-para {
        text-align: center !important;
    }
    .banner-btn{
        justify-content: center !important;
    }
}

@media (min-width: 300px) and (max-width: 425px){
    .wp-block-column.about-col-2 img{
        max-width: 250px;
    }
}

@media (max-width: 767px) {
    .icon-box i {
        font-size: 22px !important;
    }
}

@media (min-width: 768px) and (max-width: 1000px){
    .about-img-col {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
    }
        .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column.about-col-1{
        flex-basis: 40% !important;
    }
        .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column.about-col-2{
        flex-basis: 60% !important;
    }
}

@media (min-width: 1440px) and (max-width: 1600px){
    .award-box {
        padding: 22px 10px !important;
    }
    .product-main-heading-about{
        font-size: 36px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1400px){
    .wp-block-column.about-col-2 img{
        max-width: 100%;
    }
    .award-box{
        padding: 12px 10px !important;
    }
    .about-col-1 {
        flex-basis: 60% !important;
        right: -45px;
    }
    .product-main-heading-about{
        font-size: 26px;
    }
    h3.wp-block-heading.row-head {
        font-size: 16px !important;
    }

}

/* Footer theme credit link */
.copy-right .copyrg-link a,
.copy-right p > a {
    color: inherit;
    text-decoration: none;
}
.copy-right .copyrg-link a:hover,
.copy-right .copyrg-link a:focus,
.copy-right p > a:hover,
.copy-right p > a:focus {
    color: var(--wp--preset--color--secondary);
    text-decoration: underline;
}
/* ==========================================================
   FAQ Section – block theme styles
   ========================================================== */
.rwp-faq {
	--wp--preset--color--primary-soft: #e0e3fb;
	--faq-text: #111827;
	--faq-muted: #5b6475;
	--faq-bg: #f1f1f1;
	--faq-card: #ffffff;
	--faq-green: #0f7a4d;
	--faq-radius: 12px;
	color: var(--faq-text);
	padding: 60px 20px;
	background: var(--faq-bg);
}

/* ---------- Header ---------- */
.rwp-faq__header { text-align: center; margin-bottom: 28px; }

.rwp-faq__eyebrow {
    display: inline-block;
    margin: 0 auto 18px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--wp--preset--color--secondary);
    border-radius: 999px;
}

.rwp-faq__title {
	margin: 0 0 14px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.rwp-faq__intro {
	max-width: 620px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
	color: var(--faq-muted);
}

/* ---------- Filter tabs ---------- */
.rwp-faq__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 28px;
}

.rwp-faq__tab {
	padding: 5px 14px;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-soft);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.rwp-faq__tab:hover { background: #cfd3f7; }
.rwp-faq__tab.is-active { color: #fff; background: var(--wp--preset--color--primary); }
.rwp-faq__tab:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

/* ---------- Accordion ---------- */
.rwp-faq__list { display: flex; flex-direction: column; gap: 12px; }

.rwp-faq__item {
	background: var(--faq-card);
	border-radius: var(--faq-radius);
	box-shadow: 0 1px 3px rgba(17, 24, 39, .06);
	padding: 0;
	transition: box-shadow .2s;
    margin-top: 6px;
}
.rwp-faq__item:hover { box-shadow: 0 4px 14px rgba(17, 24, 39, .08); }
.rwp-faq__item[hidden] { display: none; }

.rwp-faq__item summary {
	position: relative;
	display: block;
	padding: 20px 64px 20px 24px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.rwp-faq__item summary::-webkit-details-marker { display: none; }
.rwp-faq__item summary::marker { content: ""; }

/* chevron button */
.rwp-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 28px;
	height: 28px;
	transform: translateY(-50%);
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary-soft);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: transform .25s ease;
}
.rwp-faq__item[open] summary::after { transform: translateY(-50%) rotate(180deg); }

.rwp-faq__item > :not(summary) { margin-left: 24px; margin-right: 24px; }
.rwp-faq__item > p { margin-top: 0; font-size: 14px; line-height: 1.65; color: var(--faq-muted); }
.rwp-faq__item > :last-child { margin-bottom: 22px; }

/* ---------- Badges ---------- */
.rwp-faq__badges { gap: 12px; align-items: center; }
.rwp-faq__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 500;
}
.rwp-faq__badge--green { color: var(--faq-green); background: #e7f6ee; border-radius: 6px; }
.rwp-faq__badge--green::before { content: "✓"; font-weight: 700; }

/* ---------- CTA ---------- */
.rwp-faq__cta {
    margin-top: 32px;
    padding: 22px 24px;
    gap: 16px;
    background: #fff;
    border-radius: var(--faq-radius);
    box-shadow: 0px 0px 10px #0000001f;
}
.rwp-faq__cta-title { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.rwp-faq__cta-desc { margin: 0; max-width: 340px; font-size: 12px; line-height: 1.5; color: var(--faq-muted); }

.rwp-faq__pill {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	font-size: 10px;
	font-weight: 600;
	color: #0b5e7a;
	background: #d3eef7;
	border-radius: 999px;
	vertical-align: middle;
}
.rwp-faq__pill::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 5px;
	background: #16a34a;
	border-radius: 50%;
}

.rwp-faq__cta-buttons { gap: 10px; }
.rwp-faq__cta-buttons .wp-block-button__link {
	padding: 9px 16px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 8px;
	transition: transform .15s, box-shadow .15s;
}
.rwp-faq__cta-buttons .wp-block-button__link:hover { transform: translateY(-1px); }

.rwp-btn-primary .wp-block-button__link { color: #fff; background: var(--wp--preset--color--primary); border: 1px solid var(--wp--preset--color--primary); }
.rwp-btn-light .wp-block-button__link {
    color: #fff;
    background: var(--wp--preset--color--secondary);
    border: 1px solid #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.rwp-faq { padding: 40px 14px; }
	.rwp-faq__item summary { padding: 16px 56px 16px 16px; font-size: 15px; }
	.rwp-faq__item > :not(summary) { margin-left: 16px; margin-right: 16px; }
	.rwp-faq__cta { flex-direction: column; align-items: flex-start; }
}