/* ========================= */
/*        Hero Section       */
/* ========================= */

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1350px;
    height: auto;
    margin: auto;
    padding: 90px 20px 20px 20px;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
}

/* Background Image */
.hero-image img:first-child {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Hero Text */
.hero-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e466b;
    max-width: 60%;
    padding: 20px;
    box-sizing: border-box;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
}

/* Hero Text Elements */
.hero-text img {
    max-width: 60%;
    height: auto;
    margin-top: 20px; /* ระยะห่างบนปกติ */
}

.hero-text h1 {
    font-size: calc(1.5rem + 1vw);
    font-weight: bold;
    margin: 10px 0;
}

.hero-text h2 {
    font-size: calc(1rem + 1vw);
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-text {
        max-width: 80%;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-text img {
        max-width: 80%;
    }
}

@media (max-width: 992px) {
    .hero-image {
        flex-direction: column;
        align-items: center;
    }

    .hero-text {
        max-width: 90%;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-text img {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .hero-text {
        max-width:80%;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-text img {
        max-width: 60%;  /* เพิ่มขนาดให้ใหญ่ขึ้น */
        margin-top: 70px; /* เพิ่มระยะห่างจากด้านบน */
    }
}

@media (max-width: 576px) {
    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.2rem;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .hero-text img {
        max-width: 50%;
    }
}