/* Page Banner Standardization */

/* Universal Page Banner Styling with higher specificity */
section.pageBanner, section.pageBannerSection {
    position: relative;
    padding: 120px 0 80px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    margin-top: 0 !important; /* Override any existing margin-top */
}

/* Dark overlay for better text readability */
section.pageBanner::before, section.pageBannerSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Container positioning */
section.pageBanner .container, section.pageBannerSection .container {
    position: relative;
    z-index: 2;
}

/* Banner Content Styling */
.banner_content, .pageBannerContent {
    color: #ffffff;
}

.banner_content h4, .pageBannerContent h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4CAF50;
}

.banner_content h4 span {
    background: rgba(76, 175, 80, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #4CAF50;
}

.banner_content h1, .pageBannerContent h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

/* Breadcrumb Styling */
.pageBannerPath {
    margin-top: 15px;
    font-size: 16px;
}

.pageBannerPath a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pageBannerPath a:hover {
    color: #4CAF50;
}

.pageBannerPath span {
    color: #cccccc;
    margin: 0 10px;
}

/* Search Form Styling (for pages that have it) */
.pageBannerForm {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.pageBannerForm form {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.pageBannerForm input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pageBannerForm input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.pageBannerForm input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.2);
}

.pageBannerForm button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #4CAF50;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pageBannerForm button:hover {
    background: #45a049;
}

/* Responsive Design */
@media (max-width: 991px) {
    section.pageBanner, section.pageBannerSection {
        padding: 100px 0 60px 0;
        margin-top: 0 !important;
    }
    
    .banner_content h1, .pageBannerContent h2 {
        font-size: 36px;
    }
    
    .pageBannerForm {
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    section.pageBanner, section.pageBannerSection {
        padding: 80px 0 50px 0;
        background-attachment: scroll;
        margin-top: 0 !important;
    }
    
    .banner_content, .pageBannerContent {
        text-align: center;
    }
    
    .banner_content h1, .pageBannerContent h2 {
        font-size: 28px;
    }
    
    .banner_content h4, .pageBannerContent h4 {
        font-size: 16px;
    }
    
    .pageBannerPath {
        font-size: 14px;
    }
    
    .pageBannerForm form {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    section.pageBanner, section.pageBannerSection {
        padding: 60px 0 40px 0;
        margin-top: 0 !important;
    }
    
    .banner_content h1, .pageBannerContent h2 {
        font-size: 24px;
    }
    
    .banner_content h4 span {
        padding: 3px 10px;
        font-size: 14px;
    }
}

/* Additional styling for uniform appearance */
section.pageBanner .row, section.pageBannerSection .row {
    align-items: center;
    min-height: 120px;
}

/* Center alignment for simple banners */
.banner_content.text-center {
    text-align: center;
}

/* Animation for banner content */
.banner_content, .pageBannerContent {
    animation: fadeInUp 0.8s ease-out;
}

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

/* Ensure proper spacing after banner */
section.pageBanner + section, section.pageBannerSection + section {
    margin-top: 0;
}

/* Override any conflicting CSS with high specificity */
body section.pageBanner {
    margin-top: 0 !important;
}

body section.pageBannerSection {
    margin-top: 0 !important;
}
