/**
 * V2 Testimonial Quote Banner Block Styles
 * 
 * Optimized responsive styles for full-width background with quote overlay
 */

/* ===================================
   Container & Layout
   =================================== */

.v2-testimonial-quote-banner {
    position: relative;
    width: 100%;
    margin: 40px 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

/* ===================================
   Background Image Layer
   =================================== */

.v2-quote-banner__background {
    position: absolute;
    top: 0;
    left: 15px;
    right: 15px;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* ===================================
   Content Container
   =================================== */

.v2-quote-banner__container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
}

.p-relative {
    position: relative;
}

.v2-quote-banner__content {
    width: 38%;
    flex-shrink: 0;
    margin: 40px 30px;
}

/* ===================================
   Quote Section (Overlay Box)
   =================================== */

.v2-quote-banner__quote-section {
    background-color: var(--quote-bg-color, #FF5733);
    padding: 52px 30px 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    height: 100%;
}

.v2-quote-banner__quote {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}
/* ===================================
   Author Section
   =================================== */

.v2-quote-banner__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v2-quote-banner__author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.v2-quote-banner__author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.v2-quote-banner__author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.v2-quote-banner__author-name {
    font-size: 1.125rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.v2-quote-banner__author-position {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-style: italic;
    line-height: 1.3;
}

/* ===================================
   Responsive Styles
   =================================== */

/* Large Desktop: Larger min-height */

/* Tablet: 768px - 991px */
@media (max-width: 991px) {

    .v2-quote-banner__content {
        width: 55%;
    }

    .v2-quote-banner__quote-section {
        padding: 2.5rem 2rem;
        gap: 1.5rem;
    }

    .v2-quote-banner__quote {
        font-size: clamp(1.125rem, 2.2vw, 1.625rem);
    }

    .v2-quote-banner__author-image {
        width: 55px;
        height: 55px;
    }

    .v2-quote-banner__author-name {
        font-size: 1.0625rem;
    }

    .v2-quote-banner__author-position {
        font-size: 0.875rem;
    }
}

/* Mobile: 576px - 767px */
@media (max-width: 767px) {
  .v2-quote-banner__content {
      margin: 0;
  }

    .v2-quote-banner__container {
        padding: 2.5rem 1.25rem;
    }

    .v2-quote-banner__content {
        width: 100%;
    }

    .v2-quote-banner__quote-section {
        padding: 2.5rem 1.5rem;
    }

    .v2-quote-banner__quote {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }

    .v2-quote-banner__author-image {
        width: 50px;
        height: 50px;
    }

    .v2-quote-banner__author-name {
        font-size: 1rem;
    }

    .v2-quote-banner__author-position {
        font-size: 0.875rem;
    }
}

/* Small Mobile: < 576px */
@media (max-width: 575px) {

    .v2-quote-banner__container {
        padding: 2rem 1rem;
    }

    .v2-quote-banner__quote-section {
        padding: 1.75rem 1.25rem;
        gap: 1.25rem;
    }

    .v2-quote-banner__quote {
        font-size: 1.125rem;
    }

    .v2-quote-banner__author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .v2-quote-banner__author-image {
        width: 60px;
        height: 60px;
    }
}

/* ===================================
   WordPress Alignment Support
   =================================== */

.v2-testimonial-quote-banner.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.v2-testimonial-quote-banner.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Accessibility & Print Styles
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none;
    }
}

@media print {
    .v2-testimonial-quote-banner {
        page-break-inside: avoid;
    }
}
