/* Hero Section Grid/Split Layout */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #000;
    overflow: hidden;
}

.hero-grid {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-card {
    position: relative;
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: flex 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    border-right: 0px solid rgba(255, 255, 255, 0.1);
}

.hero-card:last-child {
    border-right: none;
}

/* Hover Effect: Expand the card */
.hero-card:hover {
    flex: 1.05;
}

/* Overlay for dimming */
.hero-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.4s ease;
}

.hero-card:hover .hero-card__overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Content Positioning */
.hero-card__link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 3rem 2rem;
    box-sizing: border-box;
    text-decoration: none;
    z-index: 2;
    position: relative;
    color: #fff;
}

/* Title Styling */
.hero-card__content {
    transform: translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.9;
}

.hero-card:hover .hero-card__content {
    transform: translateY(0);
    opacity: 1;
}

.hero-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Arrow Icon */
.hero-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.hero-card:hover .hero-card__arrow {
    opacity: 1;
    transform: translateX(0);
    border-color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .hero-card {
        flex: 1;
        width: 100%;
    }

    .hero-card:hover {
        flex: 1.5;
    }

    .hero-card__content {
        transform: translateY(0);
        opacity: 1;
    }

    .hero-card__arrow {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Swiper Carousel Overrides */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide .hero-card {
    /* Reset flex behavior when inside carousel */
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    border-right: 0px solid rgba(255, 255, 255, 0.1);
}

.swiper-slide .hero-card:hover {
    flex: none !important;
    /* Disable flex growth in carousel */
}

/* Swiper Pagination Styling */
.hero-pagination {
    bottom: 30px !important;
}

.hero-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    width: 25px;
    border-radius: 5px;
}