/**
 * Orgbon Testimonials Section - Main Styles
 * 
 * Production-ready CSS for Hello Elementor theme
 * Features: Slider/carousel, quote icons, navigation, animations
 * @version 1.0.0
 */

/* ==========================================================================
   CSS RESET FOR TESTIMONIALS SECTION
   ========================================================================== */

.orgbon-testimonials-section,
.orgbon-testimonials-section *,
.orgbon-testimonials-section *::before,
.orgbon-testimonials-section *::after {
    box-sizing: border-box !important;
}

/* ==========================================================================
   BASE SECTION STYLES
   ========================================================================== */

.orgbon-testimonials-section {
    position: relative !important;
    width: 100% !important;
    overflow: hidden !important;
    background-color: #1E3A5F !important;
}

.orgbon-testimonials-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.orgbon-testimonials-header {
    margin-bottom: 50px !important;
}

.orgbon-testimonials-subtitle {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 10px !important;
}

.orgbon-testimonials-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

.orgbon-testimonials-description {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    max-width: 600px !important;
}

/* ==========================================================================
   HEADER ALIGNMENT CLASSES
   ========================================================================== */

.orgbon-testimonials-header.orgbon-align-left {
    text-align: left !important;
}

.orgbon-testimonials-header.orgbon-align-left .orgbon-testimonials-subtitle,
.orgbon-testimonials-header.orgbon-align-left .orgbon-testimonials-title,
.orgbon-testimonials-header.orgbon-align-left .orgbon-testimonials-description {
    text-align: left !important;
}

