/**
 * Objectives Horizontal Layout
 * Modern UI/UX with 5 columns in a single row
 */

/* Container */
.objectives-slider-container {
    position: relative;
    width: 100%;
    margin: 40px 0;
    padding: 0 15px;
}

/* Wrapper - Horizontal Flexbox */
.objectives-slider-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

/* Individual Objective Column */
.objective-slide {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Objective Block - Vertical Card Design */
.objective-slide .feature-block .inner-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    background: #ffffff;
    border-radius: 0;
    border: none;
    border-top: 5px solid #c22439;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 520px;
    overflow: hidden;
    cursor: pointer;
}

/* Alternate border colors for each slide */
.objective-slide:nth-child(2) .feature-block .inner-box {
    border-top-color: #fdbd1b;
}

.objective-slide:nth-child(3) .feature-block .inner-box {
    border-top-color: #3da8e0;
}

.objective-slide:nth-child(4) .feature-block .inner-box {
    border-top-color: #c22439;
}

.objective-slide:nth-child(5) .feature-block .inner-box {
    border-top-color: #fdbd1b;
}

/* Image Container - Top of Card */
.objective-slide .feature-block .inner-box .objective-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0;
    position: relative;
    background: linear-gradient(135deg, #293172 0%, #43a7df 100%);
}

.objective-slide .feature-block .inner-box .objective-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

/* Image Overlay Gradient */
.objective-slide .feature-block .inner-box .objective-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(41, 49, 114, 0.7) 0%, transparent 100%);
    transition: opacity 0.5s ease;
}

/* Content Wrapper - Below Image */
.objective-slide .feature-block .inner-box .content-wrapper {
    padding: 30px 25px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
}

/* Icon Styling - Below Image */
.objective-slide .feature-block .inner-box .icon {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #c22439 0%, #a01d2f 100%);
    border-radius: 0;
    margin-bottom: 18px;
    position: relative;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(194, 36, 57, 0.4);
}

