
/* =========================================================
   PRACTICE AREA PAGE DESIGN
   Add to Appearance > Customize > Additional CSS
========================================================= */

.practice-area-page {
    --practice-blue: #38659C;
    --practice-orange: #FC9C02;
    --practice-light-blue: #9CB5D4;
    --practice-dark: #17263a;
    --practice-text: #17263a;
    --practice-white: #ffffff;
    --practice-border: rgba(56, 101, 156, 0.22);

    max-width: 1180px;
    margin: 0 auto;
    padding: 15px 30px 10px;
    color: var(--practice-text);
    font-size: 17px;
    line-height: 1.7;
}

/* Remove excess space between the page H1 and content */
.entry-content .practice-area-page {
    margin-top: 0;
}

.entry-content > .practice-area-page:first-child {
    padding-top: 0;
}

/* =========================================================
   PARAGRAPHS
========================================================= */

.practice-area-page p,
.practice-area-page h2 + p,
.practice-area-page h2:first-child + p {
    margin: 0 0 24px;
    color: var(--practice-text);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 400;
}

/* =========================================================
   H2 HEADLINES
========================================================= */

.practice-area-page h2,
.practice-area-page h2:first-child,
.practice-area-page h2:last-of-type {
    position: relative;
    display: block;
    margin: 48px 0 24px;
    padding: 0 0 17px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--practice-blue);
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* First H2 sits closer to the page H1 */
.practice-area-page h2:first-child {
    margin-top: 10px;
}

/* Orange accent line below every H2 */
.practice-area-page h2::after,
.practice-area-page h2:first-child::after,
.practice-area-page h2:last-of-type::after {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    display: block;
    width: 50px;
    height: 4px;
    margin: 0;
    border-radius: 20px;
    background: var(--practice-orange);
}

/* =========================================================
   BULLET LIST CARDS
========================================================= */

.practice-area-page ul {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100%;
    margin: 28px 0 35px !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box;
}

