/**
 * APCA Box Type 1 Component Styles
 * 
 * @package APCA_V2
 */

/* APCA Box Type 1 Component */
.apca-box-type-1 {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 310px;
    height: 302px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-gray-medium);
}

.apca-box-type-1:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.apca-box-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 135px;
    z-index: 1;
}

.apca-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.apca-box-type-1:hover .apca-box-image img {
    transform: scale(1.05);
}

.apca-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
    transition: opacity 0.3s ease;
}

.apca-box-type-1:hover .apca-box-overlay {
    opacity: 0.9;
}

.apca-box-content {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    color: #fff;
}

.apca-box-number {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-family: 'Ayuthaya', serif;
    font-size: var(--text-small-desktop);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

.number-prefix {
    margin-right: 0.25rem;
}

.number-value {
    font-weight: 600;
}

.apca-box-title {
    color: #fff;
    font-family: 'Coolvetica Rg';
    font-size: var(--heading-6-desktop);
    font-weight: lighter;
    line-height: 1.2;
}

.apca-box-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.apca-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-apca-red);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.apca-link-arrow:hover,
.apca-link-arrow:focus {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.apca-link-arrow:hover .arrow-icon {
    transform: translate(2px, -2px);
}

/* Mobile Styles for APCA Box Type 1 */
@media (max-width: 768px) {
    .apca-box-type-1 {
        height: 380px;
    }
    
    .apca-box-content {
        padding: 1.5rem;
    }
    
    .apca-box-number {
        font-size: var(--text-small-mobile);
        margin-bottom: 0.75rem;
    }
    
    .apca-box-title {
        font-size: var(--heading-4-mobile);
        margin-bottom: 1rem;
    }
    
    .apca-link-arrow {
        width: 40px;
        height: 40px;
    }
    
    .arrow-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .apca-box-type-1 {
        height: 340px;
    }
    
    .apca-box-content {
        padding: 1.25rem;
    }
    
    .apca-box-title {
        font-size: var(--heading-5-mobile);
    }
}

/* APCA Slider Section */
.apca-slider-section {
    padding: 4rem 0;
    background: #fff;
}

.apca-slider-header {
    text-align: center;
    margin-bottom: 3rem;
}

.apca-slider-header h2 {
    margin-bottom: 1rem;
    color: #333;
}

.apca-slider-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Swiper Customization */
.apca-swiper {
    padding: 2rem 0 3rem 0;
    overflow: visible;
}

.apca-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Navigation Buttons */
.apca-swiper-next,
.apca-swiper-prev {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50%;
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.apca-swiper-next::after,
.apca-swiper-prev::after {
    font-size: 18px;
    font-weight: 600;
}

.apca-swiper-next:hover,
.apca-swiper-prev:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-2px);
}

.apca-swiper-next.swiper-button-disabled,
.apca-swiper-prev.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Pagination */
.apca-swiper-pagination {
    position: relative;
    margin-top: 2rem;
}

.apca-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ddd;
    opacity: 1;
    transition: all 0.3s ease;
}

.apca-swiper-pagination .swiper-pagination-bullet-active {
    background: #0073aa;
    transform: scale(1.2);
}

/* Mobile Slider Styles */
@media (max-width: 768px) {
    .apca-slider-section {
        padding: 3rem 0;
    }
    
    .apca-slider-header {
        margin-bottom: 2rem;
    }
    
    .apca-swiper {
        padding: 1rem 0 2rem 0;
        margin: 0 -15px;
    }
    
    .apca-swiper .swiper-slide {
        padding: 0 15px;
    }
    
    .apca-swiper-next,
    .apca-swiper-prev {
        width: 40px;
        height: 40px;
    }
    
    .apca-swiper-next::after,
    .apca-swiper-prev::after {
        font-size: 16px;
    }
    
    .apca-swiper-pagination {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .apca-slider-section {
        padding: 2rem 0;
    }
    
    .apca-swiper-next,
    .apca-swiper-prev {
        display: none;
    }
}
