/* #region */
/* About us section */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Kanit', sans-serif;
}

/* about-header */
.about-header {
    position: relative;
    text-align: center;
    color: white;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.about-header img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    display: block;
}

.about-header .about-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 1;
}

.about-header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.about-header-text p {
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.about-header-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-header-text .logo {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto 25px auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-text {
    background: none;
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    display: inline;
    transition: color 0.3s ease;
}

.btn-text:hover {
    color: #f1c40f;
    text-decoration: none;
}

/* about-company-history-container */
.about-company-history-container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

.about-company-history-container h2 {
    font-size: 30px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.highlight {
    color: #e61c1c;
    font-weight: 700;
}

.about-company-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-company-history-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-company-history-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-company-history-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* about-know  */
.about-know {
    background: linear-gradient(to right, rgba(246, 249, 252, 0.9), rgba(237, 240, 245, 0.9)),
        url('/assets/images/about/bg-1.jpg') no-repeat center center;
    background-size: cover;
    padding: 10px 0;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-know-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    border-radius: 24px;
}

.about-know-container h2 {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-know-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.about-know-card {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-know-card:hover {
    transform: scale(1.03);
}

.know-card-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-know-card p {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.about-know-card span {
    display: block;
    font-weight: bold;
    color: #2c3e50;
}

.about-know-small-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px;
    border-radius: 24px;
    animation: fadeInUp 3s ease forwards;
}

.about-cta {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.about-cta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-cta-text p {
    background: #eeeeee;
    padding: 18px 24px;
    border-left: 6px solid #e61c1c;
    border-radius: 12px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.about-cta-text p:hover {
    transform: translateY(-2px);
    box-shadow: 2px 6px 12px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
    position: relative;
    display: flex;
    max-width: 500px;
    /* overflow: visible; <-- ลบส่วนนี้ออก */
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.03);
}

.thumb-image {
    position: absolute;
    bottom: -30px;
    left: -100px;
    width: 320px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1;
    max-width: 100%;
}

/* pd-bg-wrapper   */
.pd-bg-wrapper {
    background: linear-gradient(to bottom, #e61c1c, #740000);
    padding: 20px 0;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.pd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Kanit', sans-serif;
    color: #333;
}

.pd-section {
    text-align: center;
    margin-bottom: 40px;
}

.pd-section h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #fff;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.pd-section p {
    font-size: 1rem;
    color: #eeeeee;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.pd-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.pd-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    flex: 1 1 calc(33.333% - 24px);
    min-width: 260px;
    max-width: 360px;
    transition: transform 0.3s;
    background-color: #fff;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.pd-card:hover {
    transform: translateY(-6px);
}

.pd-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.pd-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 16px;
}

.pd-card:hover .pd-overlay {
    opacity: 1;
}

.pd-overlay h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.pd-overlay p {
    font-size: 0.8rem;
    margin: 0;
}

/* about-work-section      */
.about-work-section {
    padding: 60px 20px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-work-section h2 {
    font-size: 30px;
    color: #000000;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-work-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ed1b24, #6b0005);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-work-small {
    font-size: 20px;
    color: #ed1b24;
    margin: 0 auto 20px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-work-description {
    font-size: 18px;
    color: #555;
    margin: 0 auto 20px;
    max-width: 1200px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-work-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-work-box {
    position: relative;
    width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.about-work-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.about-work-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-work-box:hover img {
    transform: scale(1.1);
}

.about-work-info {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    width: 100%;
    color: white;
    padding: 20px 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.about-work-info h3 {
    font-size: 18px;
    margin-top: 5px;
}

.about-work-info i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

/* about-summarize-section      */
.about-summarize-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-summarize-box {
    background: linear-gradient(135deg, #ed1b24, #6b0005);
    color: white;
    flex: 1 1 350px;
    text-align: left;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-summarize-box:hover {
    transform: translateY(-5px);
}

.about-summarize-box h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.about-summarize-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 150px;
}

.summarize-image {
    flex: 1 1 350px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.summarize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.about-summarize-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 60px auto;
    align-items: center;
    gap: 50px;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(216, 0, 0, 0.06);
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-summarize-image {
    flex: 1 1 45%;
    position: relative;
}

.about-summarize-image::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    border: 4px solid #ed1b24;
    z-index: 0;
}

.about-summarize-image img {
    width: 100%;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-summarize-content {
    flex: 1 1 50%;
}

.about-summarize-content small {
    color: #ed1b24;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-summarize-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-summarize-content p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #555;
    opacity: 0;
    animation: fadeInUp 3s ease forwards;
}

.about-summarize-content .btn {
    margin-top: 10px;
    display: inline-block;
    background-color: #ed1b24;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.about-summarize-content .btn:hover {
    background-color: #ed1b24;
}

@media (max-width: 1024px) {
    .about-company-history {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-company-history-img {
        grid-template-columns: 1fr;
    }

    .about-cta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .image-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* overflow: visible; <-- ลบส่วนนี้ออก */
    }

    .thumb-image {
        position: relative;
        /* เปลี่ยนจาก absolute เป็น relative */
        bottom: 0;
        left: 0;
        margin-top: 20px;
        width: 100%;
        max-width: 320px;
    }

    .about-work-box {
        width: 100%;
        height: auto;
        max-width: 500px;
    }

    .about-summarize-container {
        flex-direction: column;
        text-align: center;
    }

    .about-summarize-image::before {
        display: none;
    }

    .about-summarize-image img {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .about-header-text h1 {
        font-size: 2rem;
    }

    .about-header-text p {
        font-size: 0.9rem;
    }

    .pd-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .pd-card img {
        height: 240px;
    }

    .about-know-card {
        max-width: 100%;
    }

    .about-summarize-box {
        flex: 1 1 100%;
    }

    .about-summarize-box p {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
    }

    .about-header-text h1 {
        font-size: 1.6rem;
    }

    .about-header-text p {
        font-size: 0.85rem;
    }

    .pd-overlay h3 {
        font-size: 1rem;
    }

    .pd-overlay p {
        font-size: 0.75rem;
    }

    .about-cta-text p {
        font-size: 0.9rem;
        padding: 14px 18px;
    }

    .main-image {
        border-radius: 12px;
    }

    .thumb-image {
        max-width: 100%;
    }

    .about-summarize-content h2 {
        font-size: 24px;
    }

    .about-summarize-content p {
        font-size: 15px;
    }
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* #endregion */
/* About us section */



/* Mobile Styles (สำหรับหน้าจอ <= 768px) */
@media (max-width: 480px) {

    .above-content {
        display: none;
    }

}


@media (min-width: 481px) and (max-width: 1024px) {

    .above-content {
        display: none;
    }

}