.about-name {
    font-size: 2.2rem;
    font-weight: 700;
}

.about-detail {
    font-size: 1rem;
}

.btn-primary-custom {
    background-color: #5d93e2;
    color: white;
    padding: 10px 20px;
    border: 1px solid #5d93e2;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #3178e2;
    color: #ffffff;
    text-decoration-line: none;
}

.mute-btn {
    background-color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid gray;
    color: gray;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mute-btn:hover {
    text-decoration-line: none;
    background-color: #f1f1f1;
    color: black;
}

.ref-link:hover {
    text-decoration-line: none;
    transform: scale(1.05);
}

.ref-link {
    color: #0056b3;
    font-size: 0.9rem;
    transition: 0.3s ease-in-out;
}

.img-fluid {
    max-width: 100%;
    height: 380px;
    border-radius: 10px;
}

.img-card {
    width: 100%;
    height: 220px;
    /* หรือปรับขนาดที่เหมาะสม */
    object-fit: cover;
    /* ป้องกันการบีบรูป */
}

.label-overlay {
    position: absolute;
    bottom: -15px;
    /* ปรับให้เลื่อนขึ้น */
    left: 20px;
    /* ปรับให้เลื่อนจากขอบซ้าย */
    background-color: #5d93e2;
    /* สีพื้นหลังโปร่งแสง */
    color: white;
    padding: 5px 25px;
    border-radius:  2px 2px 2px 2px; 
}

.img-carousel {
    max-width: 100%;
    height: 400px;
    border-radius: 10px;
}

.hero-section {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
}

.hero-content h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0d1a4a;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #333;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-learn-more {
    background-color: #5d93e2;
    border-color: #5d93e2;
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
}

.hero-image {
    max-width: 100%;
}

.line-clamp {
    min-height: 4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-body {
    font-size: 0.9rem;
    color: #555;
}


@media screen and (max-width: 375px) {
    .img-fluid {
        max-width: 100%;
        height: auto !important;
        border-radius: 10px;
    }

}

@media screen and (max-width: 768px) {
    .img-fluid {
        max-width: 100%;
        height: auto !important;
        border-radius: 10px;
    }

    .img-carousel {
        max-width: 100%;
        height: 300px;
        border-radius: 10px;
    }

    .about-name {
        font-size: 1.6rem;
        font-weight: bold;
    }

    .about-detail {
        font-size: 0.8rem;
    }

    .hero-content h3 {
        color: #333;
        font-size: 1.6rem;
        margin-bottom: 1rem;
        max-width: 500px;
    }

    .hero-content p {
        color: #333;
        margin-bottom: 1rem;
        font-size: 0.8rem;
        max-width: 500px;
    }

    .hero-section {
        position: absolute;
        top: 2rem;
        left: 0;
        right: 0;
    }
}