/*
Theme Name: CC NIDA Child
Author: Mountain Studio
Description: Custom child theme for the NIDA Consulting Center website.
Version: 1.0.0
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* --- CC NIDA TYPOGRAPHY STANDARDS: MAX WEIGHT 500 --- */
/* 1. Cap all headings, buttons, and bold text strictly to font-weight: 500 */
b, strong, 
h1, h2, h3, h4, h5, h6, 
.elementor-heading-title, 
.elementor-button, 
.elementor-widget-heading *,
.elementor-icon-box-title,
.elementor-icon-box-description,
.elementor-post__title,
.entry-title,
.nida-pw-title,
.nida-pw-subtitle,
.nida-pw-btn-search,
.nida-pw-label,
.nida-pw-tag-pill {
    font-weight: 500 !important;
}

/* 2. Bold tags within body text, lists, and editors capped at 500 */
p strong, p b, span strong, span b, li strong, li b, 
.elementor-text-editor strong, .elementor-text-editor b {
    font-weight: 500 !important;
}

/* 3. Base body text remains clean normal weight 400 */
body, p, li, a, input, select, textarea,
.elementor-text-editor,
.elementor-text-editor p,
.elementor-icon-list-text {
    font-weight: 400;
}

/* --- CARD THUMBNAIL TITLE STANDARDIZATION (Only for News Loop 559) --- */
.elementor-559 .elementor-element-6d0f4bb .elementor-heading-title,
.elementor-559 h3.elementor-heading-title {
    font-size: 15.5px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    font-family: "FC Vision", sans-serif !important;
}


/* --- CC NIDA FOOTER MOBILE & RESPONSIVE POLISH --- */
/* 1. Reset destructive line-heights on footer links & copyright */
.cc-footer-links p,
.cc-footer-links a,
.cc-footer-copyright,
.cc-footer-copyright p,
.cc-footer-legal,
.cc-footer-legal p {
    line-height: 1.65 !important;
}

.cc-footer-links p {
    margin-bottom: 10px !important;
}

.cc-footer-links p:last-child {
    margin-bottom: 0 !important;
}

.cc-footer-links a {
    color: #CBD5E1 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.cc-footer-links a:hover {
    color: #FFFFFF !important;
}

.cc-footer-heading {
    margin-bottom: 12px !important;
}

