/* Testimonials Hero Section */
.testimonial-hero {
    padding: clamp(120px, 15vw, 180px) 0 80px 0; /* Accounts for fixed header */
    background: linear-gradient(-45deg, #f8f9fb, #eef2ff, #f0fdf4, #f8f9fb);
    background-size: 400% 400%;
    animation: heroGradient 12s ease infinite;
    text-align: center;
    margin-top:50px;
}

.testimonial-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-hero h1 {
    font-size: 52px;
    color: #0f4a78;
    margin: 20px 0;
    font-weight: 800;
}

.testimonial-hero p {
    color: #64748b;
    font-size: 18px;
    line-height: 1.6;
}

/* Video Testimonials Section */
.video-testimonials {
    padding: 80px 0 40px 0;
    background-color: #ffffff;
}

.video-testimonials .container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.video-card {
    background: #fdfefe;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 74, 120, 0.05);
    border: 1px solid rgba(15, 74, 120, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 74, 120, 0.12);
    border-color: #9AAF9E;
}

/* Responsive iframe wrapper - maintains 16:9 ratio */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-info h3 {
    color: #0f4a78;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.video-info p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile-Friendly UI Adjustments */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonial-hero {
        padding: 130px 0 60px 0;
    }
    
    .testimonial-hero h1 {
        font-size: 38px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        gap: 25px;
    }
    
    .video-card {
        border-radius: 24px; /* More app-like feel */
    }
    
    .video-info {
        padding: 22px;
    }
}
/* Video Section (iPhone frames) */
        .video-section {
            padding: 40px 5% 80px; /* 40px top, 5% sides, 80px bottom */
            background-color: #fff;
        }

        .video-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .video-header {
            text-align: center;
            margin-bottom: 50px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .video-header h2 {
            font-family: 'Cormorant Garamond', serif;
            font-size: 56px;
            color: #1a1a1a;
            margin-top: 10px;
        }

        .video-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
            justify-items: center;
        }

        .iphone-frame {
            width: 100%;
            max-width: 280px;
            aspect-ratio: 9/19.5;
            position: relative;
            background: #111;
            border-radius: 40px;
            padding: 12px;
            box-shadow: 0 20px 40px rgba(200, 157, 52, 0.15), 
                        inset 0 0 0 2px #555;
            border: 1px solid #c89d34;
            transition: transform 0.4s ease;
        }

        .iphone-frame:hover {
            transform: translateY(-10px);
        }

        .iphone-notch {
            position: absolute;
            top: 12px;
            left: 50%;
            transform: translateX(-50%);
            width: 110px;
            height: 25px;
            background: #111;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
            z-index: 10;
        }

        /* Optional: camera dot in notch */
        .iphone-notch::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 25%;
            transform: translateY(-50%);
            width: 6px;
            height: 6px;
            background: #1a1a1a;
            border-radius: 50%;
            box-shadow: inset 0 0 2px rgba(255,255,255,0.8);
        }

        .iphone-screen {
            width: 100%;
            height: 100%;
            background: #000;
            border-radius: 30px;
            overflow: hidden;
            position: relative;
        }

        .iphone-screen iframe,
        .iphone-screen video {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100%;
            height: 100%;
            transform: translate(-50%, -50%);
            border: none;
            object-fit: cover;
        }

        /* Helper class for portrait videos (scales slightly to fill the 9:19.5 iPhone screen) */
        .iphone-screen iframe.portrait-video {
            transform: translate(-50%, -50%) scale(1.45);
            pointer-events: none;
        }

        @media (max-width: 1024px) {
            .video-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
        }

        @media (max-width: 768px) {
            .video-section {
                padding-left: 0;
                padding-right: 0;
            }
            .video-header {
                padding: 0 5%;
            }
            .video-header h2 { font-size: 40px; }
            
            .video-grid { 
                display: flex;
                align-items: center;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                gap: 20px;
                padding: 10px 5% 40px;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .video-grid::-webkit-scrollbar {
                display: none;
            }
            .iphone-frame {
                flex: 0 0 280px;
                scroll-snap-align: center;
            }
        }

        /* Social Buttons Section */
        .social-section {
            padding: 40px 5%;
            background-color: #fff;
            border-bottom: 1px solid rgba(15, 74, 120, 0.1);
        }

        .social-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px 30px;
            border-radius: 50px;
            background: linear-gradient(#f8fafc, #f8fafc) padding-box,
                        linear-gradient(135deg, #0f4a78, #9aaf9e, #0f4a78) border-box;
            background-size: 100% 100%, 300% 300%;
            border: 2px solid transparent;
            color: #1a1a1a;
            text-decoration: none;
            font-weight: 500;
            font-size: 16px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.02);
            transition: all 0.3s ease;
            white-space: nowrap;
            animation: btnAnimatedBorder 4s ease infinite;
        }

        .social-btn:hover {
            background: linear-gradient(135deg, #0f4a78, #9aaf9e) padding-box,
                        linear-gradient(135deg, #0f4a78, #9aaf9e, #0f4a78) border-box;
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(15, 74, 120, 0.2);
        }

        @media (max-width: 768px) {
            .social-section {
                padding: 20px 5%;
            }
            .social-container {
                justify-content: flex-start;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                gap: 15px;
                padding: 5px 0;
            }
            .social-container::-webkit-scrollbar {
                display: none;
            }
            .social-btn {
                scroll-snap-align: start;
                flex: 0 0 auto;
                padding: 10px 24px;
                font-size: 14px;
            }
        }
