/**
 * WW BP Manager — Shortcode Styles
 *
 * Styles for [ww_related_coverage], [ww_faq_inset], [ww_featured_faqs], and [ww_cta]
 */

/* =======================================================================
   WordPress Image Alignment Preservation
   Ensures WP image alignment classes work within WP Bakery content
   ======================================================================= */
.wpb_text_column img.alignright,
.vc_column_text img.alignright,
.wpb_wrapper img.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
    max-width: 50%;
    height: auto;
}

.wpb_text_column img.alignleft,
.vc_column_text img.alignleft,
.wpb_wrapper img.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
    max-width: 50%;
    height: auto;
}

.wpb_text_column img.aligncenter,
.vc_column_text img.aligncenter,
.wpb_wrapper img.aligncenter {
    display: block;
    margin: 1em auto;
    max-width: 100%;
    height: auto;
}

.wpb_text_column img.alignnone,
.vc_column_text img.alignnone,
.wpb_wrapper img.alignnone {
    margin: 1em 0;
    max-width: 100%;
    height: auto;
}

/* Clear floats after content sections */
.wpb_text_column .wpb_wrapper::after,
.vc_column_text::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive: stack images on mobile */
@media (max-width: 600px) {
    .wpb_text_column img.alignright,
    .wpb_text_column img.alignleft,
    .vc_column_text img.alignright,
    .vc_column_text img.alignleft,
    .wpb_wrapper img.alignright,
    .wpb_wrapper img.alignleft {
        float: none;
        display: block;
        margin: 1em auto;
        max-width: 100%;
    }
}

/* =======================================================================
   Inset Box (shared by related coverage and FAQ inset)
   ======================================================================= */
.ww-bpm-inset {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.ww-bpm-inset-title {
    margin: 0 0 16px;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e3a5f;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
}

/* =======================================================================
   Related Coverage List
   ======================================================================= */
.ww-bpm-coverage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ww-bpm-coverage-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e4e7;
}

.ww-bpm-coverage-list li:last-child {
    border-bottom: none;
}

.ww-bpm-coverage-list a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.ww-bpm-coverage-list a:hover {
    text-decoration: underline;
}

/* =======================================================================
   FAQ Accordion (shared by faq_inset and featured_faqs)
   ======================================================================= */