/* 2. Top CTA Banner Mobile Responsiveness */
@media (max-width: 767px) {
    .elementor-430 .elementor-element-ff874b4,
    .elementor-element.elementor-element-ff874b4 {
        flex-direction: column !important;
        text-align: center !important;
        padding: 36px 20px !important;
        gap: 20px !important;
    }

    .elementor-430 .elementor-element-633dd29,
    .elementor-element.elementor-element-633dd29 {
        width: 100% !important;
        max-width: 100% !important;
    }

    .elementor-430 .elementor-element-5bd3b60 .elementor-heading-title {
        font-size: 21px !important;
        line-height: 1.35 !important;
        margin-bottom: 8px !important;
    }

    .elementor-430 .elementor-element-a005b1d .elementor-heading-title {
        font-size: 14.5px !important;
        line-height: 1.55 !important;
    }

    .elementor-430 .elementor-element-f380cc4,
    .elementor-element.elementor-element-f380cc4 {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .elementor-430 .elementor-element-3bdcf4a .elementor-button {
        padding: 12px 36px !important;
        font-size: 15px !important;
    }

    /* 3. Footer Menu Columns Stacking */
    .elementor-430 .elementor-element-519b1e98 {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .elementor-430 .elementor-element-42ec8192,
    .elementor-430 .elementor-element-7cad6f56,
    .elementor-430 .elementor-element-69786774 {
        width: 100% !important;
        border-right: none !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* 4. Contact items spacing on mobile */
    .elementor-430 .elementor-element-371c0ebc {
        flex-direction: column !important;
        gap: 16px !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .cc-footer-contact-item .elementor-icon-list-item {
        line-height: 1.6 !important;
    }

    /* 5. Bottom Copyright & Legal bar */
    .elementor-430 .elementor-element-2968c174 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px 20px !important;
    }

    .elementor-430 .elementor-element-bb4bf06 {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .cc-footer-copyright,
    .cc-footer-copyright p,
    .cc-footer-legal,
    .cc-footer-legal p {
        text-align: center !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}

/* --- CC NIDA FLUENT FORMS POLISH & BRAND INTEGRATION --- */
.fluentform,
.frm-fluent-form,
.ff-el-form-control,
.ff-el-input--label label {
    font-family: 'FC Vision', sans-serif !important;
}

.fluentform .ff-el-group {
    margin-bottom: 18px !important;
}

.fluentform .ff-el-input--label {
    margin-bottom: 6px !important;
}

.fluentform .ff-el-input--label label {
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #1E293B !important;
    line-height: 1.4 !important;
}

.fluentform .ff-el-is-required.asterisk-right label:after {
    color: #EF4444 !important;
    margin-left: 3px !important;
}

.fluentform .ff-el-form-control {
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-size: 14.5px !important;
    color: #0F172A !important;
    background-color: #FFFFFF !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    height: auto !important;
    min-height: 46px !important;
}

.fluentform select.ff-el-form-control {
    cursor: pointer !important;
    padding-right: 36px !important;
}

.fluentform textarea.ff-el-form-control {
    min-height: 120px !important;
    resize: vertical !important;
    line-height: 1.55 !important;
}

.fluentform .ff-el-form-control:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.fluentform .ff-el-form-control::placeholder {
    color: #94A3B8 !important;
    font-weight: 400 !important;
}

/* PDPA Checkbox */
.fluentform .ff-el-form-check-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}

.fluentform .ff-el-form-check-input {
    margin-top: 3px !important;
    cursor: pointer !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #2563EB !important;
}

/* Submit Button */
.fluentform .ff-btn-submit {
    background-color: #1E40AF !important;
    color: #FFFFFF !important;
    font-family: 'FC Vision', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    padding: 12px 36px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.28) !important;
}

.fluentform .ff-btn-submit:hover {
    background-color: #1D4ED8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35) !important;
}

/* Error and Success */
.fluentform .text-danger,
.fluentform .error {
    color: #DC2626 !important;
    font-size: 13px !important;
    margin-top: 4px !important;
}

.fluentform .ff-message-success {
    background: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
    color: #1E40AF !important;
    border-radius: 12px !important;
    padding: 18px 24px !important;
    font-size: 15px !important;
    font-family: 'FC Vision', sans-serif !important;
    line-height: 1.6 !important;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.08) !important;
}

/* --- CC NIDA FEATURED PROJECTS FILTER FULL-WIDTH LAYOUT --- */
.cc-news-filter.cc-project-filter,
.cc-project-filter {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) 220px 140px !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 18px 20px !important;
    background: #fff !important;
    border: 1px solid #e9e3ec !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(30, 25, 55, 0.05) !important;
    box-sizing: border-box !important;
}

.cc-project-filter input,
.cc-project-filter select {
    width: 100% !important;
    height: 46px !important;
    padding: 0 18px !important;
    background: #fff !important;
    border: 1px solid #d1d1d1 !important;
    border-radius: 12px !important;
    font-family: 'Google Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #555 !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: .2s ease !important;
}

.cc-project-filter input:focus,
.cc-project-filter select:focus {
    border-color: #9A1D31 !important;
    box-shadow: 0 0 0 3px rgba(154, 29, 49, .08) !important;
}

.cc-project-filter select {
    cursor: pointer !important;
}

.cc-project-filter .cc-news-filter__button {
    width: 100% !important;
    height: 46px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #9A1D31 !important;
    color: #fff !important;
    font-family: 'FC Vision', sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all .2s ease !important;
    box-shadow: 0 4px 12px rgba(154, 29, 49, 0.2) !important;
}

.cc-project-filter .cc-news-filter__button:hover {
    background: #7E1526 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(154, 29, 49, 0.3) !important;
}

@media (max-width: 1024px) {
    .cc-news-filter.cc-project-filter,
    .cc-project-filter {
        grid-template-columns: 1fr 180px 130px !important;
        padding: 16px 18px !important;
        gap: 10px !important;
    }
}

@media (max-width: 767px) {
    .cc-news-filter.cc-project-filter,
    .cc-project-filter {
        grid-template-columns: 1fr !important;
        padding: 14px !important;
        gap: 10px !important;
        border-radius: 16px !important;
    }

    .cc-project-filter input,
    .cc-project-filter select,
    .cc-project-filter .cc-news-filter__button {
        height: 44px !important;
        font-size: 14px !important;
    }
}


/* Footer Heading Links - Relate to Header Navigation */
.cc-footer-heading .elementor-heading-title a,
.cc-footer-heading a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.cc-footer-heading .elementor-heading-title a:hover,
.cc-footer-heading a:hover {
    color: #FFFFFF !important;
    opacity: 0.95;
}

/* ==========================================================================
   NCC Accessibility & Contrast Ratio Fix (WCAG 2.1 AA/AAA)
   ========================================================================== */

}

}

