.bg-primary-gradient {
    --tw-bg-opacity: 1;
    background: linear-gradient(
        90deg,
        rgba(78, 91, 170, 1) 0%,
        rgba(65, 74, 159, 1) 50%,
        rgba(78, 91, 170, 1) 100%
    );
}

.bg-primary-gradient-top {
    --tw-bg-opacity: 1;
    background: linear-gradient(
        180deg,
        rgba(93, 106, 186, 1) 0%,
        rgba(65, 74, 159, 1) 85%
    );
}

/* ACM Gallery Styles */
.acm-gallery {
    display: flex;
    gap: 5rem;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 20px auto 0;
    padding: 0.8rem 8rem;
    width: fit-content;
    border-radius: 100px;
    /* เพิ่ม transition สำหรับ smooth hover */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* หรือใช้ ease-out สำหรับการเคลื่อนไหวที่นุ่มนวล */
    /* transition: all 0.3s ease-out; */
}

.acm-gallery {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(80, 80, 80, 0.082),inset 0 0 30px #ffffff94;
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.05);
    border-radius: 100px;
}

.acm-item {
    position: relative;
    overflow: hidden;
    width: 120px;
    height: auto;
    transition: all 0.3s ease;
    cursor:default;
}

.acm-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.acm-item:hover {
    transform: scale(1.08);
}

/* Hover effect ที่ส่งผลต่อทั้ง gallery */
/* .acm-gallery:hover .acm-item {
    background: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.acm-gallery:hover .acm-item img {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.05);
} */

/* Responsive Design */
@media (max-width: 768px) {
    .acm-gallery {
        gap: 10px;
    }

    .acm-item {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .acm-gallery {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .acm-item {
        width: 70px;
        height: 70px;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.contact-item {
    /* ลบ padding ออก */
    width: 100%; /* บังคับให้เต็มพื้นที่ */
}

.contact-grid .card-contact {
    width: 100% !important;
    /* aspect-ratio: 1 !important; */
    margin: 0 !important; /* ลบ margin ทั้งหมด */
    padding: 30px !important; /* ใส่ padding กลับมา */
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    justify-content: center;
    height: 260px;
}

.contact-grid .card-contact .title {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-items: start;
    justify-content: start;
    text-align: start;
    width: 100%;
}

.custom-line {
    display: flex;
    align-items: end;
    justify-items: end;
    justify-content: space-between;
    width: 100%;
}

.group-text .title,
.des {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-items: start;
    justify-content: start;
    text-align: start;
    width: 100%;
}

.line-logo-custom {
    width: 80px;
}

.contact-grid .card-contact .des {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-items: start;
    justify-content: start;
    text-align: start;
    width: 100%;
}

.icon-size {
    width: 96px;
    height: 96px;
}

.icon-size-line {
    width: 115px;
    height: 115px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .icon-size {
        width: 80px;
        height: 80px;
    }
}

/* ปิดการคลิกและเมาส์สำหรับ Swiper ทั้งหมด */
.swiper-pj {
    pointer-events: none !important; /* ปิดการคลิกทั้งหมด */
    cursor: default !important; /* ปิด cursor เมาส์ */
}

.swiper-pj * {
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important; /* ปิดการเลือกข้อความ */
}

.swiper-pj .swiper-slide {
    pointer-events: none !important;
    cursor: default !important;
}

.swiper-pj .swiper-wrapper {
    pointer-events: none !important;
    cursor: default !important;
}

/* ป้องกันการลาก */
.swiper-pj img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
}

.bg-gradient-one {
    background: linear-gradient(
        180deg,
        rgba(206, 225, 246, 1) 0%,
        rgba(161, 180, 237, 1) 100%
    );
}

.bg-gradient-two {
    background: linear-gradient(
        180deg,
        rgba(163, 182, 239, 1) 0%,
        rgba(118, 124, 181, 1) 100%
    );
}

.bg-gradient-three {
    background: linear-gradient(
        180deg,
        rgba(119, 125, 182, 1) 0%,
        rgba(93, 98, 146, 1) 100%
    );
}

.bg-gradient-four {
    background: linear-gradient(
        180deg,
        rgba(95, 100, 149, 1) 0%,
        rgba(73, 84, 131, 1) 100%
    );
}

.bg-gradient-five {
    background: linear-gradient(
        180deg,
        rgba(74, 85, 132, 1) 0%,
        rgba(51, 59, 92, 1) 100%
    );
}
