/* ==================== HERO ==================== */
.hero {
    height: 90vh;
    min-height: 700px;
    background-image: url('../images/bg_rung_loc.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Hero dạng banner ảnh (trang chủ) */
.hero--banner {
    height: auto;
    min-height: 0;
    padding: 0;
    display: block;
    background-image: none;
    color: inherit;
}

.hero--banner img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .hero {
        height: 75vh;
        min-height: 500px;
    }
    .hero--banner {
        height: auto;
        min-height: 110px;
        position: relative;
        aspect-ratio: 16/5;
        overflow: hidden;
    }
    .hero--banner img {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 640px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    .hero--banner {
        height: auto;
        min-height: 100px;
        aspect-ratio: 16/6;
    }
}

.hero:not(.hero--banner)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 35px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}
