/*
Theme Name: Siriraj Postgraduate Education Theme
Theme URI: https://sirirajgrad.com/
Description: Standalone production-ready WordPress theme for Postgraduate Education Division, Faculty of Medicine Siriraj Hospital, Mahidol University. Built with Liquid Glass UI, Hero Carousel, 40+ Programs Directory, and Bilingual Support.
Author: Postgraduate Education Division, Faculty of Medicine Siriraj Hospital
Author URI: https://www.si.mahidol.ac.th/
Version: 2.7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siriraj-postgrad
Tags: medical, education, siriraj, full-width, bilingual, liquid-glass, responsive, elementor
*/

/* Core Theme Design System */
:root {
    --siriraj-navy: #002D62;
    --siriraj-dark: #001A38;
    --siriraj-darker: #001329;
    --siriraj-blue: #02529C;
    --siriraj-gold: #D4AF37;
    --siriraj-goldhover: #C59F2E;
    --siriraj-champagne: #FBF7EE;
}

/* ==========================================================================
   FOOLPROOF LOGO CONSTRAINT SYSTEM (FRONTEND & ELEMENTOR CANVAS)
   Prevents Mahidol emblem from blowing up to full raw image resolution
   ========================================================================== */
img[src*="logo-mu.png"],
.siriraj-logo-img,
#mainHeader img,
.site-header img,
.elementor-widget-image img[src*="logo-mu.png"] {
    width: 38px !important;
    height: 38px !important;
    max-height: 38px !important;
    max-width: 38px !important;
    object-fit: contain !important;
    display: inline-block !important;
    transition: none !important;
    transform: none !important;
}

#mainHeader .siriraj-brand-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    flex-shrink: 0 !important;
}

#mainHeader .brand-text-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mainHeader .brand-text-sub {
    display: block !important;
    font-size: 9.5px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#mainFooter img[src*="logo-mu.png"],
.site-footer img[src*="logo-mu.png"] {
    max-height: 52px !important;
    max-width: 52px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}


/* ==================== SIRIRAJ OFFICIAL DARK NAVY FOOTER GUARANTEE ==================== */
#mainFooter,
footer#mainFooter,
.site-footer,
footer#mainFooter.bg-\[\#001329\] {
    background-color: #001329 !important;
    color: #cbd5e1 !important;
    border-top: 4px solid #D4AF37 !important;
}

#mainFooter .text-white,
#mainFooter h4,
#mainFooter h5 {
    color: #ffffff !important;
}

#mainFooter .text-siriraj-gold {
    color: #D4AF37 !important;
}

#mainFooter .text-slate-300 {
    color: #cbd5e1 !important;
}

#mainFooter .text-slate-400 {
    color: #94a3b8 !important;
}

#mainFooter .text-slate-500 {
    color: #64748b !important;
}

#mainFooter a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
}

#mainFooter a:hover {
    color: #D4AF37 !important;
}

#mainFooter .border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

#mainFooter .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.liquid-glass-dark {
    background: #001A38 !important;
    background: linear-gradient(135deg, #001329 0%, #001A38 50%, #002D62 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 45px -10px rgba(0, 19, 41, 0.5) !important;
    color: #FFFFFF !important;
}

.liquid-glass-dark h1,
.liquid-glass-dark h2,
.liquid-glass-dark h3,
.liquid-glass-dark h4 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Hero Section Text Shadow Enhancement for High Contrast on Bright Backgrounds (Headings only) */
#home_hero h1,
#home_hero h2,
#home_hero > .e-con-boxed > p,
.hero-title-main,
.hero-title-small {
    text-shadow: 0 2px 10px rgba(0, 19, 41, 0.95), 0 4px 22px rgba(0, 0, 0, 0.85) !important;
}

/* Ensure ALL hero dock cards, icon boxes, text, subtitles, and badges have ZERO black blurry shadows or background pills */
#home_hero .elementor-widget-icon-box,
#home_hero .elementor-widget-icon-box *,
#home_hero .elementor-icon-box-wrapper,
#home_hero .elementor-icon-box-content,
#home_hero .elementor-icon-box-title,
#home_hero .elementor-icon-box-title *,
#home_hero .elementor-icon-box-description,
.ios-liquid-glass-dock-item,
.ios-liquid-glass-dock-item * {
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
}

#home_hero .elementor-icon-box-description,
.ios-liquid-glass-dock-item .elementor-icon-box-description,
#home_hero .elementor-widget-icon-box p {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #64748B !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
}

/* Subpage Breadcrumb Pill Top Clearance */
.siriraj-breadcrumb-pill {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Header Inline Search Bar Fixed Width - Never bumps adjacent buttons */
.header-inline-search-input {
    width: 105px !important;
    font-size: 12px !important;
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.header-inline-search-input:focus {
    width: 105px !important;
}

.liquid-glass-card {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 45, 98, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-card:hover {
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 20px 35px -8px rgba(0, 45, 98, 0.1);
    transform: translateY(-2px);
}

/* ==================== PERSONNEL CARD LOCKED RESPONSIBILITIES BOX ==================== */
.elementor-widget-text-editor:has(.fa-clipboard-list),
.elementor-widget-text-editor:has(.staff-duty-box) {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

.elementor-widget-text-editor:has(.fa-clipboard-list) .elementor-widget-container,
.elementor-widget-text-editor:has(.fa-clipboard-list) .elementor-widget-container > div,
.staff-text-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

.staff-duty-box,
.elementor-widget-text-editor:has(.fa-clipboard-list) div:has(> div > i.fa-clipboard-list),
.elementor-widget-text-editor:has(.fa-clipboard-list) div:has(> div:first-child > i.fa-clipboard-list) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 88px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.staff-duty-box p,
.elementor-widget-text-editor:has(.fa-clipboard-list) div:has(> div > i.fa-clipboard-list) p {
    flex-grow: 1 !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

.staff-contact-footer,
.elementor-widget-text-editor:has(.fa-clipboard-list) div:has(> div > i.fa-phone) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.persona-pill {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
}

.persona-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.persona-pill.active {
    background: #FFFFFF !important;
    color: #002D62 !important;
    font-weight: 700 !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), 0 0 12px rgba(212, 175, 55, 0.35) !important;
    transform: translateY(-1px);
}

/* Breadcrumb Reset to prevent Elementor Button Styles */
.breadcrumb-link,
nav[aria-label="Breadcrumb"] a,
nav[aria-label="Breadcrumb"] button,
.breadcrumb a,
.breadcrumb button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}
.breadcrumb-link:hover,
nav[aria-label="Breadcrumb"] a:hover,
nav[aria-label="Breadcrumb"] button:hover {
    color: #002D62 !important;
    background: transparent !important;
}

/* High Contrast Card Action Buttons */
.card-action-btn {
    background: #002D62 !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(0, 45, 98, 0.2) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: none !important;
}
.card-action-btn:hover {
    background: #02529C !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(2, 82, 156, 0.3) !important;
}
.card-action-btn span,
.card-action-btn i {
    color: #FFFFFF !important;
}

/* Single line smooth horizontal scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ==================== HERO KEN BURNS BACKGROUND SLIDER ==================== */
#home_hero {
    position: relative !important;
    overflow: hidden !important;
    min-height: 600px !important;
    background-color: #001329 !important;
}
#home_hero .elementor-widget-html,
#home_hero > div:has(#heroBgSliderContainer) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
#heroBgSliderContainer,
.hero-bg-slider-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
}
.hero-bg-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    opacity: 0;
    filter: brightness(0.88) !important;
    transition: opacity 2200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, opacity;
}
.hero-bg-slide.active {
    opacity: 1 !important;
    animation: heroKenBurns 8000ms cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}
.hero-bg-slide.fade-out {
    opacity: 0 !important;
    transform: scale(1.08) !important;
    transition: opacity 2200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}
@keyframes heroKenBurns {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.08); }
}
#home_hero > .e-con-boxed,
#home_hero > .elementor-element:not(.elementor-widget-html),
#home_hero .relative.z-10 {
    position: relative !important;
    z-index: 10 !important;
}

/* ==================== GLOBAL BUTTON OVERRIDE PROTECTION ==================== */
/* Prevent Elementor Global Kit 11 from forcibly styling theme buttons as dark navy squares */
body.elementor-kit-11 button.filter-btn,
body.elementor-kit-11 .filter-btn,
.filter-btn {
    background-color: #FFFFFF !important;
    color: #334155 !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 9999px !important;
    padding: 8px 20px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
}

body.elementor-kit-11 button.filter-btn:hover,
body.elementor-kit-11 .filter-btn:hover,
.filter-btn:hover {
    background-color: #F8FAFC !important;
    color: #002D62 !important;
    border-color: #94A3B8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 45, 98, 0.08) !important;
}

body.elementor-kit-11 button.filter-btn.active,
body.elementor-kit-11 .filter-btn.active,
.filter-btn.active {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border-color: #002D62 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0, 45, 98, 0.28) !important;
}

body.elementor-kit-11 button.filter-btn.active i,
body.elementor-kit-11 .filter-btn.active i,
.filter-btn.active i {
    color: #FBBF24 !important; /* Gold accent for active icon */
}