.ww-bpm-faq-item {
    margin: 0 0 8px;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.ww-bpm-faq-item[open] {
    border-color: #2563eb;
}

.ww-bpm-faq-question {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1e3a5f;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.ww-bpm-faq-question::-webkit-details-marker {
    display: none;
}

.ww-bpm-faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: 400;
    color: #2563eb;
    transition: transform 0.2s ease;
}

.ww-bpm-faq-item[open] .ww-bpm-faq-question::after {
    content: '−';
}

.ww-bpm-faq-question:hover {
    background: #f8f9fa;
}

.ww-bpm-faq-answer {
    padding: 0 20px 20px;
    color: #374151;
    line-height: 1.7;
}

.ww-bpm-faq-answer p:first-child {
    margin-top: 0;
}

.ww-bpm-faq-answer p:last-child {
    margin-bottom: 0;
}

/* =======================================================================
   Featured FAQs (main content block)
   ======================================================================= */
.ww-bpm-featured-faqs {
    margin: 40px 0;
}

.ww-bpm-featured-faqs-title {
    font-size: 1.5em;
    color: #1e3a5f;
    margin: 0 0 24px;
    font-weight: 700;
}

.ww-bpm-more-faqs {
    margin-top: 20px;
    text-align: center;
}

.ww-bpm-more-faqs a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.ww-bpm-more-faqs a:hover {
    text-decoration: underline;
}

/* =======================================================================
   CTA Block
   ======================================================================= */
.ww-bpm-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.ww-bpm-cta-heading {
    font-size: 1.75em;
    margin: 0 0 16px;
    color: #fff;
}

.ww-bpm-cta-text {
    font-size: 1.1em;
    margin: 0 0 24px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ww-bpm-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ww-bpm-cta-button {
    display: inline-block;
    background: #fff;
    color: #1e3a5f;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ww-bpm-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #1e3a5f;
}

.ww-bpm-cta-or {
    opacity: 0.8;
}

.ww-bpm-cta-phone {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(255,255,255,0.5);
}

.ww-bpm-cta-phone:hover {
    border-bottom-color: #fff;
    color: #fff;
}

/* CTA Style Variations */
.ww-bpm-cta--highlight {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
}

.ww-bpm-cta--minimal {
    background: #f8f9fa;
    color: #1e3a5f;
    border: 2px solid #e2e4e7;
}

.ww-bpm-cta--minimal .ww-bpm-cta-heading {
    color: #1e3a5f;
}

.ww-bpm-cta--minimal .ww-bpm-cta-button {
    background: #2563eb;
    color: #fff;
}

.ww-bpm-cta--minimal .ww-bpm-cta-button:hover {
    background: #1d4ed8;
    color: #fff;
}

.ww-bpm-cta--minimal .ww-bpm-cta-or {
    color: #6b7280;
}

.ww-bpm-cta--minimal .ww-bpm-cta-phone {
    color: #2563eb;
    border-bottom-color: rgba(37, 99, 235, 0.5);
}

/* =======================================================================
   Responsive
   ======================================================================= */
@media (max-width: 600px) {
    .ww-bpm-cta {
        padding: 30px 20px;
    }
    
    .ww-bpm-cta-heading {
        font-size: 1.4em;
    }
    
    .ww-bpm-cta-actions {
        flex-direction: column;
    }
    
    .ww-bpm-cta-button {
        width: 100%;
        text-align: center;
    }
    
    .ww-bpm-faq-question {
        padding: 14px 16px;
        padding-right: 36px;
        font-size: 0.95em;
    }
    
    .ww-bpm-faq-answer {
        padding: 0 16px 16px;
    }
}

/* =======================================================================
   Hero Parallax Section [ww_hero]
   ======================================================================= */
.ww-hero-parallax {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: stretch;
    margin: 0 0 30px;
    border-radius: 10px;
    overflow: hidden;
}

/* Fallback for mobile (no fixed attachment) */
@supports (-webkit-overflow-scrolling: touch) {
    .ww-hero-parallax {
        background-attachment: scroll;
    }
}

.ww-hero-overlay {
    width: 100%;
    min-height: 200px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ww-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.ww-hero-text,
.ww-hero-text p {
    color: #ffffff !important;
    font-size: 1.4em !important;
    line-height: 1.6 !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3) !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.ww-hero-simple {
    background: var(--ww-color-c, #fd5401);
    padding: 60px 40px;
    margin: 0 0 30px;
    border-radius: 10px;
}

.ww-hero-simple .ww-hero-content {
    color: #fff;
    font-size: 1.4em;
    line-height: 1.6;
    font-weight: 500;
}

/* Overlay color classes (use with el_class on column) */
.ww-bg-a-85 { background-color: rgba(1, 76, 143, 0.85) !important; }
.ww-bg-b-85 { background-color: rgba(3, 36, 103, 0.85) !important; }
.ww-bg-c-85 { background-color: rgba(253, 84, 1, 0.85) !important; }
.ww-bg-d-85 { background-color: rgba(108, 111, 113, 0.85) !important; }

.ww-bg-a-70 { background-color: rgba(1, 76, 143, 0.70) !important; }
.ww-bg-b-70 { background-color: rgba(3, 36, 103, 0.70) !important; }
.ww-bg-c-70 { background-color: rgba(253, 84, 1, 0.70) !important; }
.ww-bg-d-70 { background-color: rgba(108, 111, 113, 0.70) !important; }

/* =======================================================================
   Featured Image [ww_featured_image]
   ======================================================================= */
.ww-featured-image {
    margin: 20px 0;
    line-height: 0;
}

.ww-featured-image img {
    max-width: 100%;
    height: auto;
}

.ww-featured-image--rounded img {
    border-radius: 10px;
}

.ww-featured-image--shadow img {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ww-featured-image--rounded.ww-featured-image--shadow img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ww-featured-image a {
    display: block;
}

/* =======================================================================
   Callout Box (for Key Questions)
   ======================================================================= */
.ww-callout {
    background-color: #f0f4f8 !important;
    border-left: 4px solid var(--ww-color-c, #fd5401) !important;
    padding: 16px 20px !important;
    margin: 20px 0 !important;
}

.ww-callout p {
    margin: 0 !important;
    font-size: 1.05em !important;
}

.ww-callout strong {
    color: var(--ww-color-a, #014c8f) !important;
}

/* =======================================================================
   Sidebar Heading Style
   ======================================================================= */
.ww-sidebar-heading {
    color: var(--ww-color-a, #014c8f) !important;
    border-bottom: 2px solid var(--ww-color-c, #fd5401) !important;
    padding-bottom: 8px !important;
    margin-bottom: 16px !important;
}

/* =======================================================================
   CTA Box (for use with el_class)
   ======================================================================= */
.ww-cta-box {
    background: linear-gradient(135deg, var(--ww-color-b, #032467) 0%, var(--ww-color-a, #014c8f) 100%) !important;
    padding: 30px !important;
    margin: 30px 0 !important;
    border-radius: 8px !important;
}

.ww-cta-box p {
    color: #ffffff !important;
    text-align: center !important;
    margin: 0 !important;
}

.ww-cta-box .ww-cta-heading {
    font-size: 1.2em !important;
    margin: 0 0 10px !important;
}

.ww-cta-box .ww-cta-subtext {
    color: rgba(255,255,255,0.9) !important;
    margin: 0 0 20px !important;
}

.ww-cta-button {
    display: inline-block !important;
    background: var(--ww-color-c, #fd5401) !important;
    color: #fff !important;
    padding: 14px 32px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.ww-cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    color: #fff !important;
}

/* =======================================================================
   Hero Responsive
   ======================================================================= */
@media (max-width: 768px) {
    .ww-hero-parallax {
        background-attachment: scroll;
        min-height: 250px;
    }
    
    .ww-hero-overlay {
        padding: 40px 20px;
    }
    
    .ww-hero-text,
    .ww-hero-text p {
        font-size: 1.2em !important;
    }
    
    .ww-hero-simple {
        padding: 40px 20px;
    }
    
    .ww-hero-simple .ww-hero-content {
        font-size: 1.2em;
    }
}

/* =======================================================================
   FAQ Archive [ww_faq_archive]
   ======================================================================= */
.ww-bpm-faq-archive {
    max-width: 900px;
    margin: 0 auto;
}

/* Toolbar: Filter + Search */
.ww-bpm-faq-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ww-bpm-faq-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

.ww-bpm-faq-filter {
    flex: 0 0 200px;
}

.ww-bpm-faq-filter-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    background: #fff;
    cursor: pointer;
}

.ww-bpm-faq-search {
    flex: 1;
    min-width: 250px;
    display: flex;
    gap: 12px;
}

.ww-bpm-faq-search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.ww-bpm-faq-search-input:focus {
    outline: none;
    border-color: var(--ww-color-a, #014c8f);
    box-shadow: 0 0 0 3px rgba(1, 76, 143, 0.1);
}

.ww-bpm-faq-search-btn {
    height: 48px;
    padding: 0 24px;
    background: var(--ww-color-a, #014c8f);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.ww-bpm-faq-search-btn:hover {
    background: var(--ww-color-b, #032467);
}

/* Results count */
.ww-bpm-faq-count {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
}

.ww-bpm-faq-clear {
    color: var(--ww-color-c, #fd5401);
    text-decoration: none;
}

.ww-bpm-faq-clear:hover {
    text-decoration: underline;
}

/* FAQ list */
.ww-bpm-faq-list {
    margin-bottom: 30px;
}

.ww-bpm-faq-none {
    padding: 40px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Pagination */
.ww-bpm-faq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid #eee;
}

.ww-bpm-faq-page-numbers {
    display: flex;
    gap: 8px;
}

.ww-bpm-faq-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #f8f9fa;
    color: var(--ww-color-a, #014c8f);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ww-bpm-faq-page-link:hover {
    background: var(--ww-color-a, #014c8f);
    color: #fff;
}

.ww-bpm-faq-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--ww-color-a, #014c8f);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

.ww-bpm-faq-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #999;
}

.ww-bpm-faq-prev,
.ww-bpm-faq-next {
    font-weight: 600;
    padding: 0 20px;
}

/* FAQ Archive Responsive */
@media (max-width: 600px) {
    .ww-bpm-faq-toolbar {
        padding: 16px;
    }
    
    .ww-bpm-faq-filter {
        flex: 1 1 100%;
    }
    
    .ww-bpm-faq-search {
        min-width: 100%;
    }
    
    .ww-bpm-faq-pagination {
        gap: 8px;
    }
    
    .ww-bpm-faq-page-numbers {
        gap: 4px;
    }
    
    .ww-bpm-faq-page-link,
    .ww-bpm-faq-page-current,
    .ww-bpm-faq-page-ellipsis {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.9em;
    }
    
    .ww-bpm-faq-prev,
    .ww-bpm-faq-next {
        width: 100%;
        text-align: center;
        margin: 4px 0;
        height: 44px;
    }
}

/* ==========================================================================
   Note: Card and Button utility classes (ww-bp-card, ww-bp-btn, etc.)
   are now in the theme's main.css for use without the plugin.
   ========================================================================== */
