/* ตั้งค่าทั่วไป */
body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
}

/* ส่วนหัว */
.header-bg {
    background-size: cover;
    padding: 20px 0;
    color: #fff;
}

.logo-box {
    background: #fff;
    padding: 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-box img {
    height: 90px;
    width: auto;
}

.logo-text h5 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
}

.logo-text span {
    font-size: 1.1rem;
    color: #666;
}

/* ข้อมูลติดต่อ */
.contact-info {
    font-size: 1rem;
    line-height: 1.8;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.info-icon {
    width: 28px;
    text-align: left;
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2rem;
}

.info-text {
    color: #fff;
    font-weight: 500;
}

/* เมนู */
.nav-bg {
    background-color: #3f51b5;
    border-radius: 10px;
    margin-top: 10px;
}

.nav-link,
.nav-link.dropdown-toggle {
    font-family: 'Kanit', sans-serif !important;
    font-size: 1rem; /* ปรับขนาดฟอนต์ให้เท่ากัน */
    font-weight: bold;
    color: white !important;
    padding: 10px 20px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: 0.1em;
}

.dropdown-menu {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 220px;
    animation: dropdownFade 0.3s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    background-color: transparent;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.dropdown-item:hover {
    background-color: #f0f4ff;
    color: #3f51b5;
}

/* การตอบสนอง (Responsive) */
@media (max-width: 767.98px) {
    .logo-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .contact-info {
        text-align: left !important;
        margin-top: 10px;
    }
}

/* การเคลื่อนไหว */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}