/* Quick Jump Pill Navigation */
body.elementor-kit-11 .quick-jump-pill,
.quick-jump-pill {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 9999px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.elementor-kit-11 .quick-jump-pill:hover,
.quick-jump-pill:hover {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border-color: #002D62 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.2) !important;
}

/* Expand All Button */
body.elementor-kit-11 button.expand-all-btn,
.expand-all-btn {
    background-color: #EBF3FA !important;
    color: #02529C !important;
    border: 1.5px solid #93C5FD !important;
    border-radius: 9999px !important;
    padding: 7px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.elementor-kit-11 button.expand-all-btn:hover,
.expand-all-btn:hover {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border-color: #002D62 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.25) !important;
}

body.elementor-kit-11 button.expand-all-btn:hover *,
.expand-all-btn:hover * {
    color: #FFFFFF !important;
}

/* Scholarship & Course Accordion Toggle Button */
body.elementor-kit-11 button.scholarship-toggle-btn,
body.elementor-kit-11 button.course-toggle-btn,
body.elementor-kit-11 .course-toggle-btn,
.scholarship-toggle-btn,
.course-toggle-btn {
    background: linear-gradient(135deg, #002D62 0%, #02529C 100%) !important;
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.elementor-kit-11 button.scholarship-toggle-btn:hover,
body.elementor-kit-11 button.course-toggle-btn:hover,
body.elementor-kit-11 .course-toggle-btn:hover,
.scholarship-toggle-btn:hover,
.course-toggle-btn:hover {
    background: linear-gradient(135deg, #02529C 0%, #0369A1 100%) !important;
    background-color: #02529C !important;
    color: #FFFFFF !important;
    border-color: #38BDF8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(2, 82, 156, 0.32) !important;
}

body.elementor-kit-11 button.scholarship-toggle-btn span,
body.elementor-kit-11 button.course-toggle-btn span,
body.elementor-kit-11 .course-toggle-btn span,
.scholarship-toggle-btn span,
.course-toggle-btn span {
    color: #FFFFFF !important;
}

body.elementor-kit-11 button.scholarship-toggle-btn i,
body.elementor-kit-11 button.course-toggle-btn i,
body.elementor-kit-11 .course-toggle-btn i,
.scholarship-toggle-btn i,
.course-toggle-btn i {
    color: #FBBF24 !important;
}

/* ==================== GLOBAL UNIFIED FONT ENFORCEMENT & DBLIMX ELIMINATION ==================== */
button, input[type="button"], input[type="submit"], .elementor-button, .elementor-kit-11 button, .elementor-kit-11 input[type="submit"] {
    font-family: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* ==================== CAMPUS LIFE BENTO GRID POLISH ==================== */
#students_grid > .e-con-inner {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
}
@media (max-width: 1024px) {
    #students_grid > .e-con-inner {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    #students_grid > .e-con-inner {
        grid-template-columns: 1fr !important;
    }
}
#students_grid > .e-con-inner > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #FFFFFF !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#students_grid > .e-con-inner > .e-con:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 30px rgba(0, 26, 56, 0.12) !important;
}
#students_grid .elementor-widget-image {
    width: 100% !important;
    margin-bottom: 0 !important;
    line-height: 0 !important;
}
#students_grid .elementor-widget-image img {
    width: 100% !important;
    height: 190px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

/* ==================== ABOUT US (PAGE 80) SYMMETRICAL EXECUTIVE & PERSONNEL GRIDS ==================== */
#executives [data-id="01693e3"],
#executives [data-id="0f67122"],
#executives .exec-assistants-grid,
#executives .e-con-inner > .e-con:nth-child(3) {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}
@media (max-width: 1200px) {
    #executives [data-id="01693e3"],
    #executives [data-id="0f67122"],
    #executives .exec-assistants-grid,
    #executives .e-con-inner > .e-con:nth-child(3) {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    #executives [data-id="01693e3"],
    #executives [data-id="0f67122"],
    #executives .exec-assistants-grid,
    #executives .e-con-inner > .e-con:nth-child(3) {
        grid-template-columns: 1fr !important;
    }
}

/* FIX: Override Elementor's 23.5% inline width so cards fill the entire 1fr grid column (approx 330px) */
#executives [data-id="01693e3"] > .e-con,
#executives [data-id="0f67122"] > .e-con,
#executives .exec-assistants-grid > .e-con,
#executives .e-con-inner > .e-con:nth-child(3) > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 24px 18px !important;
    border-radius: 22px !important;
    background: #FFFFFF !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
#executives [data-id="01693e3"] > .e-con:hover,
#executives [data-id="0f67122"] > .e-con:hover,
#executives .exec-assistants-grid > .e-con:hover,
#executives .e-con-inner > .e-con:nth-child(3) > .e-con:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(0, 45, 98, 0.12) !important;
}

/* Head of Postgraduate Education Card (คุณสุพาภรณ์ เฉลิมวุฒิ) - Perfectly Proportioned & Centered */
#personnel [data-id="supaporn_division_head"],
#personnel .elementor-element-supaporn_division_head,
[data-id="supaporn_division_head"],
.elementor-element-supaporn_division_head,
#personnel .exec-head-card,
.exec-head-card {
    max-width: 760px !important;
    width: 100% !important;
    margin: 0 auto 36px auto !important;
    align-self: center !important;
    padding: 22px 28px !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border-radius: 24px !important;
    border: 1.5px solid rgba(2, 82, 156, 0.22) !important;
    box-shadow: 0 10px 30px rgba(0, 45, 98, 0.08) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
#personnel [data-id="supaporn_division_head"]:hover,
#personnel .elementor-element-supaporn_division_head:hover,
[data-id="supaporn_division_head"]:hover,
.elementor-element-supaporn_division_head:hover,
#personnel .exec-head-card:hover,
.exec-head-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 36px rgba(0, 45, 98, 0.12) !important;
}
#personnel [data-id="supaporn_division_head"] .elementor-widget-image,
#personnel .elementor-element-supaporn_division_head .elementor-widget-image,
[data-id="supaporn_division_head"] .elementor-widget-image,
.elementor-element-supaporn_division_head .elementor-widget-image,
#personnel .exec-head-card .elementor-widget-image,
.exec-head-card .elementor-widget-image {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
#personnel [data-id="supaporn_division_head"] .elementor-widget-image img,
#personnel .elementor-element-supaporn_division_head .elementor-widget-image img,
[data-id="supaporn_division_head"] .elementor-widget-image img,
.elementor-element-supaporn_division_head .elementor-widget-image img,
#personnel .exec-head-card .elementor-widget-image img,
.exec-head-card .elementor-widget-image img {
    width: 190px !important;
    height: 240px !important;
    max-width: 190px !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 18px !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 8px 20px rgba(0, 45, 98, 0.12) !important;
    border: 2px solid #FFFFFF !important;
}
#personnel [data-id="supaporn_division_head"] [data-id="supa_col_th"],
#personnel [data-id="supaporn_division_head"] [data-id="supa_col_en"],
#personnel .elementor-element-supa_col_th,
#personnel .elementor-element-supa_col_en,
[data-id="supa_col_th"],
[data-id="supa_col_en"] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
}
@media (max-width: 768px) {
    #personnel [data-id="supaporn_division_head"],
    #personnel .elementor-element-supaporn_division_head,
    [data-id="supaporn_division_head"],
    .elementor-element-supaporn_division_head,
    #personnel .exec-head-card,
    .exec-head-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px 16px !important;
        gap: 18px !important;
        max-width: 100% !important;
    }
    #personnel [data-id="supaporn_division_head"] .elementor-widget-image,
    #personnel .elementor-element-supaporn_division_head .elementor-widget-image,
    [data-id="supaporn_division_head"] .elementor-widget-image,
    .elementor-element-supaporn_division_head .elementor-widget-image,
    #personnel .exec-head-card .elementor-widget-image,
    .exec-head-card .elementor-widget-image {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Executive Card Image: Prominent, elegant 200px x 245px portrait with smooth corners */
#executives .elementor-widget-image {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
}
#executives .elementor-widget-image img {
    width: 200px !important;
    height: 245px !important;
    max-width: 200px !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 20px !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 8px 20px -4px rgba(0, 45, 98, 0.12) !important;
    border: 2px solid #FFFFFF !important;
}

/* Executive Card Headings: Beautiful, wide, uncramped text */
#executives .elementor-widget-heading {
    width: 100% !important;
    text-align: center !important;
}
#executives .elementor-widget-heading .elementor-heading-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #001329 !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    margin-bottom: 6px !important;
}

/* ==================== 5 ADMINISTRATIVE UNITS IN PERSONNEL ==================== */
/* Guarantee 100% visibility - never allow reveal opacity trap on executive/personnel cards */
body:not(.elementor-editor-active) #personnel,
body:not(.elementor-editor-active) #personnel .e-con,
body:not(.elementor-editor-active) #personnel [id^="unit_"],
body:not(.elementor-editor-active) #personnel [id^="unit_"] *,
body:not(.elementor-editor-active) #executives,
body:not(.elementor-editor-active) #executives .e-con,
body:not(.elementor-editor-active) #executives [id^="exec_"],
body:not(.elementor-editor-active) #executives [id^="exec_"] * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure each of the 5 unit containers spans full width with generous spacing */
body:not(.elementor-editor-active) #personnel [id^="unit_"] {
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto 52px auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    box-sizing: border-box !important;
}

/* Unit Header Container (Title, Badge, Description) */
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con:first-child,
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con-inner > .e-con:first-child {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-bottom: 4px !important;
}

/* 5 Units Staff Grid - Symmetrical 3 Columns Desktop, 2 Tablet, 1 Mobile */
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con:last-child,
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con-inner > .e-con:last-child,
body:not(.elementor-editor-active) #personnel .unit-staff-grid,
body:not(.elementor-editor-active) #personnel .unit-staff-grid > .e-con-inner {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
@media (max-width: 1100px) {
    body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con:last-child,
    body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con-inner > .e-con:last-child,
    body:not(.elementor-editor-active) #personnel .unit-staff-grid,
    body:not(.elementor-editor-active) #personnel .unit-staff-grid > .e-con-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 640px) {
    body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con:last-child,
    body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con-inner > .e-con:last-child,
    body:not(.elementor-editor-active) #personnel .unit-staff-grid,
    body:not(.elementor-editor-active) #personnel .unit-staff-grid > .e-con-inner {
        grid-template-columns: 1fr !important;
    }
}

