/* Modern Slider - Version 1.1 */

body {
    background: #ffffff;
}

.mycontainer {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
}

/* Slider Main */
.myslider-wrapper {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(157, 174, 190, 0.3);
    background: #fff;
}

.myslider-wrapper:hover .myslider-nav-btn {
    opacity: 1;
}

/* Slides Container */
.myslides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.myslide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    top: 0;
    left: 0;
}

.myslide.active {
    opacity: 1;
    z-index: 10;
}

/* Slide Background Image */
.myslide-bg {
    position: absolute;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    right: 0;
    clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Slide Overlay */
.myslide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 69, 136, 0.95) 0%, rgba(44, 95, 150, 0.4) 55%, transparent 100%);
}

/* Slide Content */
.myslide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 60px 60px 100px;
    color: white;
}

.myslide.active .myslide-content {
    animation: slideInUp 0.8s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.myslide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.myslide-date {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 5px;
    margin-bottom: 20px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    max-width: fit-content;
}

.myslide-description {
    font-size: 18px;
    color: #e0e7ff;
    margin-bottom: 5px;
    line-height: 1.6;
}

.myslide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0066cc 0%, #a9a9a9 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
    max-width: fit-content;
    text-decoration: none;
}

.myslide-btn:hover {
    background: linear-gradient(135deg, #044d93 0%, #a9a9a9 100%);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.5);
    text-decoration: none;
}

.myslide-btn::after {
    content: '→';
    font-size: 18px;
}

/* Navigation Buttons */
.myslider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.myslider-nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.mybtn-prev {
    left: 30px;
}

.mybtn-next {
    right: 30px;
}

/* Dot Indicators */
.myslider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.mydot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.mydot.active {
    width: 50px;
    border-radius: 12px;
    background: #0066cc;
    border-color: #0066cc;
}

.mydot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.autoplay-timer {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 20;
}

/* Responsive Styles */
@media (min-width: 769px) and (max-width: 1023px) {
    .myslide-title {
        font-size: 32px;
    }

    .myslide-date {
        font-size: 12px;
        margin-top: 12px;
    }

    .myslide-description {
        font-size: 16px;
    }

    .myslide-content {
        padding: 50px 40px 50px 60px;
    }
}

@media (max-width: 768px) {
    .myslider-wrapper {
        height: 400px;
    }

    .myslide-content {
        width: 100%;
        padding: 30px 20px;
    }

    .myslide-bg {
        width: 100%;
        clip-path: polygon(35% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .myslide-title {
        font-size: 24px;
    }

    .myslide-date {
        font-size: 11px;
        margin-top: 10px;
    }

    .myslide-description {
        font-size: 14px;
    }

    .myslider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .mybtn-prev {
        left: 15px;
    }

    .mybtn-next {
        right: 15px;
    }

    .autoplay-timer {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .myslider-wrapper {
        height: 280px;
    }

    .myslide-content {
        width: auto;
        padding: 30px 20px;
    }

    .myslide-bg {
        width: 100%;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .myslide-title {
        font-size: 18px;
    }

    .myslide-date {
        font-size: 10px;
        margin-top: 8px;
    }

    .myslide-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .myslide-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .myslider-dots {
        bottom: 15px;
        gap: 8px;
    }

    .mydot {
        width: 10px;
        height: 10px;
    }

    .mydot.active {
        width: 24px;
    }

    .myslider-nav-btn {
        display: none;
    }
}
