/* Custom CSS Fixes for Static Site */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;700&display=swap');

body, p, span, a, li {
    font-family: 'Sarabun', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, .elementor-heading-title {
    font-family: 'Sarabun', sans-serif !important;
    color: #F0BF4C !important;
}

/* Fix Elementor white space/overflow issues */
html, body {
    overflow-x: hidden;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Custom button hover effects */
.elementor-button:hover {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

/* Table of Contents Border Color */
.elementor-widget-table-of-contents {
    --box-border-color: #F79308 !important;
}

/* Tooltip and Global Border Color */
#ays_tooltip, 
.ays_tooltip_class,
.elementor-toc {
    border-color: #F79308 !important;
}

/* Tooltip and Highlighted Text Color */
#ays_tooltip > *, 
.ays_tooltip_class > *,
.has-vivid-red-color {
    color: #F0BF4C !important;
}

/* Fix Red Gradients in Header/Buttons */
.elementor-element[data-settings*="gradient"] {
    --background-transition: background 0.3s;
}

/* Replace red in gradients with gold/orange */
[style*="#FF0000"], [style*="#EB0606"], [style*="#950000"], [style*="#C50000"] {
    color: #F0BF4C !important;
    border-color: #F79308 !important;
}

/* Center Header Buttons & Sticky Bar */
.elementor-element-a38aebe, 
.elementor-element-24ebed87,
.elementor-element-4e5e217,
.elementor-element-3730199 .e-con-inner,
.elementor-element-4e5e217 .e-con-inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* Ensure individual button containers don't take full width */
.elementor-element-a38aebe > .e-con,
.elementor-element-24ebed87 > .e-con,
.elementor-element-4e5e217 > .e-con {
    width: auto !important;
    flex: 0 0 auto !important;
}

/* Fix Sticky Bar Centering & Width */
.elementor-element-4e5e217:not(.elementor-sticky__spacer) {
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1140px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 10px !important;
    background: rgba(0,0,0,0.8); /* Semi-transparent background for better visibility */
    backdrop-filter: blur(5px);
}

/* Ensure individual button containers have enough space */
.elementor-element-4e5e217 > .e-con {
    flex: 0 1 auto !important;
    min-width: 120px !important;
    display: flex !important;
    justify-content: center !important;
}

/* Specific fix for the LINE icon container */
.elementor-element-951a75c {
    min-width: 50px !important;
}

/* Ensure buttons themselves are visible */
.elementor-element-4e5e217 .elementor-button {
    width: 100% !important;
}