/* Individual Staff Card within the grid */
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con:last-child > .e-con,
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con-inner > .e-con:last-child > .e-con,
body:not(.elementor-editor-active) #personnel .unit-staff-grid > .e-con,
body:not(.elementor-editor-active) #personnel .unit-staff-grid > .e-con-inner > .e-con,
body:not(.elementor-editor-active) .unit-staff-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 24px 20px !important;
    border-radius: 20px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 45, 98, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 45, 98, 0.05) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con:last-child > .e-con:hover,
body:not(.elementor-editor-active) #personnel [id^="unit_"] > .e-con-inner > .e-con:last-child > .e-con:hover,
body:not(.elementor-editor-active) .unit-staff-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 28px rgba(0, 45, 98, 0.12) !important;
    border-color: rgba(2, 82, 156, 0.25) !important;
}
body:not(.elementor-editor-active) .unit-staff-card .elementor-widget-image,
body:not(.elementor-editor-active) #personnel .elementor-widget-image {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
}
body:not(.elementor-editor-active) .unit-staff-card .elementor-widget-image img,
body:not(.elementor-editor-active) #personnel .elementor-widget-image img {
    width: 175px !important;
    height: 215px !important;
    max-width: 175px !important;
    object-fit: cover !important;
    object-position: top center !important;
    border-radius: 18px !important;
    display: block !important;
    margin: 0 auto !important;
    box-shadow: 0 6px 18px -3px rgba(0, 45, 98, 0.1) !important;
    border: 2px solid #FFFFFF !important;
}

body:not(.elementor-editor-active) #personnel .elementor-widget-heading .elementor-heading-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #001329 !important;
    line-height: 1.35 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    margin-bottom: 6px !important;
}



#wfme {
    width: 100% !important;
}
#wfme .wfme-cards-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    width: 100% !important;
}
@media (max-width: 900px) {
    #wfme .wfme-cards-row {
        grid-template-columns: 1fr !important;
    }
}

#contact > .e-con-inner > .e-con:last-child > .e-con-inner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    width: 100% !important;
}
@media (max-width: 768px) {
    #contact > .e-con-inner > .e-con:last-child > .e-con-inner {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   GLOBAL ICON SIZING & RENDERING SAFEGUARD (ELEMENTOR & THEME TEMPLATES)
   Guarantees all FontAwesome & Elementor SVG icons display at correct sizes
   and never disappear or collapse to 0px / invisible fill.
   ========================================================================== */
/* Scoped specifically to Hero dock icon boxes */
.ios-liquid-glass-dock-item .elementor-icon-box-icon,
#home_hero .elementor-icon-box-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    min-height: 32px !important;
    margin-bottom: 6px !important;
}

.ios-liquid-glass-dock-item .elementor-icon-box-icon svg,
#home_hero .elementor-icon-box-icon svg {
    width: 30px !important;
    height: 30px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    fill: #02529C !important;
    color: #02529C !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Global SVG baseline - NEVER force 30px or blue color globally */
svg.e-font-icon-svg {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

/* Specific styling for 7 Hero Quick Action Icon Boxes */
.elementor-element-cbc5f9a .elementor-icon svg,
.elementor-element-4e7c31f .elementor-icon svg,
.elementor-element-d0fab01 .elementor-icon svg,
.elementor-element-7f3fadb .elementor-icon svg,
.elementor-element-d072b39 .elementor-icon svg,
.elementor-element-86ecf7f .elementor-icon svg,
.elementor-element-c3215fc .elementor-icon svg,
.elementor-element-e661349 .elementor-icon svg,
.elementor-element-0a4c5dc .elementor-icon svg,
.elementor-element-eb0b044 .elementor-icon svg,
.elementor-element-f597560 .elementor-icon svg {
    color: #02529C !important;
    fill: #02529C !important;
    width: 32px !important;
    height: 32px !important;
}

/* FontAwesome 6 icon baseline */
i.fa-solid, i.fa-regular, i.fa-brands, i.fas, i.far, i.fab {
    display: inline-block;
    line-height: 1;
}

/* ==========================================================================
   PERFECT THAI FONT VERTICAL ALIGNMENT & BUTTON LAYOUT SYSTEM
   Prevents text from floating/clipping against borders in buttons, badges, and cards
   ========================================================================== */
.elementor-button,
a.elementor-button,
button.elementor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.5 !important;
    padding: 12px 24px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    font-family: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.elementor-button-content-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1.5 !important;
    width: 100% !important;
}

.elementor-button-text {
    display: inline-block !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    font-family: inherit !important;
}

.elementor-button-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.elementor-button-icon svg,
.elementor-button-icon i {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 14px !important;
    height: 14px !important;
}

/* Live status dot in badges */
.live-status-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #34D399 !important;
    border-radius: 50% !important;
    margin-right: 4px !important;
    vertical-align: middle !important;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6) !important;
}

/* ==========================================================================
   ELEMENTOR NATIVE FOOTER (POST 141) POLISH & CONTRAST SYSTEM
   ========================================================================== */
#footer_wrapper {
    background-color: #001329 !important;
    border-top: 3px solid #D4AF37 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 20 !important;
}

#footer_wrapper .elementor-heading-title {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
}

/* Column titles */
#footer_wrapper h5.elementor-heading-title {
    color: #FBBF24 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 14px !important;
}

/* Icon list items */
#footer_wrapper .elementor-icon-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 5px 0 !important;
    transition: all 0.2s ease !important;
}

#footer_wrapper .elementor-icon-list-item a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    text-decoration: none !important;
}

#footer_wrapper .elementor-icon-list-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    flex-shrink: 0 !important;
}

#footer_wrapper .elementor-icon-list-icon svg {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    fill: #FBBF24 !important;
    transition: all 0.2s ease !important;
}

#footer_wrapper .elementor-icon-list-icon i {
    font-size: 10px !important;
    color: #FBBF24 !important;
    transition: all 0.2s ease !important;
}

#footer_wrapper .elementor-icon-list-text {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
    font-size: 13.5px !important;
    color: #CBD5E1 !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
}

#footer_wrapper .elementor-icon-list-item:hover .elementor-icon-list-text {
    color: #FFFFFF !important;
    transform: translateX(2px);
}

#footer_wrapper .elementor-icon-list-item:hover .elementor-icon-list-icon svg {
    fill: #FFFFFF !important;
}

#footer_wrapper .elementor-icon-list-item:hover .elementor-icon-list-icon i {
    color: #FFFFFF !important;
}

/* Social icons */
#footer_wrapper .elementor-social-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#footer_wrapper .elementor-social-icon:hover {
    background: #02529C !important;
    border-color: #38BDF8 !important;
    transform: translateY(-2px);
}

#footer_wrapper .elementor-social-icon svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    fill: #FFFFFF !important;
}

#footer_wrapper .elementor-social-icon i {
    font-size: 14px !important;
    color: #FFFFFF !important;
}

/* Bottom copyright & legal links */
#footer_wrapper .elementor-divider-separator {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#footer_wrapper div.elementor-heading-title {
    color: #94A3B8 !important;
    font-size: 12.5px !important;
}

#footer_wrapper div.elementor-heading-title a {
    color: #94A3B8 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#footer_wrapper div.elementor-heading-title a:hover {
    color: #FBBF24 !important;
}

/* WFME & AUN-QA Horizontal Banner System */
/* ==========================================================================
   HERO BACKGROUND SLIDER (100% EDGE-TO-EDGE KEN BURNS ANIMATION)
   ========================================================================== */
#home_hero {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#heroBgSliderContainer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.hero-bg-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================================
   ABOUT US - WFME & AUN-QA 2-COLUMN FULL-WIDTH CARDS
   ========================================================================== */
#wfme .e-con-inner,
#wfme > .e-con {
    width: 100% !important;
}

#wfme .e-con:has(> [data-widget_type="heading.default"]) {
    width: 100% !important;
}


/* ==================== BULLETPROOF HERO KEN BURNS (PURE CSS - ZERO DISAPPEARANCE) ==================== */
#home_hero {
    position: relative !important;
    background-color: #001329 !important;
    width: 100% !important;
    overflow-x: clip !important;
}
@media (max-width: 768px) {
    #home_hero {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
}
@media (min-width: 1024px) {
    #home_hero {
        min-height: 780px !important;
        overflow: hidden !important;
    }
}
#home_hero::before,
#home_hero::after {
    display: none !important;
    content: none !important;
    background: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
#home_hero > * {
    position: relative !important;
    z-index: 10 !important;
}
@keyframes heroKenBurnsSlow {
    0% { transform: scale(1.0) translate(0, 0); }
    50% { transform: scale(1.06) translate(-1%, -1%); }
    100% { transform: scale(1.0) translate(0, 0); }
}

