/* ========================================
 * CAROUSEL & SLIDER STYLES
 * ========================================
 * 
 * Consolidated styles for carousels, sliders, and swiper components
 * Previously located in style.css
 */

/* ==========================================================================
   CAROUSEL CARD STYLES
   ========================================================================== */

.carousel-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    height: 100%;
    width: 100%;
}

.carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-card h3 {
    margin: 18px 0 8px 0;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: left;
    width: 100%;
    color: #186396;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.carousel-card p {
    margin: 0 0 12px 0;
    text-align: left;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
    font-size: 1rem;
    color: #444;
}

.carousel-excerpt {
    text-align: left !important;
    padding: 5px 0px 5px 0px !important;
    font-weight: 400 !important;
    white-space: normal;
}

.carousel-card .carousel-link {
    margin-top: auto;
    color: #186396;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    display: inline-block;
    align-self: flex-start;
}

.carousel-card .carousel-link:hover {
    color: #0d3556;
    text-decoration: underline;
}

/* ==========================================================================
   CAROUSEL IMAGE STYLES
   ========================================================================== */

.carousel-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.carousel-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    margin: 0;
    padding: 0;
    max-width: none;
    max-height: none;
    background: none;
    box-shadow: none;
    display: block;
}

/* ==========================================================================
   SWIPER PAGINATION STYLES
   ========================================================================== */

.swiper {
    padding-bottom: 40px; /* Ensures space for pagination */
    overflow: hidden; /* Ensure proper overflow handling */
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.swiper-slide {
    display: flex;
    height: auto;
}

.swiper-pagination {
    position: static !important;
    margin-top: 20px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 70px !important;
    height: 15px !important;
    border-radius: 0px !important;
    background: #fff !important;
    opacity: 1 !important;
    margin: 0px !important;
    border: 1px solid #186396 !important;
    transition: background 0.3s !important;
    display: inline-block !important;
    box-shadow: none !important;
    /* tabindex handled by JavaScript */
}

.swiper-pagination-bullet-active {
    background: #186396 !important;
}

/* Ensure swiper pagination bullets remain clickable */
.swiper-pagination {
    pointer-events: auto !important;
}

.swiper-pagination-bullet {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Override any aria-hidden pointer-events rules for swiper pagination */
.swiper-pagination[aria-hidden="true"] {
    pointer-events: auto !important;
}

.swiper-pagination-bullet[aria-hidden="true"] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* ==========================================================================
   TEAM MEMBER CAROUSEL STYLES
   ========================================================================== */

.team-meta-name {
    font-size: 16px !important;
    line-height: 18px !important;
    color: #000 !important;
    margin-bottom: 16px !important;
}

.team-meta-list {
    font-family: 'Epilogue', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 18px !important;
    color: #000 !important;
    margin-bottom: 24px !important;
    text-transform: lowercase !important;
}

.team-meta-list a {
    color: #000 !important;
    text-decoration: underline !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* ==========================================================================
   HERO SLIDER STYLES
   ========================================================================== */


.featured-slider-one .f-slider-layer:before {
    opacity: 0.5 !important;
}

.homepage_hero .elementor-widget-html {
    --kit-widget-spacing: 0px !important;
    height: 0px !important;
}

.homepage_hero .featured-slider-one .f-slider-layer .f-slider-one-data {
    max-width: 800px !important;
}

.reduce-wrap {
    white-space: nowrap;
}

/* ==========================================================================
   MOBILE RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1024px) {
    /* Ensure carousel cards are properly sized on mobile */
    .carousel-card {
        min-height: 280px;
        padding: 16px;
    }
    
    /* Ensure proper spacing for mobile carousel */
    .swiper {
        padding-bottom: 30px;
    }
    .reduce-wrap {
        white-space: normal;
    }
    .team-style-one .team-slider .owl-stage {
        max-height: 300px;
    }
    .team-style-one .team-data .team-image figure {
        padding: 0 !important;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */


.history-style-one .history-data figure:before {
    opacity: 0.5 !important;
}

/* ==========================================================================
   HERO CONTENT ALIGNMENT
   ========================================================================== */

/* Hero content alignment for wider screens */
@media (min-width: 1320px) {
    .homepage_hero .featured-slider-one .f-slider-one-data {
        top: 20% !important;
        width: 100% !important;
        max-width: 900px;
        padding: 0 10px;
        z-index: 9;
        transform: none !important;
        left: calc((100vw - 1320px) / 2) !important;  
    }
}
@media (max-width: 1320px) {
    .homepage_hero .featured-slider-one .f-slider-one-data {
        top: 20% !important;
        width: 100% !important;
        max-width: 900px;
        padding: 0 10px;
        z-index: 9;
        transform: none !important;
        left: 0% !important;  
    }
}

/* ==========================================================================
   PARTS CAROUSEL STYLES
   ========================================================================== */
/* Special styling for parts in carousels - ensures full images are visible without cropping */

/* Parts carousel cards */
.carousel-card-part {
    /* Any specific styling for part cards if needed */
}

/* Parts carousel images - show full image without cropping */
.carousel-image-part,
.swiper-slide .carousel-image-part {
    overflow: hidden;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Override any conflicting height constraints */
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
}

/* Make this rule more specific to override .carousel-image img */
.carousel-image-part img,
.swiper-slide .carousel-image-part img {
    /* Override the conflicting absolute positioning from .carousel-image img */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    
    /* Remove any object-fit that might be cropping the image */
    object-fit: contain !important;
    object-position: center !important;
    
    /* Ensure the image maintains its aspect ratio */
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    
    /* Remove any transform that might be zooming */
    transform: none !important;
    
    /* Ensure the image is fully visible */
    margin: 0 !important;
    padding: 0 !important;
}

/* Override any existing carousel image styles for parts */
.carousel-image-part img {
    /* Force these styles to override any existing CSS */
    object-fit: contain !important;
    object-position: center !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
}

/* Ensure the image container doesn't force specific dimensions */
.carousel-image-part {
    /* Remove any fixed height that might cause cropping */
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    
    /* Ensure proper display */
    display: block !important;
}

/* Responsive adjustments for parts */
@media (max-width: 768px) {
    .carousel-image-part img {
        /* Maintain full image visibility on mobile */
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
}



/* Override any Swiper-specific styles that might interfere */
.swiper-slide .carousel-image-part img {
    /* Ensure Swiper doesn't override our part-specific styles */
    object-fit: contain !important;
    object-position: center !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
}