.elementor-element.elementor-element-2eec35d .elementor-button,
.elementor-element.elementor-element-2eec35d .elementor-button:visited,
.elementor-element.elementor-element-2eec35d .elementor-button:focus,
.elementor-element.elementor-element-2eec35d .elementor-button:active,
.elementor-element.elementor-element-2eec35d .elementor-button *,
.elementor-element.elementor-element-2eec35d .elementor-button-text {
    background-color: #FFFFFF !important;
    color: #1E2436 !important;
}

/* Mobile Header: Hide Thai and English Title (NIDA Consulting Center / ศูนย์บริการวิชาการ) */
@media (max-width: 1024px) {
    .elementor-391 .elementor-element.elementor-element-1d47a89,
    .elementor-element.elementor-element-1d47a89,
    .elementor-element-1d47a89 {
        display: none !important;
    }
}

/* SDG Colors: Background preserved exactly per UN guidelines; Text color high contrast (WCAG AA/AAA) */
.cc-nida-sdg-tags .cc-nida-sdg-tag {
    color: var(--cc-sdg-text-color, #FFFFFF) !important;
}
.cc-nida-sdg-tags .cc-sdg-tag-2,
.cc-nida-sdg-tags .cc-sdg-tag-6,
.cc-nida-sdg-tags .cc-sdg-tag-7,
.cc-nida-sdg-tags .cc-sdg-tag-9,
.cc-nida-sdg-tags .cc-sdg-tag-11,
.cc-nida-sdg-tags .cc-sdg-tag-12,
.cc-nida-sdg-tags .cc-sdg-tag-15,
.cc-nida-sdg-tags .cc-nida-sdg-tag[style*="#FD6925" i],
.cc-nida-sdg-tags .cc-nida-sdg-tag[style*="#FD9D24" i],
.cc-nida-sdg-tags .cc-nida-sdg-tag[style*="#BF8B2E" i],
.cc-nida-sdg-tags .cc-nida-sdg-tag[style*="#DDA63A" i],
.cc-nida-sdg-tags .cc-nida-sdg-tag[style*="#FCC30B" i],
.cc-nida-sdg-tags .cc-nida-sdg-tag[style*="#26BDE2" i],
.cc-nida-sdg-tags .cc-nida-sdg-tag[style*="#56C02B" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#FD6925" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#FD9D24" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#BF8B2E" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#DDA63A" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#FCC30B" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#26BDE2" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#56C02B" i],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-2/"],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-6/"],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-7/"],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-9/"],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-11/"],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-12/"],
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-15/"] {
    color: #111827 !important;
    font-weight: 600 !important;
}
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#FD6925" i]:hover,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#FD9D24" i]:hover,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#BF8B2E" i]:hover,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-9/"]:hover,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-11/"]:hover,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-12/"]:hover,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#FD6925" i]:focus-visible,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#FD9D24" i]:focus-visible,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[style*="#BF8B2E" i]:focus-visible,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-9/"]:focus-visible,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-11/"]:focus-visible,
.cc-nida-sdg-tags a.cc-nida-sdg-tag[href*="sdg-12/"]:focus-visible {
    color: #111827 !important;
}

/* ==========================================================================
   Accessibility Contrast Resolution (Preserves Original Visual Design 100%)
   ========================================================================== */

/* 1. Outline Buttons on Dark Navy Section (#23273D) */
.elementor-element.elementor-element-27fe97a .elementor-button,
.elementor-element.elementor-element-024f6f9 .elementor-button {
    background-color: #23273D !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.elementor-element.elementor-element-27fe97a .elementor-button *,
.elementor-element.elementor-element-024f6f9 .elementor-button * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* 2. Footer Base & Main Containers (#2D2A4A) */
footer.elementor-location-footer,
.elementor-430 .elementor-element.elementor-element-1cffbdf4,
.elementor-430 .cc-footer-main,
.elementor-430 .elementor-element-519b1e98,
.elementor-430 .elementor-element-42ec8192,
.elementor-430 .elementor-element-7cad6f56,
.elementor-430 .elementor-element-69786774,
.elementor-430 .elementor-element-371c0ebc {
    background-color: #2D2A4A !important;
}

/* 3. Footer Widgets Background (Provides explicit background for WCAG contrast resolver) */
.elementor-430 .elementor-element-42ec8192 .elementor-widget,
.elementor-430 .elementor-element-7cad6f56 .elementor-widget,
.elementor-430 .elementor-element-69786774 .elementor-widget,
.elementor-430 .elementor-element-371c0ebc .elementor-widget,
.elementor-430 .elementor-element-58bc3adb .elementor-widget {
    background-color: #2D2A4A !important;
}

/* 4. Footer Gold Headings & Links Color Enforcement */
.elementor-430 .elementor-element-5130936d .elementor-heading-title,
.elementor-430 .elementor-element-5130936d .elementor-heading-title a,
.elementor-430 .elementor-element-2b913a6e .elementor-heading-title,
.elementor-430 .elementor-element-2b913a6e .elementor-heading-title a,
.elementor-430 .elementor-element-14e1b699 .elementor-heading-title,
.elementor-430 .elementor-element-14e1b699 .elementor-heading-title a,
.elementor-430 .elementor-element-7cea24b2 .elementor-heading-title,
.elementor-430 .elementor-element-7cea24b2 .elementor-heading-title a,
.elementor-430 .elementor-element-2ba8e65f .elementor-heading-title,
.elementor-430 .elementor-element-2ba8e65f .elementor-heading-title a,
.elementor-430 .elementor-element-2856e10b .elementor-heading-title,
.elementor-430 .elementor-element-2856e10b .elementor-heading-title a {
    color: #FECA14 !important;
    background-color: #2D2A4A !important;
}
.elementor-430 .elementor-widget-text-editor a,
.elementor-430 .elementor-widget-text-editor p {
    color: #ECECEC !important;
    background-color: #2D2A4A !important;
}
.elementor-430 .elementor-widget-text-editor a:hover {
    color: #FFFFFF !important;
}

/* 5. Footer Contact Info (#2D2A4A) */
.elementor-430 .elementor-widget-icon-list,
.elementor-430 .elementor-widget-icon-list .elementor-icon-list-item,
.elementor-430 .elementor-widget-icon-list .elementor-icon-list-text {
    background-color: #2D2A4A !important;
    color: #EEEEEE !important;
}
.elementor-430 .elementor-widget-icon-list .elementor-icon-list-icon svg {
    fill: #EEEEEE !important;
}

/* 6. Footer Bottom Copyright Bar (#17152F) */
.elementor-430 .elementor-element.elementor-element-2968c174,
.elementor-430 .elementor-element-2968c174 .elementor-widget,
.elementor-430 .elementor-element-2968c174 p,
.elementor-430 .elementor-element-2968c174 a {
    background-color: #17152F !important;
    color: #EEEEEE !important;
}
.elementor-430 .elementor-element-2968c174 a:hover {
    color: #FECA14 !important;
}

/* ==========================================================================
   CC Legal & Sitemap Pages Styling (Privacy Policy, Terms, Sitemap)
   ========================================================================== */

.cc-legal-page,
.cc-sitemap-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 20px 60px 20px;
    font-family: "Google Sans", "FC Vision", -apple-system, sans-serif;
    color: #334155;
    line-height: 1.8;
}

.cc-legal-intro-card,
.cc-sitemap-intro-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 5px solid #9A1D31;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 36px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cc-legal-lead,
.cc-sitemap-lead {
    font-size: 16.5px;
    color: #1E293B;
    line-height: 1.75;
    margin: 0 0 10px 0;
}

.cc-legal-meta {
    font-size: 13.5px;
    color: #64748B;
    margin: 0;
}

.cc-legal-section {
    margin-bottom: 36px;
}

.cc-legal-section h2 {
    font-family: "FC Vision", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #1E2436;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F1F5F9;
}

.cc-legal-section p {
    font-size: 15.5px;
    color: #334155;
    margin-bottom: 14px;
}

.cc-legal-section ul {
    margin: 0 0 20px 24px;
    padding: 0;
}

.cc-legal-section li {
    font-size: 15px;
    color: #334155;
    margin-bottom: 10px;
    line-height: 1.7;
}

.cc-legal-section li strong {
    color: #0F172A;
}

.cc-legal-rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.cc-legal-right-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.cc-legal-right-item h3 {
    font-family: "FC Vision", sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: #9A1D31;
    margin: 0 0 6px 0;
}

.cc-legal-right-item p {
    font-size: 14px;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

.cc-legal-contact-box {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 24px 28px;
}

.cc-legal-contact-details p {
    margin: 4px 0;
    font-size: 15px;
}

.cc-legal-contact-details a {
    color: #9A1D31;
    font-weight: 500;
    text-decoration: underline;
}

/* Rank Math HTML Sitemap Modern Styling */
.rank-math-html-sitemap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    margin-top: 24px !important;
}

.rank-math-html-sitemap__section {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 26px 28px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.rank-math-html-sitemap__section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

.rank-math-html-sitemap__title {
    font-family: "FC Vision", sans-serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #1E2436 !important;
    margin: 0 0 18px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #9A1D31 !important;
    display: flex !important;
    align-items: center !important;
}

.rank-math-html-sitemap__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rank-math-html-sitemap__item {
    margin-bottom: 10px !important;
    position: relative !important;
    padding-left: 18px !important;
}

.rank-math-html-sitemap__item::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #9A1D31 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.rank-math-html-sitemap__link {
    font-size: 15px !important;
    color: #334155 !important;
    text-decoration: none !important;
    line-height: 1.6 !important;
    transition: color 0.15s ease !important;
    display: inline-block !important;
}

.rank-math-html-sitemap__link:hover {
    color: #9A1D31 !important;
    text-decoration: underline !important;
}

.rank-math-html-sitemap__list .rank-math-html-sitemap__list {
    margin-top: 8px !important;
    margin-left: 16px !important;
    border-left: 2px solid #E2E8F0 !important;
    padding-left: 12px !important;
}

@media (max-width: 768px) {
    .rank-math-html-sitemap {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .cc-legal-rights-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   HEADER: HIDE "ติดต่อเรา" FROM DESKTOP HORIZONTAL MENU
   (Desktop already has a dedicated "ติดต่อเรา" button widget)
========================================================= */
@media (min-width: 1025px) {
    .elementor-nav-menu--main .menu-item-1648,
    .elementor-nav-menu--main li.menu-item-1648 {
        display: none !important;
    }
}

/* =========================================================
   SCROLL TO TOP (to-top plugin) SVG ARROW FIX
   (Fixes missing Dashicons font on frontend)
========================================================= */
#to_top_scrollup {
    line-height: 1 !important;
}

#to_top_scrollup::before {
    content: "" !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    pointer-events: none !important;
}
