/* Coastal Site Additions: styles for the plugin's templates only. Every selector is scoped to .cewa-* so theme pages are unaffected. Colors and fonts come from the theme's :root variables. */

.cewa-content-sec { padding: clamp(50px, calc(-330px + 25vw), 90px) 0; }
.cewa-content-sec.pt-0 { padding-top: 0; }

.cewa-content { color: var(--text-grey); font-family: var(--font2); }
.cewa-content > :first-child { margin-top: 0; }
.cewa-content p,
.cewa-content li { font-size: 18px; line-height: 1.6; color: var(--text-grey); font-family: var(--font2); }
.cewa-content p { margin-bottom: 1.1em; }
.cewa-content h2 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.25; color: var(--primary); margin: 1.4em 0 .6em; font-weight: 600; }
.cewa-content h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; color: var(--primary-dark); margin: 1.3em 0 .5em; font-weight: 600; }
.cewa-content h4 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.35; color: #272727; margin: 1.2em 0 .4em; font-weight: 600; }
.cewa-content ul,
.cewa-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.cewa-content ul li { list-style: disc; margin-bottom: .5em; }
.cewa-content ol li { list-style: decimal; margin-bottom: .5em; }
.cewa-content li ul { margin: .5em 0 0; }
.cewa-content strong { color: #3d3d3d; }
.cewa-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cewa-content a:hover { color: var(--primary-dark); }
.cewa-content a.btn,
.cewa-content a.btn:hover { text-decoration: none; color: var(--white); }
.cewa-content img { border-radius: 12px; margin: 10px 0 26px; max-width: 100%; height: auto; display: block; }
.cewa-content video { width: 100%; height: auto; border-radius: 12px; margin: 10px 0 26px; background: #000; }
.cewa-content .aligncenter { margin-left: auto; margin-right: auto; }
.cewa-content hr { margin: 2em 0; border-color: #D9E2EA; opacity: 1; }

/* Blog */
.cewa-post-meta { font-family: var(--font1) !important; font-size: 14px !important; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--secondary) !important; margin-bottom: 8px !important; }
.cewa-post-title { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.2; color: var(--primary); margin-bottom: 28px; }
.cewa-cards { row-gap: 30px; }
.cewa-card { background: var(--white); border-radius: 15px; overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: rgba(0, 0, 0, .1) 0 4px 6px -1px, rgba(0, 0, 0, .06) 0 2px 4px -1px; }
.cewa-card-img { display: block; aspect-ratio: 16 / 10; background: #E7EEF5; overflow: hidden; }
.cewa-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s linear; }
.cewa-card:hover .cewa-card-img img { transform: scale(1.03); }
.cewa-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.cewa-card-title { font-size: 22px; line-height: 1.3; margin-bottom: 12px; font-weight: 600; }
.cewa-card-title a { color: var(--primary-dark); }
.cewa-card-title a:hover { color: var(--primary); }
.cewa-card-excerpt { font-size: 16px; line-height: 1.5; color: var(--text-grey); margin-bottom: 18px; }
.cewa-card .btn-more:hover { color: var(--primary); }
.cewa-card .btn-more:hover img { filter: none; }
.cewa-more-heading { text-align: center; margin-bottom: 40px; }
.cewa-blog-intro { text-align: center; margin-bottom: 40px; }
.cewa-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.cewa-pagination .page-numbers { padding: 8px 15px; border-radius: 8px; background: #ECECEC; color: var(--primary-dark); font-weight: 600; font-family: var(--font1); }
.cewa-pagination .page-numbers.current,
.cewa-pagination .page-numbers:hover { background: var(--primary); color: var(--white); }

/* FAQ accordion inside page content: reuses the theme's .faqs-sec styles */
.cewa-content .faqs-sec { border: 0; padding: 0; margin: 10px 0 20px; }
.cewa-content .faqs-sec .accordion-header { margin: 0; }
.cewa-content .faqs-sec .accordion-button { line-height: 1.35; }
.cewa-content .faqs-sec .accordion-body { padding: 22px 24px 6px; }
.cewa-content .faqs-sec .accordion-body ul li { margin-bottom: .6em; }

/* Boxes and call-outs */
.cewa-boxes { row-gap: 24px; margin: 10px 0 34px; }
.cewa-box { background: #F1F5F9; border-radius: 12px; padding: 28px 30px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.cewa-box h3 { margin-top: 0; }
.cewa-box p { font-size: 17px; }
.cewa-box .btn { margin-top: auto; }
.cewa-callout { background: var(--primary-dark); border-radius: 15px; padding: 32px 36px; margin: 10px 0 34px; }
.cewa-callout h2,
.cewa-callout h3 { color: var(--white); margin-top: 0; }
.cewa-callout p { color: var(--text); }
.cewa-callout img { margin: 0 0 18px; max-width: 130px; border-radius: 0; }
.cewa-small { font-size: 15px !important; }

/* Forms (Contact Form 7) */
.cewa-form-box { background: var(--white); border-radius: 15px; padding: clamp(24px, 3vw, 44px); margin: 10px 0 30px; box-shadow: rgba(0, 0, 0, .1) 0 4px 6px -1px, rgba(0, 0, 0, .06) 0 2px 4px -1px; }
.cewa-form-box h2 { margin-top: 0; }
.cewa-form-box .row { row-gap: 18px; }
.cewa-form-box form p { margin-bottom: 0; }
.cewa-form-box label,
.cewa-form-box .cewa-label { display: block; font-family: var(--font1); font-weight: 600; font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; }
.cewa-form-box .form-control,
.cewa-form-box .form-select { background-color: #ECECEC; border: 0; border-radius: 8px; padding: 13px; font-size: 15px; color: #3d3d3d; font-family: var(--font2); }
.cewa-form-box .form-control:focus,
.cewa-form-box .form-select:focus { outline: none; box-shadow: 0 0 0 2px var(--secondary); }
.cewa-form-box .wpcf7-list-item { margin: 0 20px 0 0; }
.cewa-form-box .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font2); font-weight: 400; color: var(--text-grey); margin: 0; }
.cewa-form-box .cewa-q { border-top: 1px solid #E7E7E7; padding-top: 14px; }
.cewa-form-box .cewa-q .cewa-label { font-size: 15px; font-weight: 500; color: #3d3d3d; font-family: var(--font2); }
.cewa-form-box .wpcf7-submit { min-width: 220px; }
.cewa-form-box .wpcf7-not-valid-tip { font-size: 14px; }
.cewa-form-box .wpcf7-response-output { border-radius: 8px; margin: 20px 0 0 !important; font-family: var(--font2); }

/* 404 */
.cewa-404 { text-align: center; }
.cewa-404-links { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; align-items: center; margin-top: 26px; }
.cewa-404-links .btn { width: 300px; max-width: 100%; justify-content: center; margin: 0 calc(50% - 150px) 6px; }

@media (max-width: 767px) {
	.cewa-content p,
	.cewa-content li { font-size: 16px; }
	.cewa-box,
	.cewa-callout { padding: 24px 22px; }
}
