/* Banner Display Styles */
.banner-container {
    position: relative;
    z-index: 1000;
}

.banner-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.3s ease-out;
}

.banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.3s ease-out;
}

.banner-hero {
    position: relative;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px;
    animation: fadeIn 0.4s ease-in-out;
}

.banner-sidebar {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    max-width: 90vw;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    z-index: 1001;
}

/* Banner Center Overlay */
.banner-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1500;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-in-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: white;
}

/* Overlay for center banners */
.banner-container.banner-center .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1499;
    animation: fadeIn 0.2s ease-in-out;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-in-out;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f8f9fa;
    color: #dc3545;
}

/* Banner Content */
.banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.banner-description {
    margin-bottom: 20px;
    line-height: 1.5;
}

.banner-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.banner-buttons .btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid transparent;
    gap: 8px;
}

/* Button Sizes */
.banner-buttons .btn-small {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.banner-buttons .btn-medium {
    padding: 8px 16px;
    font-size: 1rem;
}

.banner-buttons .btn-large {
    padding: 12px 24px;
    font-size: 1.125rem;
}

/* Button Icons */
.banner-buttons .btn i {
    margin-right: 8px;
    font-size: 1em;
    display: inline-block;
}

.banner-buttons .btn-small i {
    font-size: 0.875em;
    margin-right: 6px;
}

.banner-buttons .btn-large i {
    font-size: 1.125em;
    margin-right: 10px;
}

/* Ensure FontAwesome icons are visible */
.banner-buttons .btn i:before {
    display: inline-block;
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free", "Font Awesome 6 Pro" !important;
}

/* Button Description */
.btn-description {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 2px;
}

/* Button Styles */
.banner-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.banner-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.banner-buttons .btn:hover::before {
    left: 100%;
}

.banner-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.banner-buttons .btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Button Sizes */
.banner-buttons .btn-small {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 36px;
}

.banner-buttons .btn-medium {
    padding: 12px 20px;
    font-size: 14px;
    min-height: 44px;
}

.banner-buttons .btn-large {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
}

/* Button Styles */
.banner-buttons .btn-primary {
    background: var(--button-bg, #3b82f6);
    color: var(--button-text, white);
    border-color: var(--button-border, #3b82f6);
}

.banner-buttons .btn-primary:hover {
    background: var(--hover-bg, #2563eb);
    border-color: var(--hover-bg, #2563eb);
}

.banner-buttons .btn-secondary {
    background: var(--button-bg, #6b7280);
    color: var(--button-text, white);
    border-color: var(--button-border, #6b7280);
}

.banner-buttons .btn-secondary:hover {
    background: var(--hover-bg, #4b5563);
    border-color: var(--hover-bg, #4b5563);
}

.banner-buttons .btn-outline {
    background: transparent;
    border: 2px solid var(--button-border, #3b82f6);
    color: var(--button-border, #3b82f6);
}

.banner-buttons .btn-outline:hover {
    background: var(--button-border, #3b82f6);
    color: var(--button-text, white);
}

.banner-buttons .btn-ghost {
    background: transparent;
    border: none;
    color: var(--button-text, #3b82f6);
    box-shadow: none;
}

.banner-buttons .btn-ghost:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: none;
}

.banner-buttons .btn-outline {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.banner-buttons .btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Close button for banners */
.banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: inherit;
    transition: all 0.2s ease;
}

.banner-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .banner-sidebar {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        max-width: none;
    }

    .banner-title {
        font-size: 1.2rem;
    }

    .banner-buttons {
        flex-direction: column;
        align-items: center;
    }

    .banner-buttons .btn {
        width: 100%;
        max-width: 200px;
    }

    .popup-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
}

/* Body adjustments when banners are present */
body.has-top-banner {
    padding-top: 80px;
}

body.has-bottom-banner {
    padding-bottom: 80px;
}

/* Hide on print */
@media print {

    .banner-container,
    .popup-overlay,
    .banner-top,
    .banner-bottom,
    .banner-sidebar {
        display: none !important;
    }
}