﻿body {
    background-color: #f4f7fa;
    font-family: 'Noto Sans Thai','Sarabun', sans-serif;
}

.announcement-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .announcement-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 20px rgba(99, 45, 139, 0.25);
    }

.announcement-img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-img {
    transform: scale(1.05);
}

.announcement-body {
    background: white;
    padding: 1rem 1.25rem;
}

.announcement-title {
    color: #632d8b;
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.announcement-date {
    font-size: 0.85rem;
    color: #999;
}

.announcement-badge {
    background-color: #ea2d8e;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}


@media (max-width: 768px) {
    .announcement-img {
        height: 200px;
    }
}

hr {
    margin: 0px 0;
}

.call_do_action .section_title {
    padding: 2rem;
    background: linear-gradient(135deg, #632d8b 0%, #ea2d8e 100%);
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.call_do_action .section_sub_title p,
.call_do_action .section_main_title p {
    margin: 0;
    font-size: 1.25rem;
}

.call_do_action .section_sub_title {
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.call_do_action .section_main_title {
    font-weight: bold;
    font-size: 1.5rem;
}

.about-special-button {
    display: flex; /* ใช้ Flexbox เพื่อควบคุมตำแหน่ง */
    justify-content: flex-end; /* จัดให้อยู่ทางขวา */
}

.about-button2 a {
    text-decoration: none; /* ลบเส้นใต้ลิงก์ */
    color: #333; /* ตั้งค่าสีข้อความ */
    padding: 10px 20px; /* เพิ่มพื้นที่รอบข้อความ */
    border: 1px solid #ccc; /* ใส่เส้นขอบ */
    border-radius: 8px; /* ทำให้มุมโค้งมน */
    background-color: #f9f9f9; /* ตั้งค่าพื้นหลัง */
    transition: background-color 0.3s; /* เพิ่มเอฟเฟกต์เวลา hover */
}

    .about-button2 a:hover {
        background-color: #e0e0e0; /* เปลี่ยนสีพื้นหลังเมื่อ hover */
    }

.news-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .news-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        margin-right: 15px;
        border-radius: 5px;
    }

.news-box {
    border-radius: 8px;
    overflow: hidden;
}

.bg-max {
    background-color: rgba(255, 255, 255, 0.36);
}
.icon {
    line-height: 0px;
}

.mt-3, .my-3 {
    margin-top: 0rem !important;
}


.four .single_case_study_content {
    background: #00247ee5;
}

footer {
    color: #fff;
}

    footer h4 {
        color: #fff;
        border-bottom: 2px solid #EAEAEA;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    footer ul li {
        padding: 10px 0;
        margin-bottom: 0;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s forwards;
    }

        footer ul li:nth-child(1) {
            animation-delay: 0.1s;
        }

        footer ul li:nth-child(2) {
            animation-delay: 0.2s;
        }

        footer ul li:nth-child(3) {
            animation-delay: 0.3s;
        }

        footer ul li:nth-child(4) {
            animation-delay: 0.4s;
        }

        footer ul li:nth-child(5) {
            animation-delay: 0.5s;
        }

        footer ul li:last-child {
            border-bottom: none;
        }

        footer ul li a {
            color: #fff;
            display: flex;
            align-items: center;
            transition: color 0.3s ease;
            font-weight: 500;
        }

            footer ul li a:hover {
                color: #ea2d8e;
                text-decoration: none;
            }

        footer ul li i {
            margin-right: 10px;
            min-width: 20px;
            text-align: center;
        }

@media (max-width: 768px) {
    .tab-container {
        flex-direction: column;
    }

    .tab-menu {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
