/**
 * HP Carousel - Frontend Styles
 * Based on Figma Design
 */

/* Carousel Wrapper */
.hp-carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Main Carousel Container */
.hp-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

/* Carousel Track */
.hp-carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    overflow: visible;
}

/* Carousel Card */
.hp-carousel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
    width: 180px;
    height: 260px;
}

/* Active Card (Center) */
.hp-carousel-card--active {
    opacity: 1;
    width: 260px;
    height: 376px;
    border: 1px solid #fafafa;
}

/* Card Background */
.hp-carousel-card__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 16px;
    z-index: 0;
}

/* Card Image */
.hp-carousel-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Card Overlay */
.hp-carousel-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(17, 68, 101, 0.9) 61.154%
    );
    border-radius: 16px;
}

/* Active Card Overlay */
.hp-carousel-card--active .hp-carousel-card__overlay {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 7.447%,
        rgba(17, 68, 101, 0.9) 77.793%
    );
}

/* Card Content */
.hp-carousel-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
    width: 100%;
}

/* Card Title */
.hp-carousel-card__title,
.hp-carousel-card .hp-carousel-card__title,
.hp-carousel-card--active .hp-carousel-card__title {
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    text-transform: none !important;
}

/* Active Card Title */
.hp-carousel-card--active .hp-carousel-card__title {
    font-size: 20px !important;
}

/* Card Description */
.hp-carousel-card__description,
.hp-carousel-card .hp-carousel-card__description,
.hp-carousel-card--active .hp-carousel-card__description {
    margin: 0 !important;
    font-family: 'Hind', sans-serif !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
}

/* Active Card Description */
.hp-carousel-card--active .hp-carousel-card__description {
    font-size: 16px !important;
}

/* Card Link */
.hp-carousel-card__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff !important;
    transition: opacity 0.3s ease;
    width: fit-content;
}

.hp-carousel-card__link:hover {
    opacity: 0.8;
}

/* Link Text */
.hp-carousel-card__link-text,
.hp-carousel-card .hp-carousel-card__link-text,
.hp-carousel-card--active .hp-carousel-card__link-text {
    font-family: 'Hind', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

/* Active Card Link Text */
.hp-carousel-card--active .hp-carousel-card__link-text {
    font-size: 16px !important;
}

/* Arrow Icon */
.hp-carousel-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #ffffff;
}

.hp-carousel-card__arrow svg {
    width: 100%;
    height: 100%;
    color: #ffffff;
}

/* Carousel Controls */
.hp-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 260px;
    height: 30px;
}

/* Arrow Buttons */
.hp-carousel-arrow {
    background: none;
    background-color: transparent !important;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.hp-carousel-arrow:hover {
    opacity: 0.7;
}

.hp-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hp-carousel-arrow svg {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hp-carousel-track {
        gap: 15px;
    }
    
    .hp-carousel-card {
        width: 140px;
        height: 200px;
    }
    
    .hp-carousel-card--active {
        width: 220px;
        height: 320px;
    }
    
    .hp-carousel-controls {
        width: 220px;
    }
}

@media (max-width: 480px) {
    /* Stack cards vertically on mobile */
    .hp-carousel-track {
        flex-direction: column;
        gap: 20px;
    }
    
    .hp-carousel-card,
    .hp-carousel-card--active {
        width: 100%;
        max-width: 320px;
        height: 280px;
        opacity: 1;
    }
    
    .hp-carousel-controls {
        width: 100%;
        max-width: 320px;
    }
}

/* Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Hind:wght@400;700&display=swap');