/* Alternate icon colors */
.objective-slide:nth-child(2) .feature-block .inner-box .icon {
    background: linear-gradient(135deg, #fdbd1b 0%, #e5a200 100%);
    box-shadow: 0 6px 20px rgba(253, 189, 27, 0.4);
}

.objective-slide:nth-child(3) .feature-block .inner-box .icon {
    background: linear-gradient(135deg, #3da8e0 0%, #2090c8 100%);
    box-shadow: 0 6px 20px rgba(61, 168, 224, 0.4);
}

.objective-slide:nth-child(4) .feature-block .inner-box .icon {
    background: linear-gradient(135deg, #c22439 0%, #a01d2f 100%);
    box-shadow: 0 6px 20px rgba(194, 36, 57, 0.4);
}

.objective-slide:nth-child(5) .feature-block .inner-box .icon {
    background: linear-gradient(135deg, #fdbd1b 0%, #e5a200 100%);
    box-shadow: 0 6px 20px rgba(253, 189, 27, 0.4);
}

/* Icon Glow Effect */
.objective-slide .feature-block .inner-box .icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #f8b034, #43a7df);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

/* Content Area - Centered */
.objective-slide .feature-block .inner-box .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Title - Bold and Prominent */
.objective-slide .feature-block .inner-box .title {
    font-size: 18px;
    font-weight: 800;
    color: #293172;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: all 0.4s ease;
    position: relative;
    padding-bottom: 8px;
}

/* Title Underline Effect */
.objective-slide .feature-block .inner-box .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #43a7df, #f8b034);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Text Content */
.objective-slide .feature-block .inner-box .text {
    font-size: 13px;
    line-height: 1.6;
    color: #293172;
    margin: 0;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}

/* Hover Effects - Modern & Smooth */
.objective-slide .feature-block .inner-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-top-color: #3da8e0;
    background: #ffffff;
}

/* Image Zoom on Hover */
.objective-slide .feature-block .inner-box:hover .objective-image img {
    transform: scale(1.1);
    opacity: 1;
}

/* Image Overlay Fade on Hover */
.objective-slide .feature-block .inner-box:hover .objective-image::after {
    opacity: 0.3;
}

/* Icon Hover Animation */
.objective-slide .feature-block .inner-box:hover .icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, #3da8e0 0%, #293172 100%);
    box-shadow: 0 8px 25px rgba(61, 168, 224, 0.5);
}

/* Icon Glow on Hover */
.objective-slide .feature-block .inner-box:hover .icon::before {
    opacity: 0.6;
}

/* Title Underline Appear on Hover */
.objective-slide .feature-block .inner-box:hover .title::after {
    width: 60px;
}

/* Text Color Change on Hover */
.objective-slide .feature-block .inner-box:hover .text {
    color: #293172;
    opacity: 1;
}

/* Hide Slider Controls (not needed for horizontal layout) */
.slider-dots,
.slider-controls,
.slider-progress {
    display: none;
}

/* Numbered Badge - Top Right Corner */
.objective-slide .feature-block .inner-box::before {
    content: attr(data-number);
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    background: #000000;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    z-index: 10;
}

/* Numbered Badge Hover */
.objective-slide .feature-block .inner-box:hover::before {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: #3da8e0;
}

/* Add Number to Each Block */
.objective-slide:nth-child(1) .feature-block .inner-box::before { content: '01'; }
.objective-slide:nth-child(2) .feature-block .inner-box::before { content: '02'; }
.objective-slide:nth-child(3) .feature-block .inner-box::before { content: '03'; }
.objective-slide:nth-child(4) .feature-block .inner-box::before { content: '04'; }
.objective-slide:nth-child(5) .feature-block .inner-box::before { content: '05'; }

/* Responsive Design - Tablet */
@media (max-width: 1200px) {
    .objectives-slider-wrapper {
        gap: 15px;
    }

    .objective-slide .feature-block .inner-box {
        min-height: 500px;
    }

    .objective-slide .feature-block .inner-box .objective-image {
        height: 180px;
    }

    .objective-slide .feature-block .inner-box .content-wrapper {
        padding: 25px 20px 30px;
    }

    .objective-slide .feature-block .inner-box .icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .objective-slide .feature-block .inner-box .title {
        font-size: 17px;
    }

    .objective-slide .feature-block .inner-box .text {
        font-size: 12px;
        -webkit-line-clamp: 4;
    }
}

/* Medium Tablet */
@media (max-width: 991px) {
    .objectives-slider-wrapper {
        flex-wrap: wrap;
        gap: 20px;
    }

    .objective-slide {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .objective-slide:nth-child(5) {
        flex: 0 0 100%;
        max-width: 60%;
        margin: 0 auto;
    }

    .objective-slide .feature-block .inner-box {
        min-height: 520px;
    }

    .objective-slide .feature-block .inner-box .objective-image {
        height: 200px;
    }

    .objective-slide .feature-block .inner-box .content-wrapper {
        padding: 30px 25px 35px;
    }

    .objective-slide .feature-block .inner-box .icon {
        width: 75px;
        height: 75px;
        font-size: 38px;
    }

    .objective-slide .feature-block .inner-box .title {
        font-size: 18px;
    }

    .objective-slide .feature-block .inner-box .text {
        font-size: 13px;
        -webkit-line-clamp: 5;
    }
}

/* Mobile - Stack Vertically */
@media (max-width: 767px) {
    .objectives-slider-container {
        padding: 0 10px;
    }

    .objectives-slider-wrapper {
        flex-direction: column;
        gap: 25px;
    }

    .objective-slide {
        flex: 1;
        max-width: 100%;
    }

    .objective-slide:nth-child(5) {
        max-width: 100%;
    }

    .objective-slide .feature-block .inner-box {
        min-height: 480px;
    }

    .objective-slide .feature-block .inner-box .objective-image {
        height: 180px;
    }

    .objective-slide .feature-block .inner-box .content-wrapper {
        padding: 28px 22px 32px;
    }

    .objective-slide .feature-block .inner-box .icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .objective-slide .feature-block .inner-box .title {
        font-size: 17px;
    }

    .objective-slide .feature-block .inner-box .text {
        font-size: 13px;
        line-height: 1.7;
        -webkit-line-clamp: 6;
    }
}

/* Stagger Animation on Page Load */
.objective-slide {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.objective-slide:nth-child(1) { animation-delay: 0.1s; }
.objective-slide:nth-child(2) { animation-delay: 0.2s; }
.objective-slide:nth-child(3) { animation-delay: 0.3s; }
.objective-slide:nth-child(4) { animation-delay: 0.4s; }
.objective-slide:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shine Effect on Hover */
.objective-slide .feature-block .inner-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(67, 167, 223, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.objective-slide .feature-block .inner-box:hover::after {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { left: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}
