/* ARD Endorsements Widget Styles */
/* All styles scoped to .ard-endorsements-section to prevent conflicts */

.ard-endorsements-section {
    /* Widget-scoped custom properties */
    --ard-endorsements-gold: #cca97b;
    --ard-endorsements-dark: #10505a;
    --ard-endorsements-darker: #0a3a42;
    --ard-endorsements-bg-light: #f8f7f6;
    --ard-endorsements-bg-dark: #1e1a14;

    /* CSS isolation */
    isolation: isolate;
    
    position: relative;
    width: 100%;
    padding: 100px 20px;
    background-color: #ffffff;
    font-family: 'Manrope', sans-serif;
    color: var(--ard-endorsements-darker);
    overflow: hidden;
}

.ard-endorsements-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.ard-endorsements-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 64px;
    
    /* Initial State for Animation */
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.ard-endorsements-tag {
    display: inline-block;
    color: var(--ard-endorsements-gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif !important;
}

.ard-endorsements-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ard-endorsements-darker);
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    font-family: 'Miguer', sans-serif !important;
}

@media (min-width: 768px) {
    .ard-endorsements-title { font-size: 48px; }
}

.ard-endorsements-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif !important;
}

@media (min-width: 768px) {
    .ard-endorsements-desc { font-size: 18px; }
}

/* Slider Container */
.ard-endorsements-slider-container {
    width: 100%;
    position: relative;
    
    /* Initial State for Animation */
    opacity: 0;
    transform: scale(0.95);
    will-change: transform, opacity;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ard-endorsements-slider-container.ard-visible {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Buttons */
.ard-endorsements-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(16, 80, 90, 0.2);
    background: transparent;
    color: var(--ard-endorsements-dark);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .ard-endorsements-nav { display: flex; }
}

.ard-endorsements-nav:hover {
    background-color: var(--ard-endorsements-gold);
    border-color: var(--ard-endorsements-gold);
    color: #ffffff;
}

.ard-prev { left: -60px; }
.ard-next { right: -60px; }

.ard-endorsements-nav span {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.ard-prev:hover span { transform: translateX(-2px); }
.ard-next:hover span { transform: translateX(2px); }

/* Swiper */
.ard-endorsements-swiper {
    width: 100%;
    padding: 20px 0 60px 0; /* Bottom padding for pagination/shadows */
    overflow: visible;
    position: relative;
    list-style: none;
    z-index: 1;
}

.ard-endorsements-section .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.ard-endorsements-section .swiper-slide {
    flex-shrink: 0;
    width: 85vw;
    height: 100%;
    position: relative;
    transition-property: transform;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .ard-endorsements-section .swiper-slide { width: 600px; }
}

@media (min-width: 1024px) {
    .ard-endorsements-section .swiper-slide { width: 720px; }
}

.ard-endorsements-section .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* Card */
.ard-endorsement-card {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.ard-endorsement-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: #f3f4f6;
    transition: all 0.5s ease;
}

.ard-endorsements-section .swiper-slide-active .ard-endorsement-thumb-wrapper {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.ard-endorsement-card:hover .ard-endorsement-thumb-wrapper {
    transform: translateY(-4px);
}

.ard-endorsement-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.ard-endorsement-card:hover .ard-endorsement-thumb {
    transform: scale(1.05);
}

.ard-endorsement-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.5s ease;
}

.ard-endorsement-card:hover .ard-endorsement-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.ard-endorsement-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: rgba(204, 169, 123, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ard-endorsements-darker);
    box-shadow: 0 0 30px rgba(204, 169, 123, 0.4);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .ard-endorsement-play-btn { width: 80px; height: 80px; }
}

.ard-endorsement-card:hover .ard-endorsement-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--ard-endorsements-gold);
}

.ard-endorsement-play-btn span {
    font-size: 32px;
    margin-left: 4px; /* Visual centering */
}

@media (min-width: 768px) {
    .ard-endorsement-play-btn span { font-size: 40px; }
}

/* Meta Content */
.ard-endorsement-meta {
    margin-top: 32px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.ard-endorsements-section .swiper-slide-active .ard-endorsement-meta {
    opacity: 1;
    transform: translateY(0);
}

.ard-endorsement-quote {
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    color: var(--ard-endorsements-darker);
    margin: 0 0 12px 0;
    font-family: 'Montserrat', sans-serif !important;
}

@media (min-width: 768px) {
    .ard-endorsement-quote { font-size: 20px; }
}

.ard-endorsement-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--ard-endorsements-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    font-family: 'Miguer', sans-serif !important;
}

@media (min-width: 768px) {
    .ard-endorsement-name { font-size: 18px; }
}

.ard-endorsement-role {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    font-family: 'Montserrat', sans-serif !important;
}

/* Pagination */
.ard-endorsements-section .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(16, 80, 90, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
}

.ard-endorsements-section .swiper-pagination-bullet-active {
    background: var(--ard-endorsements-gold);
}

/* Modal */
.ard-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ard-video-modal.ard-open {
    opacity: 1;
    pointer-events: auto;
}

.ard-modal-content {
    position: relative;
    width: 90%;
    max-width: 1024px;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ard-video-modal.ard-open .ard-modal-content {
    transform: scale(1);
}

.ard-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.ard-modal-close:hover {
    color: #ffffff;
}

.ard-modal-close span:first-child {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ard-modal-close span:last-child {
    font-size: 24px;
}

.ard-video-frame {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Fallback: Show elements after a delay if JS doesn't animate them */
@keyframes ard-endorsements-fade-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ard-endorsements-header {
    animation: ard-endorsements-fade-in 0.8s ease 0.5s forwards;
}

.ard-endorsements-slider-container {
    animation: ard-endorsements-fade-in 0.8s ease 0.8s forwards;
}
