/**
 * CALD CONNECT Sponsors Carousel Styles
 */

/* Sponsors Section */
.sponsors-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #A3653E 0%, #5a2c12 100%);
    color: white;
    position: relative;
}

.sponsors-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-weight: 600;
}

/* Sponsors Carousel Container */
.sponsors-carousel-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto 30px;
    background-color: transparent;
    padding: 20px 0;
}
/* Sponsors Carousel */
.sponsors-carousel {
    padding: 0 50px;
    margin: 0 auto;
    position: relative;
}

/* Fix for partial items */
.sponsors-carousel .slick-track {
    display: flex;
    justify-content: space-between;
}

.sponsors-carousel .slick-slide {
    float: none;
    height: auto;
    margin: 0 5px;
}

.sponsors-carousel .slick-list {
    overflow: hidden !important;
    margin: 0 -5px;
    width: calc(100% + 10px);
    left: -5px;
}

/* Custom Navigation Arrows */
.custom-nav-arrows {
    display: none; /* Hidden by default, shown only on mobile */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none; /* Allow clicks to pass through to carousel */
}

.custom-prev-arrow,
.custom-next-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(163, 101, 62, 0.9); /* Brown background matching site theme */
    border: 3px solid white; /* Thicker border */
    color: white;
    font-size: 28px; /* Larger font */
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    z-index: 30;
    pointer-events: auto; /* Make buttons clickable */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Stronger shadow */
    transition: all 0.3s ease;
    border-radius: 0; /* Square shape */
}

/* Hover effect for arrows */
.custom-prev-arrow:hover,
.custom-next-arrow:hover {
    background: rgba(90, 44, 18, 0.9); /* Darker brown on hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.custom-prev-arrow {
    left: 5px;
}

.custom-next-arrow {
    right: 5px;
}

.custom-prev-arrow:hover,
.custom-next-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sponsor-item {
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100px;
    width: 180px !important;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.sponsor-item:hover {
    transform: translateY(-5px);
}

.sponsor-link {
    display: flex;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.sponsor-icon {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    filter: grayscale(0%);
    opacity: 1;
    padding: 10px;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sponsor-favicon {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent !important;
    object-fit: contain;
}

.sponsor-name {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sponsor-item:hover .sponsor-icon {
    transform: scale(1.05);
    background: transparent !important;
    box-shadow: none !important;
}

.sponsor-item:hover .sponsor-favicon {
    transform: scale(1.1);
}

.sponsor-item:hover .sponsor-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Slick Carousel Custom Styles */
.slick-prev,
.slick-next {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid white !important;
    border-radius: 0 !important;
    color: white !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 0 !important;
    transform-origin: center !important;
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.slick-prev {
    left: -20px !important;
}

.slick-next {
    right: -20px !important;
}

.slick-prev:before,
.slick-next:before {
    display: none !important;
}

.nav-text {
    font-size: 24px !important;
    line-height: 46px !important;
    font-weight: normal !important;
    color: white !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Animation for sponsor items */
.sponsors-section.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sponsors-section.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Custom styling for specific logos */
.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure all sponsor logos display properly */
.sponsor-icon img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    background: transparent !important;
    object-fit: contain;
}

/* Specific adjustments for logos */
[alt="Job Link Plus logo"] {
    max-height: 50px;
}

[alt="Thrive Refugee Enterprise logo"] {
    max-height: 55px;
}

[alt="Mosaic Multicultural Connection logo"] {
    max-height: 50px;
}

[alt="SSI logo"] {
    max-height: 50px;
}

[alt="Lake Macquarie Council logo"] {
    max-height: 50px;
}

[alt="Glow Up Careers logo"] {
    max-height: 50px;
}

[alt="City of Newcastle logo"] {
    max-height: 50px;
}

[alt="Hunter Multicultural Communities logo"] {
    max-height: 50px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sponsors-section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .sponsors-carousel {
        padding: 0 40px;
    }
    
    .sponsor-logo {
        max-height: 100px;
    }
    
    /* Show custom navigation arrows */
    .custom-nav-arrows {
        display: block;
    }
    
    /* Hide slick arrows on mobile */
    .slick-prev,
    .slick-next {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .sponsors-section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .sponsors-carousel {
        padding: 0 35px;
    }
    
    .sponsor-logo {
        max-height: 80px;
    }
    
    .sponsor-icon {
        width: 60px;
        height: 60px;
    }
    
    .sponsor-name {
        font-size: 0.9rem;
    }
    
    /* Custom arrow styles for smaller screens - SQUARE DESIGN */
    .custom-prev-arrow,
    .custom-next-arrow {
        width: 45px;
        height: 45px;
        font-size: 26px;
        line-height: 40px;
        background: rgba(163, 101, 62, 0.9); /* Brown background matching site theme */
        border: 3px solid white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
        border-radius: 0; /* Ensure square shape */
        transform: translateY(-50%); /* Position vertically */
        color: white; /* White text color */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better visibility */
        cursor: pointer !important;
        z-index: 100 !important; /* Ensure high z-index */
        pointer-events: auto !important; /* Ensure clickable */
    }
    
    /* Add a subtle border effect */
    .custom-prev-arrow::after,
    .custom-next-arrow::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        pointer-events: none;
    }
    
    /* Position arrows more prominently */
    .custom-prev-arrow {
        left: 0;
        border-left: none; /* Remove left border for left arrow */
        border-top-right-radius: 5px; /* Slight rounding on outer corners */
        border-bottom-right-radius: 5px;
    }
    
    .custom-next-arrow {
        right: 0;
        border-right: none; /* Remove right border for right arrow */
        border-top-left-radius: 5px; /* Slight rounding on outer corners */
        border-bottom-left-radius: 5px;
    }
}
