@font-face {
    font-family: 'Maledpan';
    src: url('./maledpan-regular-webfont.eot');
    src: url('./maledpan-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('./maledpan-regular-webfont.woff2') format('woff2'),
         url('./maledpan-regular-webfont.woff') format('woff'),
         url('./maledpan-regular-webfont.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Maledpan';
    src: url('./maledpan-light-webfont.eot');
    src: url('./maledpan-light-webfont.eot?#iefix') format('embedded-opentype'),
         url('./maledpan-light-webfont.woff2') format('woff2'),
         url('./maledpan-light-webfont.woff') format('woff'),
         url('./maledpan-light-webfont.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Maledpan';
    src: url('./maledpan-bold-webfont.eot');
    src: url('./maledpan-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('./maledpan-bold-webfont.woff2') format('woff2'),
         url('./maledpan-bold-webfont.woff') format('woff'),
         url('./maledpan-bold-webfont.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'GraphikTH';
    src: url('./GraphikThai-Regular.woff2') format("woff2");
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    font-display: swap
}

@font-face {
    font-family: 'GraphikTH';
    src: url('./GraphikThai-Medium.woff2') format("woff2");
    font-weight: 500;
    font-style: normal;
    font-stretch: normal;
    font-display: swap
}


@font-face {
    font-family: 'GraphikTH';
    src: url(./GraphikThai-Semibold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-stretch: normal;
    font-display: swap
}

h1, h2, h3, h4, h5, h6, .nav .navbar, .nav-link {
    font-family: 'GraphikTH', sans-serif;
}

body, button, input, select, textarea, p {
    font-family: 'GraphikTH', sans-serif;
}

a {
    font-family: 'GraphikTH', sans-serif;
    text-decoration: none; /* ลบเส้นใต้ */
    color: inherit; /* ใช้สีเดียวกับข้อความปกติ */
    transition: color 0.3s; /* เพิ่มการเปลี่ยนสีอย่างนุ่มนวล */
}

th {
    font-family: 'GraphikTH', sans-serif;
    font-weight: 500; /* ใช้ตัวหนา */
}
td {
    font-family: 'GraphikTH', sans-serif;
    font-weight: 400; /* ใช้ตัวหนา */
}

.hero-card {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
.hero-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.hero-card:hover {
    transform: scale(1.02);
}
.hero-card > * {
    position: relative;
    z-index: 2;
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background-color: transparent;
    cursor: pointer;    
    transition: background-color 0.3s, color 0.3s;
}
.btn-outline-white:hover {
    background-color: white;
    color: #9c9c9c;
}

.btn-outline-white:focus-visible {
    outline: 3px solid #9c9c9c; 
    outline-offset: 2px; 
}
a:focus-visible, button:focus-visible { 
    outline: 3px solid #9c9c9c; 
    outline-offset: 2px; 
}

.gemini-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #48819f; /* Updated color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.active-nav-link {
    font-weight: 500; /* ตัวหนา */
    color: #ffffff !important; /* สีขาว (สำคัญกว่าสีเทา) */
}

.bg-maxxma-orange {
    background-color: #d99435; /* Updated color from image */
}
.bg-maxxma-yellow {
        background-color: #e9c34c; /* Updated color from image */
}
.bg-maxxma-dark-yellow {
    background-color: #f4bb1e; /* Updated color from image */
}

.bg-maxxma-light-gray {
    background-color: #e3e3e3; /* Updated color from image */
}
.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem; /* space-y-3 */
}
.text-maxxma {color: #89802f; }

.nowrap {
    white-space: nowrap;
}