/* ==================== GLOBAL FOOLPROOF ICON RENDERING & SIZING ==================== */
.elementor-widget-icon-box .elementor-icon,
.elementor-icon-box-icon,
.elementor-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 30px !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.elementor-widget-icon-box .elementor-icon svg,
.elementor-icon-box-icon svg,
.elementor-icon svg,
svg.e-font-icon-svg {
    width: 32px !important;
    height: 32px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    fill: currentColor !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.elementor-widget-icon-box .elementor-icon i,
.elementor-icon-box-icon i,
.elementor-icon i {
    font-size: 30px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Whole Card and Image Motion Dynamics */
/* Strictly Individual Leaf Hover: ONLY the exact element hovered lifts */
.elementor-widget-icon-box:hover .elementor-icon,
.elementor-widget-icon-box:hover .elementor-icon-box-icon {
    transform: scale(1.12) translateY(-2px) !important;
}
.elementor-widget-image img,
.e-con.e-child img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease !important;
}
.elementor-widget-image:hover img,
.e-con.e-child:hover img {
    transform: scale(1.04) !important;
}


/* ==================== 100% GRAND SEAMLESS DOCK & CARD ARCHITECTURE ==================== */
.elementor-widget-icon-box,
.elementor-widget-icon-box:hover,
.elementor-widget-icon-box:focus,
.elementor-widget-icon-box .elementor-icon-box-wrapper,
.elementor-widget-icon-box .elementor-icon-box-wrapper:hover,
.elementor-widget-icon-box .elementor-icon-box-content,
.elementor-widget-icon-box .elementor-icon-box-content:hover,
.elementor-widget-icon-box .elementor-icon-box-title,
.elementor-widget-icon-box .elementor-icon-box-description {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

/* ==================== THE INNER STUDIO STYLE LIQUID GLASS DOCK SHELF ==================== */
#home_hero_dock_shelf,
.home-hero-dock-shelf,
[data-id="home_hero_dock_shelf"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 36px !important;
}

.ios-liquid-glass-dock-item,
#home_hero_dock_shelf > div {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.62) 100%) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(2, 82, 156, 0.15) !important;
    border-radius: 22px !important;
    box-shadow: 
        0 8px 24px -4px rgba(0, 19, 41, 0.15),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px 0 rgba(0, 19, 41, 0.05) !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    padding: 16px 8px 14px 8px !important;
}

.ios-liquid-glass-dock-item::before,
#home_hero_dock_shelf > div::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -130% !important;
    width: 80% !important;
    height: 200% !important;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    transform: rotate(30deg) !important;
    pointer-events: none !important;
    transition: left 0.75s ease-in-out !important;
    z-index: 2 !important;
}

.ios-liquid-glass-dock-item:hover::before,
#home_hero_dock_shelf > div:hover::before {
    left: 150% !important;
}

.ios-liquid-glass-dock-item:hover,
#home_hero_dock_shelf > div:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 100%) !important;
    transform: translateY(-8px) scale(1.03) !important;
    border-color: rgba(212, 175, 55, 0.75) !important;
    box-shadow: 
        0 20px 42px -6px rgba(0, 19, 41, 0.28),
        0 0 20px rgba(212, 175, 55, 0.35),
        inset 0 1px 1px #FFFFFF !important;
}

.ios-liquid-glass-dock-item .elementor-icon-box-icon,
#home_hero_dock_shelf .elementor-icon-box-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 10px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(2, 82, 156, 0.08) 0%, rgba(212, 175, 55, 0.12) 100%) !important;
    border: 1px solid rgba(2, 82, 156, 0.12) !important;
    box-shadow: 0 4px 10px rgba(0, 19, 41, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ios-liquid-glass-dock-item:hover .elementor-icon-box-icon,
#home_hero_dock_shelf > div:hover .elementor-icon-box-icon {
    transform: scale(1.12) translateY(-2px) !important;
    background: linear-gradient(135deg, #02529C 0%, #002D62 100%) !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 8px 18px rgba(2, 82, 156, 0.35), 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

.ios-liquid-glass-dock-item .elementor-icon-box-icon i,
.ios-liquid-glass-dock-item .elementor-icon-box-icon svg,
#home_hero_dock_shelf .elementor-icon-box-icon i,
#home_hero_dock_shelf .elementor-icon-box-icon svg {
    color: #02529C !important;
    fill: #02529C !important;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    transition: all 0.3s ease !important;
}

.ios-liquid-glass-dock-item:hover .elementor-icon-box-icon i,
.ios-liquid-glass-dock-item:hover .elementor-icon-box-icon svg,
#home_hero_dock_shelf > div:hover .elementor-icon-box-icon i,
#home_hero_dock_shelf > div:hover .elementor-icon-box-icon svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

.ios-liquid-glass-dock-item .elementor-icon-box-title,
.ios-liquid-glass-dock-item .elementor-icon-box-title a,
#home_hero_dock_shelf .elementor-icon-box-title,
#home_hero_dock_shelf .elementor-icon-box-title a {
    color: #001329 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin: 0 0 3px 0 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    letter-spacing: -0.01em !important;
}

.ios-liquid-glass-dock-item:hover .elementor-icon-box-title,
.ios-liquid-glass-dock-item:hover .elementor-icon-box-title a,
#home_hero_dock_shelf > div:hover .elementor-icon-box-title,
#home_hero_dock_shelf > div:hover .elementor-icon-box-title a {
    color: #02529C !important;
}

.ios-liquid-glass-dock-item .elementor-icon-box-description,
#home_hero_dock_shelf .elementor-icon-box-description {
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: none !important;
    transition: color 0.2s ease !important;
}

.ios-liquid-glass-dock-item:hover .elementor-icon-box-description,
#home_hero_dock_shelf > div:hover .elementor-icon-box-description {
    color: #1E293B !important;
}

/* ==================== HERO DOCK ISOLATED HOVER (ONE BY ONE - NEVER WHOLE PANEL) ==================== */
#home_hero .e-con,
#home_hero .e-con-full,
#home_hero .e-con-boxed,
#home_hero .e-con-inner,
.e-con-boxed:has(.ios-liquid-glass-dock-item),
.e-con:has(.ios-liquid-glass-dock-item) {
    transform: none !important;
}

/* Individual Dock Card Hover */
.ios-liquid-glass-dock-item {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
    transform: translateY(0) !important;
    will-change: transform, box-shadow;
    position: relative !important;
    z-index: 10 !important;
}

.ios-liquid-glass-dock-item:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 16px 36px -4px rgba(0, 19, 41, 0.16), 0 0 0 1px rgba(212, 175, 55, 0.35) !important;
    border-color: rgba(2, 82, 156, 0.45) !important;
    z-index: 30 !important;
}

.ios-liquid-glass-dock-item:hover .elementor-icon,
.ios-liquid-glass-dock-item:hover .elementor-icon-box-icon {
    transform: scale(1.15) translateY(-2px) !important;
}

/* ==================== SIID INTERDEPARTMENTAL RICH CARD STYLING ==================== */
.siid-course-card {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}
.siid-course-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px -6px rgba(0, 45, 98, 0.14), 0 0 0 1px rgba(2, 82, 156, 0.15) !important;
}


/* ==================== 100% SITE-WIDE STRICT SINGLE-ITEM HOVER ISOLATION ==================== */
/* 1. Containers and rows NEVER lift or move together */
.e-con:not(.ios-liquid-glass-dock-item):not(.home-quick-access-card):not(.bento-hover-lift):not(.course-card-item):not(.siriraj-news-item),
.e-con-inner,
.e-con-boxed,
.e-con-full,
#deadlines,
#deadlines .e-con,
#deadlines .e-con-inner,
#students_grid,
#students_grid .e-con-inner {
    transform: none !important;
}

/* 2. Container hover NEVER lifts child icons collectively */
.e-con:hover .elementor-icon,
.e-con:hover .elementor-icon-box-icon,
.e-con-inner:hover .elementor-icon,
.e-con-inner:hover .elementor-icon-box-icon,
.e-child:hover .elementor-icon,
.e-child:hover .elementor-icon-box-icon {
    transform: none;
}

/* 3. ONLY the specific hovered item lifts */
.elementor-widget-icon-box:hover .elementor-icon,
.elementor-widget-icon-box:hover .elementor-icon-box-icon,
.ios-liquid-glass-dock-item:hover .elementor-icon,
.ios-liquid-glass-dock-item:hover .elementor-icon-box-icon {
    transform: scale(1.12) translateY(-2px) !important;
}

