/* ==========================================================================
   EPIK LEADERS - PROPOS (ABOUT) PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   CSS RESET AND BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.page-wrapper {
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.site-header {
    width: 100%;
    height: 111px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 44px;
    z-index: 100;
}

.header-background-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #004862;
    z-index: 1;
}

.header-logo {
    width: 159px;
    height: 80px;
    position: relative;
    z-index: 2;
    object-fit: contain;
}

.primary-navigation {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font: 400 18px "Inter", sans-serif;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #C4182C;
}

.nav-active-indicator {
    width: 88px;
    height: 4px;
    position: absolute;
    bottom: 4px;
    left: 588px;
    background-color: #C4182C;
    z-index: 2;
}

.join-us-button {
    display: flex;
    width: 191px;
    height: 55px;
    padding: 16px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    background-color: #C4182C;
    border: none;
}


/* ==========================================================================
   UNIQUE ADVANTAGES SECTION
   ========================================================================== */

/* Unique Advantages Section specific styles */
.unique-advantages-section {
    background-color: #f0f0f0; /* Light gray background for the overall section */
    position: relative;
    overflow: hidden; /* To contain the dotted pattern */
}

.unique-advantages-content {
    background-color: #b5252c; /* Red background for the content box */
    color: white;
    border-radius: 0.5rem; /* rounded-lg */
    padding: 3rem; /* p-12 */
    position: relative;
    z-index: 20; /* Above the dotted pattern */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

.unique-advantages-number {
    font-size: 10rem; /* Large font size for the number */
    font-weight: 800; /* Extra bold */
    color: rgba(255, 255, 255, 0.2); /* Transparent white for the number */
    position: absolute;
    right: 1rem; /* Adjust position as needed */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Below the content box but above background */
    line-height: 1; /* To control vertical spacing */
}

/* Dotted pattern background */
.dotted-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px; /* Adjust size as needed */
    height: 300px; /* Adjust size as needed */
    background-image: radial-gradient(circle, #b5252c 2px, transparent 2px);
    background-size: 20px 20px; /* Adjust dot size and spacing */
    opacity: 0.3; /* Adjust transparency */
    z-index: 5; /* Below content box */
}


/* ==========================================================================
   TESTIMONIAL VIDEO CARDS (PROPOS PAGE SPECIFIC)
   ========================================================================== */

/* Testimonial video card specific styles */
.testimonial-video-card {
    flex: 0 0 auto;
    width: 320px;
    min-width: 320px;
    height: 240px;
    position: relative;
    overflow: hidden;
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

/* Responsive testimonial video card dimensions */
@media (min-width: 480px) {
    .testimonial-video-card {
        width: 360px;
        min-width: 360px;
        height: 270px;
    }
}

@media (min-width: 640px) {
    .testimonial-video-card {
        width: 400px;
        min-width: 400px;
        height: 300px;
    }
}

@media (min-width: 768px) {
    .testimonial-video-card {
        width: 450px;
        min-width: 450px;
        height: 340px;
    }
}

@media (min-width: 1024px) {
    .testimonial-video-card {
        width: 500px;
        min-width: 500px;
        height: 380px;
    }
}

@media (min-width: 1280px) {
    .testimonial-video-card {
        width: 550px;
        min-width: 550px;
        height: 420px;
    }
}

@media (min-width: 1440px) {
    .testimonial-video-card {
        width: 600px;
        min-width: 600px;
        height: 450px;
    }
}

.testimonial-video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); /* bg-black bg-opacity-40 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem; /* p-6 */
    color: white;
    border-radius: 1rem; /* rounded-2xl */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-video-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.testimonial-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 1rem;
    display: none; /* Hidden by default */
}

/* ==========================================================================
   CAROUSEL AND SCROLL CONTAINERS
   ========================================================================== */

/* General carousel container styles (shared with video carousel) */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory; /* Snap to cards */
    gap: 1.5rem; /* Reduced spacing between cards */
    padding-bottom: 1rem; /* Space for scrollbar */
    padding-right: 2rem; /* Padding to show partial next card */
}

/* Video carousel container specific styles */
.video-carousel-container {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-snap-type: x mandatory; /* Snap to cards */
    gap: 2rem; /* Spacing between cards */
    padding-bottom: 1rem; /* Space for scrollbar */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.horizontal-scroll-container::-webkit-scrollbar,
.video-carousel-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.horizontal-scroll-container,
.video-carousel-container {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* ==========================================================================
   CAROUSEL DOTS
   ========================================================================== */

/* Specific styles for testimonial carousel dots to match the image */
.carousel-dot-testimonial {
    width: 12px; /* Default width for inactive dot */
    height: 12px; /* Default height for inactive dot */
    background-color: #9ca3af; /* Default gray for inactive dot */
    border-radius: 9999px; /* Fully rounded */
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.carousel-dot-testimonial.active {
    width: 32px; /* Elongated width for active dot */
    background-color: #b5252c; /* Red for active dot */
}

/* ==========================================================================
   PARTNER CAROUSEL
   ========================================================================== */

/* Styles for Partner Carousel */
.partner-carousel-container {
    display: flex;
    overflow: hidden; /* Hide overflow to make animation seamless */
    white-space: nowrap; /* Keep all items in one line */
    animation: scroll-partners 25s linear infinite; /* Adjust speed for smooth rotation */
    padding: 20px 0; /* Add some vertical padding */
    align-items: center; /* Vertically align logos */
    width: 100%; /* Full width container */
    will-change: transform; /* Optimize for animation */
}

.partner-carousel-container:hover {
    animation-play-state: paused; /* Pause on hover */
}

.partner-carousel-container img {
    height: 80px; /* Fixed height for logos */
    width: auto; /* Maintain aspect ratio */
    min-width: 120px; /* Minimum width to prevent too small logos */
    max-width: 200px; /* Maximum width to prevent too large logos */
    margin: 0 30px; /* Spacing between logos */
    display: inline-block; /* Essential for nowrap and animation */
    filter: grayscale(70%) brightness(0.8); /* Make logos subtle */
    opacity: 0.7; /* Reduce opacity */
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
    object-fit: contain; /* Maintain aspect ratio */
    border-radius: 8px; /* Slight rounding for modern look */
    flex-shrink: 0; /* Prevent images from shrinking */
}

.partner-carousel-container img:hover {
    filter: grayscale(0%) brightness(1); /* Full color and brightness on hover */
    opacity: 1; /* Full opacity on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Scroll half the width to loop seamlessly */
    }
}