.practice-area-page ul li {
    position: relative;
    display: block !important;
    width: 100%;
    min-width: 0;
    min-height: 125px;
    margin: 0 !important;
    padding: 18px 16px 18px 50px !important;

    border: 1px solid var(--practice-border);
    border-radius: 12px;
    background: var(--practice-white);

    color: var(--practice-dark);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    list-style: none !important;
    box-sizing: border-box;

    overflow-wrap: normal;
    word-wrap: normal;
    word-break: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;

    box-shadow: 0 8px 24px rgba(56, 101, 156, 0.07);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Remove default/theme bullets */
.practice-area-page ul li::marker {
    content: "";
    font-size: 0;
}

/* Orange bullet */
.practice-area-page ul li::before {
    content: "" !important;
    position: absolute;
    top: 22px;
    left: 20px;

    display: block !important;
    width: 16px;
    height: 16px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 50%;
    background: var(--practice-orange);

    box-sizing: border-box;
}

/* Prevent theme from generating a second bullet */
.practice-area-page ul li::after {
    content: none !important;
    display: none !important;
}

.practice-area-page ul li:hover {
    transform: translateY(-3px);
    border-color: var(--practice-light-blue);
    box-shadow: 0 13px 30px rgba(56, 101, 156, 0.13);
}

/* Tablet: 2 cards per row */
@media only screen and (max-width: 980px) {
    .practice-area-page ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile: 1 card per row */
@media only screen and (max-width: 640px) {
    .practice-area-page ul {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    .practice-area-page ul li {
        min-height: auto;
        padding: 19px 17px 19px 47px !important;
    }

    .practice-area-page ul li::before {
        top: 22px;
        left: 18px;
    }
}

/* =========================================================
   PHONE LINKS
========================================================= */

.practice-area-page a[href^="tel:"] {
    color: var(--practice-blue);
    font-weight: 700;
    text-decoration: none;
}

.practice-area-page a[href^="tel:"]:hover {
    color: var(--practice-orange);
}

/* =========================================================
   TABLET
========================================================= */

@media only screen and (max-width: 980px) {
    .practice-area-page {
        padding: 15px 24px 10px;
    }

    .practice-area-page ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media only screen and (max-width: 640px) {
    .practice-area-page {
    padding: 15px 15px 10px;
    font-size: 16px;
    line-height: 1.7;
}

    .practice-area-page p,
    .practice-area-page h2:first-child + p {
        font-size: 16px;
        line-height: 1.7;
    }

    .practice-area-page h2 {
    margin-top: 42px;
    padding: 16px 0;
    font-size: 28px;
}

    .practice-area-page h2:first-child {
        margin-top: 5px;
        padding: 0 0 13px;
        font-size: 30px;
    }

    .practice-area-page ul {
        grid-template-columns: 1fr;
        gap: 13px;
        margin: 25px 0 32px;
    }

    .practice-area-page ul li {
        padding: 19px 17px 19px 47px;
    }

    .practice-area-page ul li::before {
        top: 21px;
        left: 18px;
    }

    .practice-area-page h2:last-of-type ~ p:last-of-type {
        padding: 22px 20px;
        font-size: 16px;
    }
}

@media only screen and (max-width: 640px) {
    .practice-area-page .practice-cta {
        margin-top: 25px !important;
        padding: 22px 20px !important;
        font-size: 16px;
        line-height: 1.7;
    }
}

/* =========================================================
   GLOBAL YOAST FAQ DESIGN
========================================================= */

.wp-block-yoast-faq-block,
.schema-faq {
    --faq-blue: #38659C;
    --faq-orange: #FC9C02;
    --faq-light-blue: #9CB5D4;
    --faq-dark: #1f2e3d;
    --faq-text: #44505c;
    --faq-background: #ffffff;
    --faq-soft-background: rgba(156, 181, 212, 0.10);
    --faq-border: rgba(56, 101, 156, 0.22);

    margin: 20px 0 40px;
}

/* Individual FAQ card */
.wp-block-yoast-faq-block .schema-faq-section,
.schema-faq .schema-faq-section {
    position: relative;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--faq-border);
    border-left: 5px solid var(--faq-orange);
    border-radius: 12px;
    background: var(--faq-background);
    box-shadow: 0 8px 24px rgba(56, 101, 156, 0.08);
}

/* FAQ question */
.wp-block-yoast-faq-block .schema-faq-question,
.schema-faq .schema-faq-question {
    position: relative;
    display: block;
    margin: 0;
    padding: 22px 60px 22px 25px;
    background: linear-gradient(
        90deg,
        rgba(156, 181, 212, 0.20) 0%,
        rgba(156, 181, 212, 0.05) 100%
    );
    color: var(--faq-blue);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    cursor: default;
}

/* Remove double-bold styling from nested strong tag */
.wp-block-yoast-faq-block .schema-faq-question strong,
.schema-faq .schema-faq-question strong {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Orange circular accent */
.wp-block-yoast-faq-block .schema-faq-question::after,
.schema-faq .schema-faq-question::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--faq-orange);
    transform: translateY(-50%);
}

/* FAQ answer */
.wp-block-yoast-faq-block .schema-faq-answer,
.schema-faq .schema-faq-answer {
    margin: 0 !important;
    padding: 24px 25px 26px;
    background: var(--faq-background);
    color: var(--faq-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
}

/* Hover effect */
.wp-block-yoast-faq-block .schema-faq-section:hover,
.schema-faq .schema-faq-section:hover {
    border-color: var(--faq-light-blue);
    box-shadow: 0 13px 30px rgba(56, 101, 156, 0.13);
}

/* Remove unwanted theme bullets or icons */
.wp-block-yoast-faq-block .schema-faq-section::before,
.wp-block-yoast-faq-block .schema-faq-section::after,
.schema-faq .schema-faq-section::before,
.schema-faq .schema-faq-section::after {
    content: none !important;
    display: none !important;
}

/* Links inside answers */
.wp-block-yoast-faq-block .schema-faq-answer a,
.schema-faq .schema-faq-answer a {
    color: var(--faq-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wp-block-yoast-faq-block .schema-faq-answer a:hover,
.schema-faq .schema-faq-answer a:hover {
    color: var(--faq-orange);
}

/* =========================================================
   TABLET
========================================================= */

@media only screen and (max-width: 980px) {
    .wp-block-yoast-faq-block .schema-faq-question,
    .schema-faq .schema-faq-question {
        padding: 20px 52px 20px 22px;
        font-size: 19px;
    }

    .wp-block-yoast-faq-block .schema-faq-answer,
    .schema-faq .schema-faq-answer {
        padding: 22px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media only screen and (max-width: 640px) {
    .wp-block-yoast-faq-block,
    .schema-faq {
        margin: 15px 0 30px;
    }

    .wp-block-yoast-faq-block .schema-faq-section,
    .schema-faq .schema-faq-section {
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .wp-block-yoast-faq-block .schema-faq-question,
    .schema-faq .schema-faq-question {
        padding: 18px 45px 18px 18px;
        font-size: 18px;
        line-height: 1.35;
    }

    .wp-block-yoast-faq-block .schema-faq-question::after,
    .schema-faq .schema-faq-question::after {
        right: 18px;
        width: 10px;
        height: 10px;
    }

    .wp-block-yoast-faq-block .schema-faq-answer,
    .schema-faq .schema-faq-answer {
        padding: 20px 18px 22px;
        font-size: 16px;
        line-height: 1.7;
    }
}
/* =========================================================
   CTA BOX
========================================================= */

.practice-area-page .practice-cta {
    margin: 30px 0 25px;
    padding: 28px 32px;
    background: rgba(252,156,2,.07);
    border: 2px solid #FC9C02;
    border-radius: 14px;
    color: var(--practice-dark);
    font-size: 17px;
    line-height: 1.8;
    box-sizing: border-box;
}

@media only screen and (max-width: 640px) {
    .practice-area-page .practice-cta {
        padding: 22px 20px;
        font-size: 16px;
        line-height: 1.7;
    }
}

.resource-book-section {
	display: flex;
	align-items: flex-start;
	gap: 35px;
	margin: 25px 0;
}

.resource-book-image {
	flex: 0 0 210px;
}

.resource-book-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.resource-book-content {
	flex: 1;
	min-width: 0;
}

.resource-book-content p {
	margin-top: 0;
	margin-bottom: 18px;
}

.resource-book-content ul {
	margin: 0;
	padding-left: 24px;
}

.resource-book-content li {
	margin-bottom: 7px;
}

.edit-post-visual-editor p, .edit-post-visual-editor ul, .edit-post-visual-editor ol, .edit-post-visual-editor dl { 
  font-family: 'Raleway-Semibold',sans-serif !important;
}

/* Mobile */
@media (max-width: 767px) {
	.resource-book-section {
		flex-direction: column;
		gap: 20px;
	}

	.resource-book-image {
		flex: none;
		width: 210px;
		margin: 0 auto;
	}

	.resource-book-content {
		width: 100%;
	}
}

