/**
 * CPSMS Modern Hero Slider Styles
 * Swiper.js baseret slider med moderne design
 */

/* ============ HERO SLIDER SECTION ============ */
.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--cpsms-gray-900, #111827);
}

#modern-hero-slider {
    width: 100%;
    height: 400px;
}

@media (min-width: 768px) {
    #modern-hero-slider {
        height: 480px;
    }
}

@media (min-width: 1024px) {
    #modern-hero-slider {
        height: 520px;
    }
}

/* ============ HERO SLIDE ============ */
.hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Gradient overlay animation */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.swiper-slide-active.hero-slide::before {
    opacity: 1;
}

/* ============ HERO CONTENT ============ */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 40px 20px;
    text-align: left;
}

@media (max-width: 767px) {
    .hero-content {
        text-align: center;
        padding: 30px 15px;
    }
}

.hero-content-dark .hero-title,
.hero-content-dark .hero-description {
    color: var(--cpsms-gray-900, #111827) !important;
}

/* ============ HERO TITLE ============ */
.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
}

/* ============ HERO DESCRIPTION ============ */
.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(30px);
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        font-size: 20px;
    }
}

/* ============ HERO BUTTONS ============ */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 767px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

.hero-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-btn:hover {
    text-decoration: none !important;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.hero-btn-secondary-light {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
}

.hero-btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}

.hero-btn-secondary-dark {
    background: transparent;
    color: var(--cpsms-red-primary, #e91b23) !important;
    border-color: var(--cpsms-red-primary, #e91b23);
}

.hero-btn-secondary-dark:hover {
    background: var(--cpsms-red-primary, #e91b23);
    color: #ffffff !important;
}

/* ============ SWIPER NAVIGATION ============ */
.swiper-button-prev,
.swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
}

@media (max-width: 767px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 16px;
    }
}

/* ============ SWIPER PAGINATION ============ */
.swiper-pagination {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .swiper-pagination {
        bottom: 20px !important;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .swiper-pagination-bullet-active {
        width: 20px;
    }
}

/* ============ ANIMATIONS ============ */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ============ LOADING STATE ============ */
.hero-slider-section.loading {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-section.loading::before {
    content: '';
    width: 50px;
    height: 50px;
    border: 3px solid rgba(233, 27, 35, 0.3);
    border-top-color: var(--cpsms-red-primary, #e91b23);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ ACCESSIBILITY ============ */
.swiper-button-prev:focus,
.swiper-button-next:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.swiper-pagination-bullet:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ============ DARK SLIDE VARIATIONS ============ */
.hero-slide-dark .hero-title,
.hero-slide-dark .hero-description {
    color: #ffffff;
}

.hero-slide-light .hero-title {
    color: var(--cpsms-gray-900, #111827);
    text-shadow: none;
}

.hero-slide-light .hero-description {
    color: var(--cpsms-gray-600, #6b7280);
    text-shadow: none;
}
}

@media (min-width: 768px) {
    .hero-btn {
        font-size: 18px;
        padding: 18px 36px;
    }
}

@media (max-width: 767px) {
    .hero-btn {
        width: 100%;
    }
}

/* Primary Button */
.hero-btn-primary {
    background: linear-gradient(135deg, var(--cpsms-red-primary, #e91b23) 0%, var(--cpsms-red-secondary, #bb1e2d) 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(233, 27, 35, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 27, 35, 0.5);
}

/* Secondary Button */
.hero-btn-secondary {
