/* Popup Banner Styles */
.popup-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-banner-container {
    position: relative;
    width: 1260px;
    height: 300px;
    max-width: 90vw;
    max-height: 90vh;
    margin: 20px;
    background: #F8F1EA;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

.popup-banner-content {
    position: relative;
    padding: 40px 30px 30px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.popup-banner-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-banner-close:hover {
    color: #333;
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.popup-banner-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
}

.popup-banner-text h1,
.popup-banner-text h2,
.popup-banner-text h3,
.popup-banner-text h4,
.popup-banner-text h5,
.popup-banner-text h6 {
    margin: 0 0 15px 0;
    font-weight: bold;
    line-height: 1.3;
}

.popup-banner-text h1 {
    font-size: 2.2em;
    font-weight: 700;
}

.popup-banner-text h2 {
    font-size: 1.8em;
    font-weight: 600;
}

.popup-banner-text h3 {
    font-size: 1.4em;
    font-weight: 500;
}

.popup-banner-text h4 {
    font-size: 1.2em;
    font-weight: 500;
}

.popup-banner-text h5 {
    font-size: 1.1em;
    font-weight: 500;
}

.popup-banner-text h6 {
    font-size: 1em;
    font-weight: 500;
}

.popup-banner-text p {
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.popup-banner-text strong,
.popup-banner-text b {
    font-weight: 700;
}

.popup-banner-text em,
.popup-banner-text i {
    font-style: italic;
}

.popup-banner-text u {
    text-decoration: underline;
}

.popup-banner-text a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.popup-banner-text a:hover {
    border-bottom-color: #3498db;
}

.popup-banner-text ul,
.popup-banner-text ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.popup-banner-text li {
    margin-bottom: 5px;
}

.popup-banner-text blockquote {
    margin: 15px 0;
    padding: 10px 20px;
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    font-style: italic;
}

/* Remove default margins from last elements */
.popup-banner-text > *:last-child {
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (min-width: 1281px) {
    .popup-banner-container {
        width: 1260px;
        height: 300px;
    }
}

@media (max-width: 1280px) {
    .popup-banner-container {
        width: 95vw;
        height: auto;
        min-height: 250px;
        max-height: 80vh;
    }
}

@media (max-width: 768px) {
    .popup-banner-overlay {
        align-items: flex-start;
        padding-top: 110px;
    }
    
    .popup-banner-container {
        width: 355px;
        height: 330px;
        max-width: none;
        max-height: none;
        margin: 0 auto;
    }
    
    .popup-banner-content {
        padding: 30px 20px 20px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .popup-banner-text h1 {
        font-size: 1.8em !important;
    }
    
    .popup-banner-text h2 {
        font-size: 1.5em !important;
    }
    
    .popup-banner-text h3 {
        font-size: 1.2em !important;
    }
    
    .popup-banner-text h4 {
        font-size: 1.1em !important;
    }
    
    .popup-banner-text h5,
    .popup-banner-text h6 {
        font-size: 1em !important;
    }
    
    .popup-banner-text p {
        font-size: 1em !important;
    }
}

@media (max-width: 480px) {
    .popup-banner-overlay {
        align-items: flex-start;
        padding-top: 110px;
    }
    
    .popup-banner-container {
        width: 355px;
        height: 330px;
        max-width: none;
        max-height: none;
        margin: 0 auto;
    }
    
    .popup-banner-content {
        padding: 25px 15px 15px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .popup-banner-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
    
    .popup-banner-text h1 {
        font-size: 1.6em !important;
    }
    
    .popup-banner-text h2 {
        font-size: 1.4em !important;
    }
    
    .popup-banner-text h3 {
        font-size: 1.2em !important;
    }
    
    .popup-banner-text h4 {
        font-size: 1.1em !important;
    }
    
    .popup-banner-text h5,
    .popup-banner-text h6 {
        font-size: 1em !important;
    }
    
    .popup-banner-text p {
        font-size: 0.9em !important;
    }
}