.orgbon-testimonials-header.orgbon-align-left .orgbon-testimonials-description {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.orgbon-testimonials-header.orgbon-align-center {
    text-align: center !important;
}

.orgbon-testimonials-header.orgbon-align-center .orgbon-testimonials-subtitle,
.orgbon-testimonials-header.orgbon-align-center .orgbon-testimonials-title,
.orgbon-testimonials-header.orgbon-align-center .orgbon-testimonials-description {
    text-align: center !important;
}

.orgbon-testimonials-header.orgbon-align-center .orgbon-testimonials-description {
    margin-left: auto !important;
    margin-right: auto !important;
}

.orgbon-testimonials-header.orgbon-align-right {
    text-align: right !important;
}

.orgbon-testimonials-header.orgbon-align-right .orgbon-testimonials-subtitle,
.orgbon-testimonials-header.orgbon-align-right .orgbon-testimonials-title,
.orgbon-testimonials-header.orgbon-align-right .orgbon-testimonials-description {
    text-align: right !important;
}

.orgbon-testimonials-header.orgbon-align-right .orgbon-testimonials-description {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   GRID LAYOUT
   ========================================================================== */

.orgbon-testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* ==========================================================================
   SLIDER LAYOUT
   ========================================================================== */

.orgbon-testimonials-slider-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.orgbon-testimonials-slider {
    width: 100% !important;
    overflow: hidden !important;
}

.orgbon-slider-track {
    display: flex !important;
    transition: transform 0.5s ease !important;
}

.orgbon-testimonials-slider .orgbon-testimonial-card {
    flex: 0 0 100% !important;
    width: 100% !important;
}

/* Multiple slides per view */
.orgbon-testimonials-slider[data-slides="2"] .orgbon-testimonial-card {
    flex: 0 0 calc(50% - 15px) !important;
    margin-right: 30px !important;
}

.orgbon-testimonials-slider[data-slides="3"] .orgbon-testimonial-card {
    flex: 0 0 calc(33.333% - 20px) !important;
    margin-right: 30px !important;
}

/* ==========================================================================
   TESTIMONIAL CARD
   ========================================================================== */

.orgbon-testimonial-card {
    position: relative !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 40px !important;
    transition: all 0.3s ease !important;
}

.orgbon-testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Content Alignment */
.orgbon-testimonial-card.orgbon-align-left {
    text-align: left !important;
}

.orgbon-testimonial-card.orgbon-align-center {
    text-align: center !important;
}

.orgbon-testimonial-card.orgbon-align-right {
    text-align: right !important;
}

/* ==========================================================================
   QUOTE ICON
   ========================================================================== */

.orgbon-quote-icon {
    display: inline-block !important;
    margin-bottom: 20px !important;
}

.orgbon-quote-icon svg {
    width: 60px !important;
    height: 60px !important;
    fill: rgba(255, 255, 255, 0.2) !important;
}

/* Quote Icon - Background (Large) */
.orgbon-quote-icon.orgbon-quote-background {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    margin: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.orgbon-quote-icon.orgbon-quote-background svg {
    width: 120px !important;
    height: 120px !important;
    fill: rgba(255, 255, 255, 0.08) !important;
}

.orgbon-testimonial-card.orgbon-quote-background .orgbon-testimonial-quote,
.orgbon-testimonial-card.orgbon-quote-background .orgbon-testimonial-attribution {
    position: relative !important;
    z-index: 1 !important;
}

/* Quote Icon - Inline */
.orgbon-quote-icon.orgbon-quote-inline {
    display: inline !important;
    margin: 0 !important;
    margin-right: 5px !important;
    vertical-align: top !important;
}

.orgbon-quote-icon.orgbon-quote-inline svg {
    width: 24px !important;
    height: 24px !important;
    display: inline-block !important;
    vertical-align: top !important;
}

/* ==========================================================================
   QUOTE TEXT
   ========================================================================== */

.orgbon-testimonial-quote {
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    font-style: italic !important;
    line-height: 1.7 !important;
    color: #ffffff !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    border: none !important;
    quotes: none !important;
}

.orgbon-testimonial-quote::before,
.orgbon-testimonial-quote::after {
    content: none !important;
}

/* ==========================================================================
   RATING STARS
   ========================================================================== */

.orgbon-rating {
    display: flex !important;
    gap: 3px !important;
    margin-bottom: 15px !important;
}

.orgbon-testimonial-card.orgbon-align-center .orgbon-rating {
    justify-content: center !important;
}

.orgbon-testimonial-card.orgbon-align-right .orgbon-rating {
    justify-content: flex-end !important;
}

.orgbon-rating-star {
    font-size: 20px !important;
    line-height: 1 !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

.orgbon-rating-star.filled {
    color: #FFD700 !important;
}

/* ==========================================================================
   ATTRIBUTION
   ========================================================================== */

.orgbon-testimonial-attribution {
    display: flex !important;
    align-items: center !important;
}

.orgbon-testimonial-card.orgbon-align-center .orgbon-testimonial-attribution {
    justify-content: center !important;
}

.orgbon-testimonial-card.orgbon-align-right .orgbon-testimonial-attribution {
    justify-content: flex-end !important;
}

/* Attribution Layouts */
.orgbon-attribution-stacked .orgbon-attribution-text {
    display: flex !important;
    flex-direction: column !important;
}

.orgbon-attribution-inline .orgbon-attribution-text {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
}

.orgbon-attribution-with-image {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.orgbon-attribution-with-image .orgbon-attribution-text {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

/* Attribution Separator */
.orgbon-attribution-separator {
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 5px !important;
}

/* Client Image */
.orgbon-client-image {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    flex-shrink: 0 !important;
}

.orgbon-attribution-stacked .orgbon-client-image,
.orgbon-attribution-inline .orgbon-client-image {
    margin-bottom: 15px !important;
}

.orgbon-testimonial-card.orgbon-align-center .orgbon-attribution-stacked .orgbon-client-image,
.orgbon-testimonial-card.orgbon-align-center .orgbon-attribution-inline .orgbon-client-image {
    margin-left: auto !important;
    margin-right: auto !important;
}

.orgbon-client-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Client Name */
.orgbon-client-name {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    font-style: normal !important;
    color: #ffffff !important;
    margin: 0 !important;
}

/* Client Title & Organization */
.orgbon-client-title,
.orgbon-client-organization {
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
}

.orgbon-attribution-stacked .orgbon-client-title {
    margin-top: 3px !important;
}

.orgbon-attribution-stacked .orgbon-client-organization {
    margin-top: 2px !important;
}

/* ==========================================================================
   SLIDER NAVIGATION
   ========================================================================== */

.orgbon-slider-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 40px !important;
}

/* Dots */
.orgbon-slider-dots {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.orgbon-slider-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.orgbon-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.orgbon-slider-dot.active {
    background-color: #ffffff !important;
    transform: scale(1.2) !important;
}

/* Arrows */
.orgbon-slider-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.orgbon-slider-arrow:hover {
    background-color: #ffffff !important;
    color: #1E3A5F !important;
}

.orgbon-slider-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.orgbon-slider-arrow svg {
    width: 24px !important;
    height: 24px !important;
}

/* Arrows - Side Position */
.orgbon-testimonials-slider-wrapper > .orgbon-slider-prev {
    position: absolute !important;
    left: -70px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

.orgbon-testimonials-slider-wrapper > .orgbon-slider-next {
    position: absolute !important;
    right: -70px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.orgbon-animate-on-scroll .orgbon-animate-item {
    opacity: 0 !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out !important;
}

.orgbon-animate-on-scroll[data-animation-type="fade-up"] .orgbon-animate-item {
    transform: translateY(40px) !important;
}

.orgbon-animate-on-scroll[data-animation-type="fade-in"] .orgbon-animate-item {
    transform: translateY(0) !important;
}

.orgbon-animate-on-scroll[data-animation-type="zoom-in"] .orgbon-animate-item {
    transform: scale(0.9) !important;
}

.orgbon-animate-on-scroll .orgbon-animate-item.orgbon-animated {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media screen and (max-width: 1200px) {
    .orgbon-testimonials-slider-wrapper > .orgbon-slider-prev {
        left: -60px !important;
    }
    
    .orgbon-testimonials-slider-wrapper > .orgbon-slider-next {
        right: -60px !important;
    }
}

@media screen and (max-width: 1024px) {
    .orgbon-testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .orgbon-testimonials-title {
        font-size: 2rem !important;
    }
    
    .orgbon-testimonials-slider-wrapper > .orgbon-slider-prev,
    .orgbon-testimonials-slider-wrapper > .orgbon-slider-next {
        display: none !important;
    }
    
    .orgbon-slider-navigation {
        margin-top: 30px !important;
    }
}

@media screen and (max-width: 768px) {
    .orgbon-testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    .orgbon-testimonials-title {
        font-size: 1.75rem !important;
    }
    
    .orgbon-testimonial-card {
        padding: 30px !important;
    }
    
    .orgbon-testimonial-quote {
        font-size: 1.1rem !important;
    }
    
    .orgbon-quote-icon svg {
        width: 45px !important;
        height: 45px !important;
    }
    
    .orgbon-quote-icon.orgbon-quote-background svg {
        width: 80px !important;
        height: 80px !important;
    }
    
    .orgbon-client-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .orgbon-slider-arrow {
        width: 40px !important;
        height: 40px !important;
    }
    
    .orgbon-slider-arrow svg {
        width: 20px !important;
        height: 20px !important;
    }
}

@media screen and (max-width: 576px) {
    .orgbon-testimonials-title {
        font-size: 1.5rem !important;
    }
    
    .orgbon-testimonial-card {
        padding: 25px !important;
    }
    
    .orgbon-testimonial-quote {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    .orgbon-attribution-with-image {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .orgbon-attribution-with-image .orgbon-attribution-text {
        text-align: center !important;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .orgbon-animate-on-scroll .orgbon-animate-item,
    .orgbon-slider-track,
    .orgbon-testimonial-card,
    .orgbon-slider-dot,
    .orgbon-slider-arrow {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Focus styles */
.orgbon-slider-dot:focus,
.orgbon-slider-arrow:focus {
    outline: 2px solid #ffffff !important;
    outline-offset: 3px !important;
}

.orgbon-slider-dot:focus:not(:focus-visible),
.orgbon-slider-arrow:focus:not(:focus-visible) {
    outline: none !important;
}

/* ==========================================================================
   ELEMENTOR EDITOR FIXES
   ========================================================================== */

.elementor-editor-active .orgbon-testimonials-section {
    min-height: 300px !important;
}

.elementor-editor-active .orgbon-animate-on-scroll .orgbon-animate-item {
    opacity: 1 !important;
    transform: none !important;
}

.elementor-editor-active .orgbon-testimonials-slider .orgbon-testimonial-card {
    flex: 0 0 100% !important;
}

.elementor-editor-active .orgbon-slider-track {
    transition: none !important;
}
