/* ==========================================================================
NEXTGEN TESTIMONIALS SECTION STYLES (WITH BRANDED POPUP MODAL)
========================================================================== */

.ng-testi-wrapper {
width: min(100% - 2rem, 1170px);
margin: 4rem auto;
position: relative;
background: transparent;
border: none;
box-shadow: none;
padding: 0;
}

/* Section Header - Side by Side with Arrow Controls on Desktop */
.ng-testi-header {
position: relative;
z-index: 2;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
gap: 1rem;
}

.ng-testi-title-group {
display: flex;
flex-direction: column;
gap: 0.3rem;
}

.ng-testi-title {
font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: capitalize !important;
  line-height: 1.2;
  color: #000000;
  margin: 0;
}

.ng-testi-subtitle {
font-family: var(--ng-font-body, 'Inter', sans-serif);
font-size: 0.8rem;
font-weight: 700;
color: var(--ng-coral, #FEAC97);
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
}

/* Desktop Arrow Navigation Controls */
.ng-testi-nav-arrows {
display: flex;
gap: 0.75rem;
}

.ng-testi-arrow-btn {
width: 40px;
height: 40px;
border-radius: 50%;
background: #ffffff;
border: 1px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #000000;
transition: all 0.3s ease;
}

.ng-testi-arrow-btn:hover {
background: var(--ng-coral, #FEAC97);
color: #ffffff;
border-color: var(--ng-coral, #FEAC97);
transform: translateY(-2px);
}

.ng-testi-arrow-btn svg {
width: 18px;
height: 18px;
}

/* Horizontal Slider Track Container */
.ng-testi-slider-container {
position: relative;
z-index: 2;
width: 100%;
}

.ng-testi-grid {
display: flex;
flex-wrap: nowrap;
overflow-x: auto;
scroll-snap-type: x mandatory;
gap: 1.5rem;
width: 100%;
padding-bottom: 0.75rem;
scrollbar-width: none;
scroll-behavior: smooth;
}

.ng-testi-grid::-webkit-scrollbar {
display: none;
}

/* Card Container */
.ng-testi-card {
flex: 0 0 280px;
min-width: 280px;
background: #ffffff;
border-radius: 20px;
overflow: hidden;
border: 1px solid rgba(0, 0, 0, 0.08);
height: 320px;
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 0.85rem;
scroll-snap-align: start;
box-shadow: none !important;
transition: transform 0.3s ease;
}

.ng-testi-card:hover {
transform: translateY(-4px);
}

/* Character Image Background */
.ng-testi-image-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 0;
}

/* White Pill Button Overlay at Bottom of Card */
.ng-testi-pill-btn {
position: relative;
z-index: 2;
background: #ffffff;
border-radius: 50px;
padding: 0.75rem 1rem;
border: none;
outline: none;
cursor: pointer;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
font-family: var(--ng-font-body, 'Inter', sans-serif);
font-size: 0.8rem;
font-weight: 800;
color: #000000;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
transition: background 0.2s ease, transform 0.2s ease;
}

.ng-testi-pill-btn:hover {
background: #f8f8f8;
transform: scale(1.02);
}

.ng-testi-quote-icon {
width: 18px;
height: 18px;
color: var(--ng-coral, #FEAC97);
flex-shrink: 0;
}

/* ==========================================================================
NEXTGEN BRANDED MODAL POPUP STYLES
========================================================================== */

.ng-modal-overlay {
position: fixed;
inset: 0;
background: rgba(11, 7, 4, 0.75);
backdrop-filter: blur(8px);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
padding: 1.5rem;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ng-modal-overlay.active {
opacity: 1;
visibility: visible;
}

.ng-modal-card {
background: #ffffff;
border-radius: 24px;
max-width: 500px;
width: 100%;
padding: 2.25rem 2rem 2rem;
position: relative;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
transform: translateY(20px) scale(0.95);
transition: transform 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.08);
}

.ng-modal-overlay.active .ng-modal-card {
transform: translateY(0) scale(1);
}

.ng-modal-close {
position: absolute;
top: 1.25rem;
right: 1.25rem;
width: 34px;
height: 34px;
border-radius: 50%;
background: #f0f0f0;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #000000;
font-size: 1.2rem;
line-height: 1;
transition: background 0.2s ease;
}

.ng-modal-close:hover {
background: var(--ng-coral, #FEAC97);
color: #ffffff;
}

.ng-modal-header-user {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1.25rem;
}

.ng-modal-avatar {
width: 56px;
height: 56px;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--ng-coral, #FEAC97);
}

.ng-modal-user-info h3 {
font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
font-size: 1.15rem;
font-weight: 800;
margin: 0 0 0.2rem 0;
color: #000000;
}

.ng-modal-stars {
color: #FFCC00; /* Lightning yellow */
font-size: 0.9rem;
}

.ng-modal-body-text {
font-family: var(--ng-font-body, 'Inter', sans-serif);
font-size: 0.95rem;
line-height: 1.6;
color: #333333;
margin: 0;
white-space: pre-line;
}

.ng-modal-footer-badge {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid #eeeeee;
display: flex;
align-items: center;
gap: 0.5rem;
font-family: var(--ng-font-body, 'Inter', sans-serif);
font-size: 0.75rem;
font-weight: 700;
color: var(--ng-coral, #FEAC97);
text-transform: uppercase;
letter-spacing: 0.05em;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 768px) {
.ng-testi-wrapper {
width: min(100% - 1rem, 1170px);
}

.ng-testi-nav-arrows {
display: none;
}

.ng-testi-card {
flex: 0 0 240px;
min-width: 240px;
height: 280px;
padding: 0.6rem;
}

.ng-testi-pill-btn {
padding: 0.6rem 0.85rem;
font-size: 0.72rem;
}

.ng-testi-title {
font-size: 1rem;
}

.ng-testi-subtitle {
font-size: 0.7rem;
white-space: normal;
}
}