/* ==========================================================================
   ELEGANT MODERN MICRO-INTERACTIONS & DYNAMIC HOVER EFFECTS
   Guaranteed 100% Elementor Editor Safe (disabled in editor mode)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

@media (hover: hover) and (pointer: fine) {
    /* 1. Global Interactive Button Micro-Interactions */
    body:not(.elementor-editor-active) .elementor-button,
    body:not(.elementor-editor-active) .btn,
    body:not(.elementor-editor-active) a.elementor-button {
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease !important;
        position: relative;
        will-change: transform, box-shadow;
    }

    body:not(.elementor-editor-active) .elementor-button:hover,
    body:not(.elementor-editor-active) .btn:hover,
    body:not(.elementor-editor-active) a.elementor-button:hover {
        transform: translateY(-2.5px) !important;
        box-shadow: 0 10px 25px -5px rgba(2, 82, 156, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
        filter: brightness(1.04);
    }

    body:not(.elementor-editor-active) .elementor-button:active,
    body:not(.elementor-editor-active) .btn:active,
    body:not(.elementor-editor-active) a.elementor-button:active {
        transform: translateY(0px) scale(0.985) !important;
        box-shadow: 0 4px 12px rgba(2, 82, 156, 0.2) !important;
    }

    /* 2. Interactive Arrows Micro-nudge */
    body:not(.elementor-editor-active) a:hover i.fa-arrow-right,
    body:not(.elementor-editor-active) a:hover i.fa-chevron-right,
    body:not(.elementor-editor-active) .elementor-button:hover i.fa-arrow-right,
    body:not(.elementor-editor-active) .elementor-button:hover svg {
        transform: translateX(4px);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    body:not(.elementor-editor-active) a:hover i.fa-arrow-up-right-from-square {
        transform: translate(2px, -2px);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* 3. Bento & Feature Card Dynamic Depth Hover */
    body:not(.elementor-editor-active) .campus-facility-card,
    body:not(.elementor-editor-active) .clinic-pillar-card,
    body:not(.elementor-editor-active) .bento-hover-lift {
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
    }

    body:not(.elementor-editor-active) .campus-facility-card:hover,
    body:not(.elementor-editor-active) .clinic-pillar-card:hover,
    body:not(.elementor-editor-active) .bento-hover-lift:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 20px 35px -8px rgba(0, 45, 98, 0.14), 0 0 0 1px rgba(2, 82, 156, 0.12) !important;
    }

    /* 4. Quick Jump Pills & Filter Badges */
    .quick-jump-pill,
    .chula-nav-link {
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .quick-jump-pill:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 16px rgba(0, 45, 98, 0.08);
    }
}

/* ==========================================================================
   GLOBAL UNIFIED HERO BUTTON & ICON SYSTEM (CURRICULUM CLINIC STANDARD)
   ========================================================================== */
/* 1. BUTTON & PILL UNIFORMITY (Curriculum Clinic Standard across all pages) */
.elementor-widget-button a.elementor-button,
.elementor-button,
a.elementor-button,
.quick-jump-pill,
.hero-quick-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 20px !important;
    border-radius: 9999px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.elementor-widget-button a.elementor-button:hover,
.elementor-button:hover,
a.elementor-button:hover,
.quick-jump-pill:hover,
.hero-quick-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.elementor-button .elementor-button-content-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    height: 100% !important;
}

.elementor-button .elementor-button-icon,
a.elementor-button .elementor-button-icon,
.elementor-button-icon,
.btn .elementor-button-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    line-height: 1 !important;
}

/* STRICT ICON SIZING (15px vector glyph) */
.elementor-button .elementor-button-icon svg,
.elementor-button .elementor-button-icon i,
.elementor-button-icon svg,
.elementor-button-icon i,
.e-font-icon-svg,
a.elementor-button svg,
a.elementor-button i,
.elementor-button svg,
.elementor-button i,
.quick-jump-pill i,
.quick-jump-pill svg {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* 2. TOTAL ELIMINATION OF WHITE SQUARE ARTIFACTS / TILES IN SVG ICONS */
.elementor-button-icon svg rect,
.elementor-button svg rect,
.elementor-button-icon svg [fill="#fff" i],
.elementor-button-icon svg [fill="#ffffff" i],
.elementor-button-icon svg [fill="white" i],
.elementor-button svg [fill="#fff" i],
.elementor-button svg [fill="#ffffff" i],
.elementor-button svg [fill="white" i],
.elementor-button-icon svg [stroke="#fff" i],
.elementor-button-icon svg [stroke="#ffffff" i],
.elementor-button-icon svg [stroke="white" i] {
    fill: transparent !important;
    stroke: transparent !important;
    opacity: 0 !important;
}

/* Dynamic Current Color for SVG Paths so dark icons on yellow buttons and white icons on glass pills look gorgeous */
.elementor-button-icon svg path:not([fill="transparent"]):not([fill="none"]),
.elementor-button svg path:not([fill="transparent"]):not([fill="none"]) {
    fill: currentColor !important;
    opacity: 1 !important;
}

.elementor-button .elementor-button-text {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* ==========================================================================
   FOOLPROOF SIGNATURE SUBPAGE HERO SYSTEM
   Restores Deep Navy Gradient, 32px Radius, Padding, White Text & Flex Buttons
   ========================================================================== */
body:not(.home):not(.is-front-page):not(.page-id-8):not(.page-id-57) div[id$="_hero"]:not(#home_hero),
body:not(.home) #all_courses_hero,
body:not(.home) .all_courses_hero,
body:not(.home) #admissions_hero,
body:not(.home) .admissions_hero,
body:not(.home) #scholarships_hero,
body:not(.home) .scholarships_hero,
body:not(.home) #students_hero,
body:not(.home) .students_hero,
body:not(.home) #campus_hero,
body:not(.home) .campus_hero,
body:not(.home) .campus_life_hero,
body:not(.home) #downloads_hero,
body:not(.home) .downloads_hero,
body:not(.home) #about_hero,
body:not(.home) .about_hero,
body:not(.home) #academic_calendar_hero,
body:not(.home) #calendar_hero,
body:not(.home) #interdepartmental_hero,
body:not(.home) #interdept_hero,
body:not(.home) #selfcare_hero,
body:not(.home) #self_care_hero,
body:not(.home) .elementor-element-admissions_hero,
body:not(.home) .elementor-element-scholarships_hero,
body:not(.home) .elementor-element-students_hero,
body:not(.home) .elementor-element-campus_hero,
body:not(.home) .elementor-element-downloads_hero,
body:not(.home) .elementor-element-about_hero,
body:not(.home) .elementor-element-calendar_hero {
    background: #001A38 !important;
    background: linear-gradient(135deg, #001329 0%, #002D62 100%) !important;
    background-color: transparent !important;
    background-image: linear-gradient(135deg, #001329 0%, #002D62 100%) !important;
    border-radius: 32px !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0px !important;
    margin-bottom: 36px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 12px 35px -5px rgba(0, 19, 41, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

body:not(.home) div[id$="_hero"] h1,
body:not(.home) div[id$="_hero"] h1 .elementor-heading-title,
body:not(.home) div[id$="_hero"] .elementor-widget-heading:not(:first-child) h1,
body:not(.home) div[id$="_hero"] .elementor-widget-heading:not(:first-child) .elementor-heading-title,
body:not(.home) #admissions_hero h1,
body:not(.home) #scholarships_hero h1,
body:not(.home) #students_hero h1,
body:not(.home) #campus_hero h1,
body:not(.home) #downloads_hero h1,
body:not(.home) #about_hero h1,
body:not(.home) #calendar_hero h1,
body:not(.home) #all_courses_hero h1 {
    color: #FFFFFF !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 0px !important;
    margin-bottom: 12px !important;
    text-align: left !important;
    letter-spacing: -0.01em !important;
}

body:not(.home) div[id$="_hero"] p,
body:not(.home) div[id$="_hero"] .elementor-widget-text-editor p,
body:not(.home) div[id$="_hero"] .elementor-widget-text-editor,
body:not(.home) #admissions_hero p,
body:not(.home) #scholarships_hero p,
body:not(.home) #students_hero p,
body:not(.home) #campus_hero p,
body:not(.home) #downloads_hero p,
body:not(.home) #about_hero p,
body:not(.home) #calendar_hero p,
body:not(.home) #all_courses_hero p {
    color: #CBD5E1 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 880px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    text-align: left !important;
}

/* Hero Quick Navigation Pill Buttons Dock */
body:not(.home) div[id$="_hero"] > .e-con,
body:not(.home) div[id$="_hero"] .e-child[data-element_type="container"],
body:not(.home) div[id$="_hero"] .e-flex.e-child,
body:not(.home) #admissions_hero > .e-con,
body:not(.home) #scholarships_hero > .e-con,
body:not(.home) #students_hero > .e-con,
body:not(.home) #campus_hero > .e-con,
body:not(.home) #downloads_hero > .e-con,
body:not(.home) #about_hero > .e-con,
body:not(.home) #calendar_hero > .e-con,
body:not(.home) #all_courses_hero > .e-con {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 24px !important;
    margin-bottom: 0px !important;
    width: 100% !important;
}

body:not(.home) div[id$="_hero"] .elementor-widget-button,
body:not(.home) #admissions_hero .elementor-widget-button,
body:not(.home) #scholarships_hero .elementor-widget-button,
body:not(.home) #students_hero .elementor-widget-button,
body:not(.home) #campus_hero .elementor-widget-button,
body:not(.home) #downloads_hero .elementor-widget-button,
body:not(.home) #about_hero .elementor-widget-button,
body:not(.home) #calendar_hero .elementor-widget-button {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
}

body:not(.home) div[id$="_hero"] .elementor-button,
body:not(.home) #admissions_hero .elementor-button,
body:not(.home) #scholarships_hero .elementor-button,
body:not(.home) #students_hero .elementor-button,
body:not(.home) #campus_hero .elementor-button,
body:not(.home) #downloads_hero .elementor-button,
body:not(.home) #about_hero .elementor-button,
body:not(.home) #calendar_hero .elementor-button {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 999px !important;
    padding: 9px 20px !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

body:not(.home) div[id$="_hero"] .elementor-button:hover,
body:not(.home) #admissions_hero .elementor-button:hover,
body:not(.home) #scholarships_hero .elementor-button:hover,
body:not(.home) #students_hero .elementor-button:hover,
body:not(.home) #campus_hero .elementor-button:hover,
body:not(.home) #downloads_hero .elementor-button:hover,
body:not(.home) #about_hero .elementor-button:hover {
    background-color: rgba(255, 255, 255, 0.28) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
}

body:not(.home) div[id$="_hero"] .elementor-button-content-wrapper,
body:not(.home) #admissions_hero .elementor-button-content-wrapper {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
}

body:not(.home) div[id$="_hero"] .elementor-button .elementor-button-icon,
body:not(.home) #admissions_hero .elementor-button .elementor-button-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    margin: 0 !important;
}

body:not(.home) div[id$="_hero"] .elementor-button .elementor-button-icon svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
}

body:not(.home) div[id$="_hero"] .elementor-button .elementor-button-text,
body:not(.home) #admissions_hero .elementor-button .elementor-button-text {
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

