/* Fix for What You'll Gain section - ensure consistent card heights */
#section-why-attend .bg-dark-2 {
    min-height: 400px;
}

#section-why-attend .bg-dark-2 img {
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* Speaker placeholder images with navy blue background */
.speaker-image-container {
    position: relative;
    background-color: #00243b; /* Brand navy blue */
    overflow: hidden;
}

.speaker-image-container img {
    mix-blend-mode: multiply;
    opacity: 0.9;
}

/* Header logo styling */
#logo {
    height: 70px;
}

#logo .logo-text {
    transition: all 0.3s ease;
}

/* Hide text on mobile */
@media (max-width: 768px) {
    #logo .logo-text {
        display: none !important;
    }
    #logo .logo-main {
        height: 35px !important;
    }
}

/* Adjust logo on scroll */
header.header-scroll #logo .logo-main {
    height: 35px;
}

header.header-scroll #logo .logo-text {
    font-size: 16px;
}

/* Partner logo carousel - Maximum prominence */
.partner-carousel-large {
    min-height: 300px !important;
}

.partner-carousel-large .partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.partner-carousel-large .partner-item h5 {
    font-size: 1.3rem !important;
    font-weight: 500;
    margin-top: 1.5rem !important;
}

.partner-carousel-large .partner-logo-large {
    width: auto !important;
    height: 200px !important;
    max-width: 400px !important;
    object-fit: contain;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.partner-carousel-large .partner-logo-large:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Legacy carousel styles */
.owl-carousel.owl-6 {
    min-height: 100px;
}

.owl-carousel img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Mobile-specific logo sizing */
@media (max-width: 768px) {
    .partner-carousel-large {
        min-height: 220px !important;
    }
    
    .partner-carousel-large .partner-logo-large {
        height: 120px !important;
        max-width: 250px !important;
    }
    
    .owl-carousel.owl-6 {
        min-height: 120px !important;
    }
    
    .owl-carousel img {
        max-height: 70px !important;
        min-height: 60px !important;
        width: auto !important;
        max-width: 150px !important;
    }
    
    .owl-carousel .owl-item {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100px;
    }
}

/* Tablet sizing */
@media (min-width: 769px) and (max-width: 991px) {
    .partner-carousel-large {
        min-height: 260px !important;
    }
    
    .partner-carousel-large .partner-logo-large {
        height: 160px !important;
        max-width: 320px !important;
    }
    
    .owl-carousel img {
        max-height: 70px;
        padding: 10px 30px !important;
    }
}

/* Desktop sizing */
@media (min-width: 992px) {
    .partner-carousel-large {
        min-height: 350px !important;
    }
    
    .partner-carousel-large .partner-logo-large {
        height: 220px !important;
        max-width: 450px !important;
    }
    
    .owl-carousel img {
        max-height: 80px;
        padding: 15px 40px !important;
    }
}

/* Fix mobile headline overflow - Hero section title */
@media (max-width: 768px) {
    .fs-120.fs-sm-12vw {
        font-size: 9vw !important; /* Reduce from 12vw to 9vw to prevent overflow */
        line-height: 1.1 !important; /* Tighter line height for mobile */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Additional safety for very small screens */
@media (max-width: 480px) {
    .fs-120.fs-sm-12vw {
        font-size: 8vw !important;
    }
}