/*
 * SeaNeB Native Gutenberg Blocks — Unified Styles
 * Covers: FAQs, Testimonials, Counters, Button
 * Mirrors the exact Elementor widget aesthetics.
 */

/* ===========================
   1. FAQ ACCORDION
   =========================== */

.seaneb-faq-widget .seaneb-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seaneb-faq-widget .seaneb-accordion-item {
    background-color: #f8fafc;
    border-radius: 8px;
    border: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.seaneb-faq-widget .seaneb-accordion-item:hover {
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.06);
    transform: translateY(-2px);
}

.seaneb-faq-widget .accordion-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: color-mix(in srgb, var(--seaneb-primary, #6EC1E4) 10%, transparent);
    border: none;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--seaneb-text-primary, #333);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
}

.seaneb-faq-widget .accordion-toggle:hover {
    color: var(--seaneb-primary, #6EC1E4);
}

.seaneb-faq-widget .accordion-icon {
    position: relative;
    width: 28px;
    height: 28px;
    background: #eff6ff;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 16px;
    transition: all 0.3s ease;
}

.seaneb-faq-widget .accordion-icon::before,
.seaneb-faq-widget .accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--seaneb-primary, #6EC1E4);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.seaneb-faq-widget .accordion-icon::before {
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.seaneb-faq-widget .accordion-icon::after {
    top: 50%;
    left: 50%;
    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
}

/* Active State */
.seaneb-faq-widget .seaneb-accordion-item.is-active .accordion-icon {
    background: var(--seaneb-primary, #6EC1E4);
}

.seaneb-faq-widget .seaneb-accordion-item.is-active .accordion-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
}

.seaneb-faq-widget .seaneb-accordion-item.is-active .accordion-icon::before {
    background: #ffffff;
}

.seaneb-faq-widget .accordion-content {
    line-height: 1.8;
    color: var(--e-global-color-text, #7A7A7A);
    display: none !important;
}

.seaneb-faq-widget .seaneb-accordion-item.is-active .accordion-content {
    display: block !important;
}

.seaneb-faq-widget .accordion-inner-content {
    padding: 24px 24px 24px;
}

.seaneb-faq-widget .accordion-inner-content p {
    margin: 0 0 0.8em;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===========================
   2. TESTIMONIALS CAROUSEL
   =========================== */

.seaneb-testimonials-widget {
    position: relative;
}

.seaneb-testimonials-widget .seaneb-testimonial-swiper {
    padding-bottom: 50px;
}

.seaneb-testimonials-widget .swiper-slide {
    height: auto;
}

.seaneb-testimonials-widget .seaneb-testimonial-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 280px;
}

.seaneb-testimonials-widget .seaneb-testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.seaneb-testimonials-widget .testimonial-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.seaneb-testimonials-widget .testimonial-content p {
    color: var(--seaneb-text-secondary, #64748b);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.seaneb-testimonials-widget .testimonial-author {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 18px;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.seaneb-testimonials-widget .author-image img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.seaneb-testimonials-widget .author-details {
    display: flex;
    flex-direction: column;
}

.seaneb-testimonials-widget .author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--seaneb-text-primary, #1e293b);
    margin: 0 0 2px;
}

.seaneb-testimonials-widget .author-role {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Swiper Pagination */
.seaneb-testimonials-widget .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s ease;
}

.seaneb-testimonials-widget .swiper-pagination-bullet-active {
    background: var(--e-global-color-primary, #6EC1E4);
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .seaneb-testimonials-widget .seaneb-testimonial-box {
        padding: 25px 18px;
        min-height: auto;
    }
}


/* ===========================
   3. COUNTERS
   =========================== */

.seaneb-counters-widget .seaneb-counters-container {
    display: grid;
    gap: 20px;
    align-items: center;
    text-align: center;
    background-color: #F8F6FA;
    padding: 50px 40px;
    border-radius: 16px;
}

.seaneb-counters-widget .seaneb-counter-item {
    padding: 20px 10px;
}

.seaneb-counters-widget .counter-number-wrapper {
    font-size: 48px;
    font-weight: 700;
    color: var(--seaneb-text-primary, #6EC1E4);
    margin-bottom: 8px;
    line-height: 1.2;
    font-family: var(--e-global-typography-primary-font-family, inherit);
}

.seaneb-counters-widget .counter-suffix,
.seaneb-counters-widget .counter-prefix {
    font-size: 0.8em;
    color: var(--seaneb-text-primary, #6EC1E4);
}

.seaneb-counters-widget .counter-label {
    color: var(--seaneb-text-secondary, #666);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .seaneb-counters-widget .seaneb-counters-container {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 30px 20px;
    }

    .seaneb-counters-widget .counter-number-wrapper {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .seaneb-counters-widget .seaneb-counters-container {
        grid-template-columns: 1fr !important;
    }
}