body:not(.home) div[id$="_hero"] a.elementor-button[href*="graduate.mahidol.ac.th"],
body:not(.home) div[id$="_hero"] .elementor-element-b45f573 .elementor-button,
body:not(.home) div[id$="_hero"] .elementor-element-026621f .elementor-button,
body:not(.home) div[id$="_hero"] .elementor-button.btn-gold {
    background-color: #D4AF37 !important;
    color: #001329 !important;
    border-color: #D4AF37 !important;
}

body:not(.home) div[id$="_hero"] a.elementor-button[href*="graduate.mahidol.ac.th"]:hover,
body:not(.home) div[id$="_hero"] .elementor-element-b45f573 .elementor-button:hover,
body:not(.home) div[id$="_hero"] .elementor-element-026621f .elementor-button:hover,
body:not(.home) div[id$="_hero"] .elementor-button.btn-gold:hover {
    background-color: #C59F2E !important;
    color: #001329 !important;
    transform: translateY(-2px) !important;
}

body:not(.home) div[id$="_hero"] a.elementor-button[href*="graduate.mahidol.ac.th"] .elementor-button-icon,
body:not(.home) div[id$="_hero"] a.elementor-button[href*="graduate.mahidol.ac.th"] .elementor-button-text,
body:not(.home) div[id$="_hero"] .elementor-element-b45f573 .elementor-button-icon,
body:not(.home) div[id$="_hero"] .elementor-element-b45f573 .elementor-button-text {
    color: #001329 !important;
    fill: #001329 !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    body:not(.home):not(.is-front-page):not(.page-id-8):not(.page-id-57) div[id$="_hero"]:not(#home_hero),
    body:not(.home) #all_courses_hero,
    body:not(.home) .all_courses_hero,
    body:not(.home) #admissions_hero,
    body:not(.home) .admissions_hero,
    body:not(.home) #scholarships_hero,
    body:not(.home) #students_hero,
    body:not(.home) #campus_hero,
    body:not(.home) #downloads_hero,
    body:not(.home) #about_hero,
    body:not(.home) #self_care_hero,
    body:not(.home) .campus_life_hero {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-radius: 24px !important;
    }
    body:not(.home) div[id$="_hero"] h1 {
        font-size: 26px !important;
    }
}




/* ========================================================
   GLOBAL GRADIENTS & ARBITRARY COLOR UTILITIES (FIX TEXT READABILITY)
   ======================================================== */
