/* ==========================================================
   SPEAKING COLLAGE (TRANSFORMATIONS SECTION)
========================================================== */

.speaking-collage{
    background: linear-gradient(180deg, #091526 0%, #0b1a30 100%);
    padding: 140px 0 100px 0;
    overflow-x: hidden; /* Prevents unwanted horizontal body scroll */
}

/* Section Header styling */
.transformations-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.transformations-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.7rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.transformations-title span {
    color: #d4af37; 
}

.transformations-divider {
    width: 80px;
    height: 3px;
    background-color: #d4af37;
    margin: 0 auto;
    border-radius: 2px;
}

.collage-container{
    width: min(1300px, 95%);
    margin: 0 auto 90px auto;
    display: grid;
    /* FIX: Changed 1fr to minmax(320px, 1fr) so side columns always accommodate the 320px photos safely */
    grid-template-columns: minmax(320px, 1fr) 520px minmax(320px, 1fr);
    grid-template-rows: 280px 280px;
    align-items: center;
    justify-items: center;
    position: relative;
    gap: 20px;
    overflow: visible; /* Allows GSAP animation start-points to render cleanly without clipping */
}

.collage-container:last-child {
    margin-bottom: 0;
}

/* ---------------- Images ---------------- */

.collage-photo{
    width: 320px;
    height: 250px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #d4af37; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease;
}

.collage-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.collage-photo:hover{
    transform: scale(1.04) rotate(0deg);
}

.photo1{
    grid-column: 1;
    grid-row: 1;
    transform: rotate(-6deg);
    justify-self: end;
    align-self: end;
    margin-bottom: 20px;
}

.photo2{
    grid-column: 3;
    grid-row: 1;
    transform: rotate(6deg);
    justify-self: start;
    align-self: end;
    margin-bottom: 20px;
}

.photo3{
    grid-column: 1;
    grid-row: 2;
    transform: rotate(5deg);
    justify-self: end;
    align-self: start;
    margin-top: 20px;
}

.photo4{
    grid-column: 3;
    grid-row: 2;
    transform: rotate(-6deg);
    justify-self: start;
    align-self: start;
    margin-top: 20px;
}

/* ---------------- Center Card ---------------- */

.collage-content{
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 480px;
    max-width: 100%;
    background: rgba(13, 27, 48, 0.95); 
    color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    z-index: 20;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3); 
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.collage-content .number{
    display: inline-block;
    font-size: 28px;
    font-weight: 800;
    color: #091526;
    background-color: #d4af37; 
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.collage-content h2{
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.collage-content p{
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1; 
    margin-bottom: 15px;
}

.collage-content p:last-child{
    margin-bottom: 0;
}

.highlight{
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
}

.highlight strong{
    font-size: 1.15rem;
    color: #f1c40f; 
}

/* ---------------- Reverse Variant Support ---------------- */

.collage-container.reverse .photo1{
    justify-self: start;
    transform: rotate(6deg);
}

.collage-container.reverse .photo2{
    justify-self: end;
    transform: rotate(-6deg);
}

.collage-container.reverse .photo3{
    justify-self: start;
    transform: rotate(-6deg);
}

.collage-container.reverse .photo4{
    justify-self: end;
    transform: rotate(6deg);
}


/* ==========================================================
   RESPONSIVE MEDIA QUERIES (TRANSFORMATIONS SECTION)
========================================================== */

/* 1024px Breakpoint */
@media (max-width: 1024px) {
    .speaking-collage {
        padding: 120px 0;
    }
    .collage-container {
        width: 95%;
        grid-template-columns: 280px 430px 280px;
        grid-template-rows: 300px 300px;
        min-height: 760px;
        gap: 20px;
    }
    .collage-photo {
        width: 250px;
        height: 200px;
        border: 2px solid #d4af37;
    }
    .collage-content {
        width: 380px;
        padding: 30px 28px;
    }
    .collage-content .number {
        font-size: 46px;
        margin-bottom: 16px;
    }
    .collage-content h2 {
        font-size: 24px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }
    .collage-content p {
        font-size: 16px;
        line-height: 1.7;
    }
    .highlight {
        font-size: 19px;
    }
    .highlight strong {
        font-size: 22px;
    }
}

/* 768px Breakpoint */
@media (max-width: 768px) {
    .speaking-collage {
        padding: 130px 0 90px 0;
    }
    .collage-container,
    .collage-container.reverse {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 92%;
        min-height: auto;
        gap: 24px;
    }
    .transformations-header {
        margin-top: 20px;
    }
    .transformations-title {
        font-size: 2rem;
    }
    .collage-photo {
        width: 300px;
        height: 220px;
        transform: none !important;
        justify-self: center;
        border: 2px solid #d4af37;
    }
    .photo1,
    .photo2,
    .photo3,
    .photo4 {
        transform: none !important;
        justify-self: center;
        margin: 0 !important;
    }
    .collage-content {
        width: 100%;
        max-width: 600px;
        padding: 32px 28px;
        order: 2;
        border: 1px solid rgba(212, 175, 55, 0.3);
    }
    .collage-content .number {
        font-size: 42px;
        margin-bottom: 12px;
    }
    .collage-content h2 {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 18px;
    }
    .collage-content p {
        font-size: 17px;
        line-height: 1.8;
    }
    .highlight {
        font-size: 18px;
    }
    .highlight strong {
        font-size: 21px;
    }
}

/* 480px Breakpoint */
@media (max-width: 480px) {
    .speaking-collage {
        padding: 120px 0 60px 0;
    }
    .collage-container,
    .collage-container.reverse {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 16px;
        margin: 0 auto 55px;
    }
    .transformations-header {
        margin-top: 15px;
    }
    .transformations-title {
        font-size: 1.5rem;
    }
    .photo1 { order: 1; }
    .photo2 { order: 2; }
    .collage-content { order: 3; }
    .photo3 { order: 4; }
    .photo4 { order: 5; }

    .photo1,
    .photo2,
    .photo3,
    .photo4 {
        transform: none !important;
        position: static !important;
        justify-self: auto !important;
        align-self: auto !important;
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .collage-photo {
        width: 100%;
        max-width: 320px;
        height: 180px;
        border: 2px solid #d4af37;
        overflow: hidden;
        margin: 0;
    }
    .collage-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .collage-content {
        width: 100%;
        max-width: 320px;
        padding: 22px 18px;
        position: static !important;
        margin: 0;
        border: 1px solid rgba(212, 175, 55, 0.3);
    }
    .collage-content .number {
        font-size: 30px;
        margin-bottom: 10px;
    }
    .collage-content h2 {
        font-size: 20px;
        line-height: 1.35;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    .collage-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    .highlight {
        font-size: 15px;
    }
    .highlight strong {
        font-size: 17px;
    }
}
/* ==========================================================
   CUSTOM TWO-ROW VIDEO LAYOUT STYLES
========================================================== */

.transformations-videos {
    background: linear-gradient(180deg, #091526 0%, #0b1a30 100%);
    padding: 80px 20px 120px 20px;
    text-align: center;
}

.videos-header {
    margin-bottom: 50px;
}

.videos-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.video-card {
    background: transparent;
    border: 2px solid #d4af37;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: #ffe066;
}

/* Row 1 sizing for vertical videos */
.vertical-row .video-card video {
    width: 100%;
    max-width: 370px;
    height: auto;
    max-height: 480px;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Row 2 sizing for horizontal videos */
.horizontal-row .video-card video {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 280px;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .video-row {
        flex-direction: column;
    }
    .vertical-row .video-card video,
    .horizontal-row .video-card video {
        max-width: 100%;
        max-height: none;
    }
    .video-card {
        width: 100%;
        max-width: 400px;
    }
}

/* ==========================================================
   TESTIMONIALS SECTION STYLES (WHITE BACKGROUND)
========================================================== */

.testimonials-section {
    background: #ffffff;
    padding: 100px 20px 120px 20px;
    text-align: center;
    color: #1a202c;
    overflow-x: hidden;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Circular Avatar Styling */
.testimonial-avatar-wrapper {
    margin-bottom: 40px;
}

.testimonial-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Slider Controls & Text Card Area */
.testimonial-slider-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    gap: 20px;
}

.testimonial-card {
    flex: 1;
    padding: 0 20px;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.testimonial-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    max-width: 750px;
    margin: 0 auto;
}

/* Navigation Arrow Buttons */
.slider-btn {
    background: transparent;
    border: none;
    color: #1a202c;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

.slider-btn:hover {
    color: #d4af37;
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Responsive Adjustments for Mobile & Tablets */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 70px 15px 90px 15px;
    }
    
    .testimonial-avatar {
        width: 130px;
        height: 130px;
    }

    .testimonial-slider-content {
        justify-content: center;
        position: relative;
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 0 35px;
        min-height: 160px;
    }

    .testimonial-title {
        font-size: 1.2rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Reposition arrows cleanly to the sides on mobile screens */
    .prev-btn {
        position: absolute;
        left: 0;
    }

    .next-btn {
        position: absolute;
        right: 0;
    }
    
    .slider-btn {
        font-size: 2rem;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}