/* Banner Parallax Box - Frontend Styles */

.bpb-banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Background Layer - Full size, no rounded corners */
.bpb-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.bpb-background-layer.bpb-parallax {
    transform: translateY(0);
}

/* Content Box */
.bpb-content-box {
    position: relative;
    width: 90%;
    height: 80%;
    margin: 5% auto;
    border: 8px solid;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Box Background - Opacity now controlled via inline styles */
.bpb-box-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.bpb-box-background.bpb-parallax-box {
    transform: translateY(0);
}

/* Content Wrapper */
.bpb-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Logo Positioning */
.bpb-logo {
    position: absolute;
    max-width: 300px;
    z-index: 3;
}

.bpb-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.bpb-logo-top-left {
    top: 30px;
    left: 30px;
}

.bpb-logo-top-center {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.bpb-logo-top-right {
    top: 30px;
    right: 30px;
}

.bpb-logo-center-left {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
}

.bpb-logo-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bpb-logo-center-right {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
}

.bpb-logo-bottom-left {
    bottom: 30px;
    left: 30px;
}

.bpb-logo-bottom-center {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.bpb-logo-bottom-right {
    bottom: 30px;
    right: 30px;
}

/* Text Content Positioning */
.bpb-text-content {
    position: relative;
    text-align: center;
    max-width: 80%;
    z-index: 2;
}

.bpb-text-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.bpb-text-content h3 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.bpb-text-content p {
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Text Position Classes */
.bpb-text-top-left {
    position: absolute;
    top: 30px;
    left: 30px;
    text-align: left;
}

.bpb-text-top-center {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.bpb-text-top-right {
    position: absolute;
    top: 30px;
    right: 30px;
    text-align: right;
}

.bpb-text-center-left {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    text-align: left;
}

.bpb-text-center {
    position: relative;
    text-align: center;
}

.bpb-text-center-right {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    text-align: right;
}

.bpb-text-bottom-left {
    position: absolute;
    bottom: 30px;
    left: 30px;
    text-align: left;
}

.bpb-text-bottom-center {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.bpb-text-bottom-right {
    position: absolute;
    bottom: 30px;
    right: 30px;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpb-content-box {
        width: 95%;
        height: 85%;
        margin: 2.5% auto;
        border-width: 5px;
    }
    
    .bpb-content-wrapper {
        padding: 20px;
    }
    
    .bpb-logo {
        max-width: 200px;
    }
    
    .bpb-text-content h2 {
        font-size: 32px;
    }
    
    .bpb-text-content h3 {
        font-size: 24px;
    }
    
    .bpb-text-content p {
        font-size: 16px;
    }
    
    .bpb-logo-top-left,
    .bpb-logo-top-right,
    .bpb-logo-bottom-left,
    .bpb-logo-bottom-right,
    .bpb-logo-center-left,
    .bpb-logo-center-right {
        left: 20px;
        right: 20px;
    }
    
    .bpb-text-top-left,
    .bpb-text-top-right,
    .bpb-text-bottom-left,
    .bpb-text-bottom-right,
    .bpb-text-center-left,
    .bpb-text-center-right {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .bpb-text-content h2 {
        font-size: 24px;
    }
    
    .bpb-text-content h3 {
        font-size: 18px;
    }
    
    .bpb-text-content p {
        font-size: 14px;
    }
    
    .bpb-logo {
        max-width: 150px;
    }
}

/* Animation on hover */
.bpb-banner-container:hover .bpb-background-layer.bpb-parallax {
    transform: scale(1.02) translateY(0);
}

.bpb-banner-container:hover .bpb-box-background.bpb-parallax-box {
    transform: scale(1.01) translateY(0);
}

/* Entrance animation */
.bpb-banner-container.bpb-animated {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}