.bg-siriraj-gradient,
#consultation-contact,
.mapc-hero-banner {
    background: linear-gradient(135deg, #001A38 0%, #002D62 50%, #02529C 100%) !important;
    color: #FFFFFF !important;
}

.bg-\[\#002D62\] { background-color: #002D62 !important; }
.hover\:bg-\[\#002D62\]:hover { background-color: #002D62 !important; }
.group:hover .group-hover\:bg-\[\#002D62\] { background-color: #002D62 !important; }

.bg-\[\#02529C\] { background-color: #02529C !important; }
.hover\:bg-\[\#02529C\]:hover { background-color: #02529C !important; }
.group:hover .group-hover\:bg-\[\#02529C\] { background-color: #02529C !important; }

.bg-\[\#001A38\] { background-color: #001A38 !important; }
.hover\:bg-\[\#001A38\]:hover { background-color: #001A38 !important; }
.group:hover .group-hover\:bg-\[\#001A38\] { background-color: #001A38 !important; }

.bg-\[\#001329\] { background-color: #001329 !important; }
.hover\:bg-\[\#001329\]:hover { background-color: #001329 !important; }
.group:hover .group-hover\:bg-\[\#001329\] { background-color: #001329 !important; }

.bg-\[\#001E42\] { background-color: #001E42 !important; }
.hover\:bg-\[\#001E42\]:hover { background-color: #001E42 !important; }
.group:hover .group-hover\:bg-\[\#001E42\] { background-color: #001E42 !important; }

.bg-\[\#D97706\] { background-color: #D97706 !important; }
.hover\:bg-\[\#D97706\]:hover { background-color: #D97706 !important; }
.group:hover .group-hover\:bg-\[\#D97706\] { background-color: #D97706 !important; }

.bg-\[\#10B981\] { background-color: #10B981 !important; }
.hover\:bg-\[\#10B981\]:hover { background-color: #10B981 !important; }
.group:hover .group-hover\:bg-\[\#10B981\] { background-color: #10B981 !important; }
.bg-amber-500 { background-color: #F59E0B !important; }
.bg-emerald-600 { background-color: #059669 !important; }

/* Liquid Glass Poster Utilities */
.liquid-glass-poster-wrap {
    position: relative;
    overflow: hidden;
    background-color: #001329 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.liquid-glass-poster-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.65) saturate(1.25);
    transform: scale(1.18);
    pointer-events: none;
}

.liquid-glass-poster-img {
    position: relative;
    z-index: 5;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    object-fit: contain !important;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}


/* ==================== HOMEPAGE EDGE-TO-EDGE FULL WIDTH ==================== */
body.home #primary,
body.home .site-main,
body.home .elementor,
body.page-id-8 #primary,
body.page-id-8 .site-main,
body.page-id-8 .elementor,
body.page-id-57 #primary,
body.page-id-57 .site-main,
body.page-id-57 .elementor,
body div#home_hero,
#home_hero {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}


/* ==================== HOMEPAGE HERO & DOCK 7-CARD SINGLE ROW GUARANTEE ==================== */
#home_hero,
div#home_hero,
body #home_hero,
body.home #home_hero,
body.page-id-8 #home_hero,
body.page-id-57 #home_hero,
body:not(.home) #home_hero {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}

body.home #primary,
body.home .site-main,
body.home .elementor,
body.page-id-8 #primary,
body.page-id-8 .site-main,
body.page-id-8 .elementor,
body.page-id-57 #primary,
body.page-id-57 .site-main,
body.page-id-57 .elementor {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 1024px) {
    .home-hero-dock-shelf,
    #home_hero_dock_shelf,
    div#home_hero_dock_shelf,
    #home_hero .home-hero-dock-shelf {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 1400px !important;
        margin: 40px auto 0 auto !important;
        align-items: stretch !important;
    }

    .home-hero-dock-shelf > div,
    #home_hero_dock_shelf > div,
    .ios-liquid-glass-dock-item {
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media (max-width: 639px) {
    .home-hero-dock-shelf,
    #home_hero_dock_shelf {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 30px auto 0 auto !important;
    }
    .home-hero-dock-shelf > div,
    #home_hero_dock_shelf > div,
    .ios-liquid-glass-dock-item {
        width: 100% !important;
        min-width: 0 !important;
    }
    .home-hero-dock-shelf > div:last-child:nth-child(odd),
    #home_hero_dock_shelf > div:last-child:nth-child(odd) {
        grid-column: span 2 !important;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .home-hero-dock-shelf,
    #home_hero_dock_shelf {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 32px auto 0 auto !important;
    }
    .home-hero-dock-shelf > div,
    #home_hero_dock_shelf > div,
    .ios-liquid-glass-dock-item {
        width: 100% !important;
        min-width: 0 !important;
    }
}


/* ==================== HOMEPAGE HERO CONTENT CONTAINER GUARANTEE ==================== */
#home_hero > .e-con,
#home_hero > .e-con-boxed,
#home_hero > .e-con-inner,
#home_hero > div:not(.elementor-widget-html):not(#heroKenBurnsSlider):not(.hero-kenburns-wrapper) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

#home_hero .elementor-widget-heading,
#home_hero .elementor-widget-text-editor {
    width: 100% !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}


/* ==================== TAILWIND ARBITRARY VALUE POLYFILLS & HIGH CONTRAST GUARANTEE ==================== */
/* Brand Navy & Blues */
footer#mainFooter.bg-\[\#001329\] { background-color: #001329 !important; }
.bg-\[\#001833\] { background-color: #001833 !important; }
.bg-\[\#001A38\] { background-color: #001A38 !important; }
.bg-\[\#001E42\] { background-color: #001E42 !important; }
.bg-\[\#002D62\], .bg-siriraj-navy { background-color: #002D62 !important; }
.bg-\[\#02529C\], .bg-siriraj-blue { background-color: #02529C !important; }
.bg-\[\#0284C7\] { background-color: #0284C7 !important; }
.bg-\[\#064E3B\] { background-color: #064E3B !important; }
.bg-\[\#059669\] { background-color: #059669 !important; }
.bg-\[\#06C755\] { background-color: #06C755 !important; }
.bg-\[\#1877F2\] { background-color: #1877F2 !important; }
.bg-\[\#4338CA\] { background-color: #4338CA !important; }
.bg-\[\#B45309\] { background-color: #B45309 !important; }
.bg-\[\#D97706\] { background-color: #D97706 !important; }
.bg-\[\#F59E0B\] { background-color: #F59E0B !important; }
.bg-\[\#FBBF24\] { background-color: #FBBF24 !important; }
.bg-\[\#E11D48\] { background-color: #E11D48 !important; }
.bg-\[\#F0F9FF\] { background-color: #F0F9FF !important; }
.bg-\[\#F8FAFC\] { background-color: #F8FAFC !important; }

/* Text colors */
.text-\[\#001329\] { color: #001329 !important; }
.text-\[\#001A38\] { color: #001A38 !important; }
.text-\[\#002D62\], .text-siriraj-navy { color: #002D62 !important; }
.text-\[\#02529C\], .text-siriraj-blue { color: #02529C !important; }
.text-\[\#0284C7\] { color: #0284C7 !important; }
.text-\[\#059669\] { color: #059669 !important; }
.text-\[\#06C755\] { color: #06C755 !important; }
.text-\[\#1877F2\] { color: #1877F2 !important; }
.text-\[\#D97706\] { color: #D97706 !important; }
.text-\[\#F59E0B\] { color: #F59E0B !important; }
.text-\[\#FBBF24\] { color: #FBBF24 !important; }

/* Borders */
.border-\[\#002D62\] { border-color: #002D62 !important; }
.border-\[\#02529C\] { border-color: #02529C !important; }
.border-\[\#BAE6FD\] { border-color: #BAE6FD !important; }
.border-\[\#D97706\] { border-color: #D97706 !important; }
.border-\[\#059669\] { border-color: #059669 !important; }

/* Hover states */
.hover\:bg-\[\#02529C\]:hover { background-color: #02529C !important; }
.hover\:bg-\[\#002D62\]:hover { background-color: #002D62 !important; }
.hover\:bg-\[\#047857\]:hover { background-color: #047857 !important; }
.hover\:text-\[\#002D62\]:hover { color: #002D62 !important; }
.hover\:text-\[\#02529C\]:hover { color: #02529C !important; }

/* Font size polyfills */
.text-\[10px\] { font-size: 10px !important; }
.text-\[10\.5px\] { font-size: 10.5px !important; }
.text-\[11px\] { font-size: 11px !important; }
.text-\[11\.5px\] { font-size: 11.5px !important; }
.text-\[12\.5px\] { font-size: 12.5px !important; }
.text-\[13px\] { font-size: 13px !important; }
.text-\[15px\] { font-size: 15px !important; }
.text-\[22px\] { font-size: 22px !important; }

/* Global High Contrast Guarantee for Modals & Badges */
#admissionGuidanceModal {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 19, 41, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
}

#admissionGuidanceModalCard {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    width: 100% !important;
    max-width: 580px !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 45, 98, 0.12) !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 10000000 !important;
    margin: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

#modalPrimaryBtn {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 45, 98, 0.25) !important;
    transition: all 0.2s ease !important;
}
#modalPrimaryBtn:hover {
    background-color: #02529C !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* High-Contrast Guidance Modal Bulletproof Polyfill */
#admissionGuidanceModal #modalPrimaryBtn {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
}
#admissionGuidanceModal #modalPrimaryBtn * {
    color: #FFFFFF !important;
}
#admissionGuidanceModal #modalPrimaryBtn:hover {
    filter: brightness(1.15) !important;
}
#admissionGuidanceModal #modalExternalBtn {
    border: 1.5px solid #CBD5E1 !important;
}
#admissionGuidanceModal #modalExternalBtn * {
    color: inherit !important;
}
#admissionGuidanceModal #modalIconBox i {
    color: inherit !important;
}



/* ==================== THE INNER STUDIO LIQUID GLASSMORPHISM HIGH-SPECIFICITY OVERRIDES ==================== */

/* ==================== THE INNER STUDIO REFINED LIQUID GLASSMORPHISM DOCK SHELF ==================== */
html body #home_hero_dock_shelf,
html body .home-hero-dock-shelf,
html body [data-id="home_hero_dock_shelf"] {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

html body .ios-liquid-glass-dock-item {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(2, 82, 156, 0.12) !important;
    border-radius: 22px !important;
    box-shadow: 
        0 10px 25px -4px rgba(0, 19, 41, 0.12),
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px 0 rgba(0, 19, 41, 0.05) !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 18px 8px 16px 8px !important;
}

html body .ios-liquid-glass-dock-item::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -130% !important;
    width: 70% !important;
    height: 200% !important;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    transform: rotate(30deg) !important;
    pointer-events: none !important;
    transition: left 0.75s ease-in-out !important;
    z-index: 2 !important;
}

html body .ios-liquid-glass-dock-item:hover::before {
    left: 150% !important;
}

html body .ios-liquid-glass-dock-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    transform: translateY(-7px) scale(1.025) !important;
    border-color: rgba(212, 175, 55, 0.75) !important;
    box-shadow: 
        0 20px 40px -6px rgba(0, 19, 41, 0.22),
        0 0 16px rgba(212, 175, 55, 0.30),
        inset 0 1px 1px #FFFFFF !important;
}

html body .ios-liquid-glass-dock-item .elementor-icon-box-icon {
    width: 44px !important;
    height: 44px !important;
    margin: 0 auto 10px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(2, 82, 156, 0.08) 0%, rgba(212, 175, 55, 0.12) 100%) !important;
    border: 1px solid rgba(2, 82, 156, 0.12) !important;
    box-shadow: 0 4px 10px rgba(0, 19, 41, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html body .ios-liquid-glass-dock-item:hover .elementor-icon-box-icon {
    transform: scale(1.12) translateY(-2px) !important;
    background: linear-gradient(135deg, #02529C 0%, #002D62 100%) !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 8px 18px rgba(2, 82, 156, 0.35), 0 0 12px rgba(212, 175, 55, 0.3) !important;
}

html body .ios-liquid-glass-dock-item .elementor-icon-box-icon i,
html body .ios-liquid-glass-dock-item .elementor-icon-box-icon svg {
    color: #02529C !important;
    fill: #02529C !important;
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    transition: all 0.3s ease !important;
}

html body .ios-liquid-glass-dock-item:hover .elementor-icon-box-icon i,
html body .ios-liquid-glass-dock-item:hover .elementor-icon-box-icon svg {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

html body .ios-liquid-glass-dock-item .elementor-icon-box-title,
html body .ios-liquid-glass-dock-item .elementor-icon-box-title a {
    color: #001329 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin: 0 0 3px 0 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    letter-spacing: -0.01em !important;
}

html body .ios-liquid-glass-dock-item:hover .elementor-icon-box-title,
html body .ios-liquid-glass-dock-item:hover .elementor-icon-box-title a {
    color: #02529C !important;
}

html body .ios-liquid-glass-dock-item .elementor-icon-box-description {
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: none !important;
    transition: color 0.2s ease !important;
}

html body .ios-liquid-glass-dock-item:hover .elementor-icon-box-description {
    color: #1E293B !important;
}


/* ==========================================================================
   UNIFIED SITE-WIDE THEME: BUTTONS, CARDS, PILLS & ZERO-DROWN HOVER SYSTEM
   (Legacy duplicate .siriraj-card-action-btn block removed; v2.7.0 engine active at bottom)
   ========================================================================== */

/* 2. Site-wide Group-Hover Text Fix (Zero Drowned Text) */
.group:hover .group-hover\:bg-\[\#002D62\],
.group:hover .group-hover\:bg-\[\#02529C\] {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
}

.group:hover .group-hover\:bg-\[\#002D62\] *,
.group:hover .group-hover\:bg-\[\#02529C\] *,
.group:hover .group-hover\:text-white,
.group:hover .group-hover\:text-white * {
    color: #FFFFFF !important;
}

/* 3. Quick-Jump Navigation Pills: Standardized across All Pages */
.quick-jump-pill {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 9999px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.quick-jump-pill:hover {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border-color: #002D62 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 45, 98, 0.22) !important;
}

.quick-jump-pill:hover * {
    color: #FFFFFF !important;
}

/* Sai-Jai Clinic Pill: Signature Rose with Guaranteed 100% White Text & Icon */
.quick-jump-pill[href*="self-care"],
.quick-jump-pill[href*="self_care"],
.quick-jump-pill[href*="care"] {
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%) !important;
    background-color: #E11D48 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35) !important;
}

.quick-jump-pill[href*="self-care"] *,
.quick-jump-pill[href*="self_care"] *,
.quick-jump-pill[href*="care"] * {
    color: #FFFFFF !important;
}

.quick-jump-pill[href*="self-care"]:hover,
.quick-jump-pill[href*="self_care"]:hover,
.quick-jump-pill[href*="care"]:hover {
    background: #BE123C !important;
    background-color: #BE123C !important;
    color: #FFFFFF !important;
    border-color: #9F1239 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5) !important;
}

.quick-jump-pill[href*="self-care"]:hover *,
.quick-jump-pill[href*="self_care"]:hover *,
.quick-jump-pill[href*="care"]:hover * {
    color: #FFFFFF !important;
}

/* Resident Hub Pill: Royal Gold */
.quick-jump-pill[href*="resident-fellow-hub"],
.quick-jump-pill[href*="resident-hub"] {
    background-color: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #FCD34D !important;
    font-weight: 700 !important;
}

.quick-jump-pill[href*="resident-fellow-hub"] i,
.quick-jump-pill[href*="resident-hub"] i {
    color: #D97706 !important;
}

.quick-jump-pill[href*="resident-fellow-hub"]:hover,
.quick-jump-pill[href*="resident-hub"]:hover {
    background-color: #F59E0B !important;
    color: #001329 !important;
    border-color: #D97706 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3) !important;
}

.quick-jump-pill[href*="resident-fellow-hub"]:hover *,
.quick-jump-pill[href*="resident-hub"]:hover * {
    color: #001329 !important;
}


/* ==========================================================================
   INTERDEPARTMENTAL COURSES (SIID 501 - SIID 507) BADGE CONTRAST SYSTEM
   ========================================================================== */
.siid-course-card .elementor-widget-heading:nth-child(1) .elementor-heading-title,
[id^="siid"] .elementor-widget-heading:nth-child(1) .elementor-heading-title {
    background: #002D62 !important;
    color: #FFFFFF !important;
    border-radius: 9999px !important;
    padding: 5px 14px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 45, 98, 0.2) !important;
}

.siid-course-card .elementor-widget-heading:nth-child(2) .elementor-heading-title,
[id^="siid"] .elementor-widget-heading:nth-child(2) .elementor-heading-title {
    background: #EFF6FF !important;
    color: #02529C !important;
    border: 1.5px solid #BFDBFE !important;
    border-radius: 9999px !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.siid-course-card .elementor-widget-heading:nth-child(3) .elementor-heading-title,
[id^="siid"] .elementor-widget-heading:nth-child(3) .elementor-heading-title {
    background: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1.5px solid #A7F3D0 !important;
    border-radius: 9999px !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}


/* =========================================================================
   WCAG 2.1 AA ACCESSIBILITY & CONTRAST ENHANCEMENTS (AUDIT REPORT COMPLIANT)
   ========================================================================= */

/* 1. Skip to main content link for keyboard & screen readers */
.skip-link {
    position: absolute !important;
    top: -999px !important;
    left: 16px !important;
    background: #002D62 !important;
    color: #FFFFFF !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 45, 98, 0.4) !important;
    z-index: 999999 !important;
    text-decoration: none !important;
    transition: top 0.2s ease-in-out !important;
}
.skip-link:focus {
    top: 16px !important;
    outline: 3px solid #FBBF24 !important;
}

/* 2. Reduced Motion Support for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* 3. Base Body Font Size >= 14px for Thai Readability */
body {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* 4. Single Course Portal Navbar Spacing Guard (Fix top title submersion under fixed navbar) */
.siriraj-course-portal {
    padding-top: 104px !important;
}
@media (min-width: 1024px) {
    .siriraj-course-portal {
        padding-top: 114px !important;
    }
}

/* 5. Universal Contrast Guard for Buttons and Badges across entire website */
.btn-primary,
button.btn-primary,
a.btn-primary {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background-color: #02529C !important;
    color: #FFFFFF !important;
}

/* HIGH CONTRAST & ZERO DROWNED TEXT FOR CARD ACTION BUTTONS */
.siriraj-card-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #002D62 0%, #02529C 100%) !important;
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.siriraj-card-action-btn span,
.siriraj-card-action-btn * {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.siriraj-card-action-btn i {
    color: #FBBF24 !important;
    font-size: 13px !important;
    transition: transform 0.2s ease !important;
}

.siriraj-card-action-btn:hover,
.group:hover .siriraj-card-action-btn {
    background: linear-gradient(135deg, #02529C 0%, #0369A1 100%) !important;
    background-color: #02529C !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 8px 22px rgba(2, 82, 156, 0.35) !important;
    transform: translateY(-2px) !important;
}

.siriraj-card-action-btn:hover span,
.group:hover .siriraj-card-action-btn span {
    color: #FFFFFF !important;
}

.siriraj-card-action-btn:hover i,
.group:hover .siriraj-card-action-btn i {
    color: #FDE047 !important;
    transform: translateX(5px) !important;
}

/* HIGH-CONTRAST CARD SYSTEM (NO MORE SUNKEN CARDS OR DROWNED BORDERS) */
.high-contrast-card,
.campus-facility-card,
.course-frame {
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.high-contrast-card:hover,
.campus-facility-card:hover,
.course-frame:hover {
    border-color: #02529C !important;
    box-shadow: 0 14px 28px -4px rgba(2, 82, 156, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-3px) !important;
}

/* VIBRANT STEP BADGES & CALLOUTS */
.step-badge-1 { background: #DBEAFE !important; color: #1E40AF !important; border: 1.5px solid #93C5FD !important; }
.step-badge-2 { background: #FEF3C7 !important; color: #92400E !important; border: 1.5px solid #FCD34D !important; }
.step-badge-3 { background: #D1FAE5 !important; color: #065F46 !important; border: 1.5px solid #6EE7B7 !important; }
.step-badge-4 { background: #E0E7FF !important; color: #3730A3 !important; border: 1.5px solid #A5B4FC !important; }

/* FIX FADED TEXT GLOBALLY */
.text-slate-500 {
    color: #475569 !important; /* darker than standard 64748b */
}
.text-slate-600 {
    color: #334155 !important;
}
.text-slate-700 {
    color: #1E293B !important;
}


/* ==========================================================================
   SIRIRAJ HIGH-CONTRAST & ANTI-SUNKEN VISUAL ENGINE (V2.5.0)
   Fixes washed-out whites, see-through tags, drowned borders & sunken icons
   ========================================================================== */

/* 1. CAMPUS DORMITORY & FACILITY PHOTO TAGS (ZERO SEE-THROUGH / CRISP CONTRAST) */
.campus-badge-tag {
    background: #FFFFFF !important;
    color: #020617 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: 0.02em !important;
}

/* 2. CARD ACTION BUTTON SYSTEM (HIGH-CONTRAST SOLID GRADIENT & NO MORE SUNKEN TEXT) */
.siriraj-card-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #002D62 0%, #02529C 100%) !important;
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 45, 98, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.siriraj-card-action-btn span,
.siriraj-card-action-btn strong,
.siriraj-card-action-btn * {
    color: #FFFFFF !important;
    font-weight: 800 !important;
}

.siriraj-card-action-btn i {
    color: #FBBF24 !important;
    font-size: 13px !important;
    transition: transform 0.2s ease !important;
}

.siriraj-card-action-btn:hover,
.group:hover .siriraj-card-action-btn {
    background: linear-gradient(135deg, #02529C 0%, #0369A1 100%) !important;
    background-color: #02529C !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 8px 22px rgba(2, 82, 156, 0.35) !important;
    transform: translateY(-2px) !important;
}

.siriraj-card-action-btn:hover span,
.group:hover .siriraj-card-action-btn span {
    color: #FFFFFF !important;
}

.siriraj-card-action-btn:hover i,
.group:hover .siriraj-card-action-btn i {
    color: #FDE047 !important;
    transform: translateX(5px) !important;
}

/* 3. QUICK JUMP PILLS & FILTER BADGES (MAX READABILITY) */
.quick-jump-pill {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 9999px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
}

.quick-jump-pill:hover {
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border-color: #002D62 !important;
    box-shadow: 0 6px 16px rgba(0, 45, 98, 0.25) !important;
    transform: translateY(-2px) !important;
}

.quick-jump-pill:hover * {
    color: #FFFFFF !important;
}

/* 4. HIGH CONTRAST CARDS & ACCORDIONS */
.campus-facility-card,
.course-frame,
.download-item-card {
    border-color: #CBD5E1 !important;
    border-width: 1.5px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

.campus-facility-card:hover,
.course-frame:hover,
.download-item-card:hover {
    border-color: #02529C !important;
    box-shadow: 0 12px 28px rgba(2, 82, 156, 0.16) !important;
}

/* 5. ALL FONTAWESOME ICONS HIGH OPACITY */
i.fa-solid, i.fa-regular, i.fa-brands {
    opacity: 1 !important;
}

/* 6. ZERO PALE TEXT: BOOST SLATE CONTRAST */
.text-slate-400 {
    color: #64748B !important;
}
.text-slate-500 {
    color: #475569 !important;
}
.text-slate-600 {
    color: #334155 !important;
}
.text-slate-700 {
    color: #1E293B !important;
}


/* ==================== SCHOLARSHIP CATEGORY FILTER PILL PROTECTION ==================== */
#scholarshipCategoryFilter {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}
#scholarshipCategoryFilter .filter-tab-btn,
body.elementor-kit-11 #scholarshipCategoryFilter button.filter-tab-btn,
button.filter-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    border-radius: 9999px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    background: #F1F5F9 !important;
    background-color: #F1F5F9 !important;
    color: #1E293B !important;
    border: 1.5px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}
#scholarshipCategoryFilter .filter-tab-btn:hover,
body.elementor-kit-11 #scholarshipCategoryFilter button.filter-tab-btn:hover,
button.filter-tab-btn:hover {
    background: #E2E8F0 !important;
    background-color: #E2E8F0 !important;
    color: #002D62 !important;
    border-color: #94A3B8 !important;
    transform: translateY(-1px) !important;
}
#scholarshipCategoryFilter .filter-tab-btn i {
    font-size: 11px !important;
    transition: color 0.2s ease !important;
}
#scholarshipCategoryFilter .filter-tab-btn[data-target="all"] i { color: #FFFFFF !important; }
#scholarshipCategoryFilter .filter-tab-btn[data-target="grad-core"] i { color: #D97706 !important; }
#scholarshipCategoryFilter .filter-tab-btn[data-target="grad-special"] i { color: #0284C7 !important; }
#scholarshipCategoryFilter .filter-tab-btn[data-target="resident"] i { color: #0D9488 !important; }

#scholarshipCategoryFilter .filter-tab-btn.active,
body.elementor-kit-11 #scholarshipCategoryFilter button.filter-tab-btn.active,
button.filter-tab-btn.active {
    background: #002D62 !important;
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border: 1.5px solid #002D62 !important;
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.28) !important;
}
#scholarshipCategoryFilter .filter-tab-btn.active *,
#scholarshipCategoryFilter .filter-tab-btn.active span {
    color: #FFFFFF !important;
}
#scholarshipCategoryFilter .filter-tab-btn.active i {
    color: #FBBF24 !important;
}
#expandAllBtn,
body.elementor-kit-11 button#expandAllBtn {
    background: #F8FAFC !important;
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
}
#expandAllBtn:hover,
body.elementor-kit-11 button#expandAllBtn:hover {
    background: #002D62 !important;
    background-color: #002D62 !important;
    color: #FFFFFF !important;
    border-color: #002D62 !important;
}
#expandAllBtn:hover * {
    color: #FFFFFF !important;
}
