/* Parallax banner */
.parallax-container {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,107,107,0.3), rgba(78,205,196,0.3), rgba(69,183,209,0.3));
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

/* Spacer to maintain layout flow */
.parallax-spacer {
    height: 85vh;
    position: relative;
    z-index: 2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.parallax-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.parallax-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Anchor ad banner */
.kjanchor-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

.kjanchor-ad.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.ad-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ad-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ad-text {
    flex: 1;
}

.ad-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
}

.ad-description {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

.kjad-close {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: black;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1.2;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: absolute;
    bottom: 55px;
    right: 5px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.kjad-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.kjad-close:active {
    transform: scale(0.95);
}

/* Mobile optimizations */
@media (max-width: 768px) {   
    .parallax-content h2 {
        font-size: 2rem;
    }
    
    .parallax-content p {
        font-size: 1rem;
    }
    
    .kjanchor-ad {
        padding: 0;
    }
    
    .ad-title {
        font-size: 13px;
    }
    
    .ad-description {
        font-size: 11px;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .kjanchor-ad {
        display: none;
    }
#kj-roadblock, .adnm-creative{
	display:none;
}
}
@media (max-width: 425px){
    #kj-roadblock{
        margin: 0 0 20px 0;
    }
    .adnm-creative.adnm-creative__prebanner,.adnm-creative.adnm-creative__postbanner{
        height: 100px !important;
    }
}