/**
 * Front Page - Carousel + Categories
 */

/* ========================================
   CAROUSEL
   ======================================== */
.fp-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1e3a5f;
    /* Keep a stable banner area that matches the slide art (1200x400 = 3:1) */
    aspect-ratio: 3 / 1;
}

.fp-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.fp-slide {
    min-width: 100%;
    display: block;
    height: 100%;
}

.fp-slide img {
    width: 100%;
    display: block;
    height: 100%;
    /* Show the full image without cropping */
    object-fit: contain;
}

/* Carousel Buttons */
.fp-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    padding: 10px;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    outline: none !important;
    box-shadow: none !important;
}

.fp-carousel-btn:hover,
.fp-carousel-btn:focus,
.fp-carousel-btn:active {
    opacity: 1;
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.fp-prev {
    left: 20px;
}

.fp-next {
    right: 20px;
}

/* Carousel Dots */
.fp-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.fp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.fp-dot.active,
.fp-dot:hover {
    background: #fff;
}

/* ========================================
   CATEGORIES GRID
   ======================================== */
.fp-categories {
    max-width: calc(var(--ast-normal-container-width, 1200px) + 40px);
    margin: 0 auto;
    padding: 40px 0;
}

.fp-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.fp-category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fp-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.fp-category-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f8f8;
}

.fp-category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fp-category-card h3 {
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-top: 1px solid #eee;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .fp-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .fp-categories {
        padding: 25px 0;
    }
    
    .fp-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .fp-category-card h3 {
        font-size: 14px;
        padding: 12px 15px;
    }

}

@media (max-width: 480px) {
    .fp-categories-grid {
        grid-template-columns: 1fr;
    }
}
/* Carousel Caption Styles */
.fp-slide {
    position: relative;
}

.fp-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.fp-slide-caption p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .fp-slide-caption {
        padding: 30px 15px 15px;
    }
    
    .fp-slide-caption p {
        font-size: 16px;
    }
}
