﻿.hero-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem; /* desktop size */
    font-weight: bold;
    padding: 0.3em 0.5em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    margin: 0;
    opacity: 0;
    animation: fadeInTitle 1s ease-out forwards;
}

/* Tablet adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
        padding: 0.4em 0.8em;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        padding: 0.3em 0.6em;
    }
}

/* Fade-in animation */
@keyframes fadeInTitle {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
