/* styles/page-title.css */


.page-title-banner {
    position: relative;
    width: 100%;
    margin-top: -60px; /* Overlap into slider */
    z-index: 10;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay the text on the image */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.banner-overlay h1 {
    color: rgb(220, 1, 106);
    font-size: 4rem;
    margin: 0;
    padding: 1rem;
    padding-top:3rem;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;

    /* Text Shadow for depth and readability */
    text-shadow:
        1px 1px 0 rgb(255, 255, 255);     /* subtle glow */     /* subtle glow */
}


/* Animation */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-overlay h1 {
        font-size: 1.6rem;
        padding-top:1rem;
    }

    .page-title-banner {
        margin-top: -17px; /* Less overlap on tablets */
    }
}

@media (max-width: 480px) {
    .banner-overlay h1 {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .page-title-banner {
        margin-top: -10px; /* Less overlap on phones */
    }
}
