/* PAGE WRAPPER */
.testimonials-page{
    padding: clamp(3rem,6vw,5rem) 0;
    background:#f8eef7;
}

/* MAIN TITLE */
.testimonials-title {
    text-align: center;
    font-family: "Dancing Script";
    font-size: clamp(2.3rem, 5vw, 4rem);    
    color: rgb(110, 39, 99);
    margin-bottom: 4rem;
}

/* SECTION TITLES */
.section-title {
    font-family: "Dancing Script";
    font-size: 3rem;
    color: #ff07ac;
    margin: 3rem 0 2rem;
    text-align: center;
}
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: rgb(110, 39, 99);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.testimonials-intro {
    font-family: 'Lora', serif;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.8;
    color: #4b2b47;
    text-align: center;
    max-width: 70ch;
    margin: 1.5rem auto 3rem auto;
}

.testimonial-section{
    margin-top:4rem;
    padding-inline: clamp(1rem, 10vw, 15rem);
}

/* GRID */
.testimonials-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2rem;
    margin-top:2rem;
}

/* BOX FOR EACH ITEM */
.testimonial-item{
    background:white;
    padding:1rem;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    transition:transform .3s ease, box-shadow .3s ease;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* VIDEO & IMAGES styling */
.testimonial-item img,
.testimonial-item video{
    width:100%;
    height:auto;
    border-radius:10px;
    display:block;
    cursor: pointer;
}

/* HOVER EFFECT */
.testimonial-item:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 30px rgba(0,0,0,0.18);
}


/* MODAL FULLSCREEN OVERLAY */
.modal {
    display: none; 
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden; 
}

.modal.active {
    display: flex;
}

/* CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 10000;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ff07ac;
}

/* MODAL CONTENT CENTERING */
.modal-content {
    max-width: 70%;
    max-height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* Animate zoom */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* MODAL ARROWS */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: white;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    z-index: 10000;
    transition: transform 0.2s ease, color 0.2s ease;
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.modal-arrow:hover {
    color: #ff07ac;
    transform: translateY(-50%) scale(1.2);
}

body.modal-open {
    overflow: hidden;
}