/* ==========================================================================
   MFU TYPO3 & BOOTSTRAP STYLESHEET
   Description: Optimized, grouped, and modular CSS for the CMS platform.
   ========================================================================== */

/* ==========================================================================
   1. ROOT VARIABLES
   ========================================================================== */
:root {
    /* Brand Identity Colors */
    --mfu-primary-red: #cf2d1e;
    --mfu-deep-red: #8c1515;
    --mfu-gold: #b58f64;
    --mfu-gold-light: #f7f3ed;

    /* Harmonized Section Backgrounds */
    --mfu-bg-canvas: #ffffff;
    --mfu-bg-subtle: #f8f9fa;
    --mfu-bg-warm: #fcfbf9;

    /* Harmonized Hotlink Surface Gradient */
    --color-bg-hotlink: linear-gradient(135deg, #ffffff 0%, #f9f8f5 100%) !important;
    --border-radius: 12px;
    --border-radius-pill: 50px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header .header-primary .action-menu-list .action-menu-item a.primary-link {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

header .header-primary .action-menu-list .action-menu-item a.primary-link:hover {
    background-color: #cf2d1e;
    border-color: #cf2d1e;
    color: #fff;
}

/* Typography & Menu States */
header .header-menu-bar .menu-list > li > a,
header .header-menu-bar .menu-list > li.has-submenu .dropdown-menu li a {
    font-size: 1.15rem;
}

header .header-menu-bar .menu-list > li.has-submenu .dropdown-menu li a:hover,
header .header-menu-bar .menu-list > li.has-submenu .dropdown-menu li:hover > a {
    background-color: #cf2d1e !important;
    color: #ffffff !important;
}

header .header-menu-bar .menu-list > li.active > a {
    background-color: #b58f64;
}

header .header-menu-bar .menu-list > li.has-submenu > a {
    padding-right: 1rem;
}

/* Language Switcher */
.language-toggle {
    display: flex;
    gap: 4px;
}

.language-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #ced4da;
    border-radius: 0;
    transition: background-color 0.3s, color 0.3s;
}

.language-link:hover {
    background-color: #d6d8db;
    color: #212529;
}

.language-link.active {
    background-color: #8c1515;
    color: #fff;
    border-color: #8c1515;
}

/* Quick Shortcut Menu */
header .header-primary .head-shortcut-menu {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .header-primary .head-shortcut-menu ul {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

header .header-primary .head-shortcut-menu li a {
    font-family: "athitimedium", sans-serif;
    padding: 6px 15px;
    font-size: 1.1rem;
    color: #666;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

header .header-primary .head-shortcut-menu li a:hover {
    background: rgba(207, 45, 30, 0.08);
    color: #cf2d1e;
    transform: translateY(-1px);
}

/* Featured Star Menu Item */
header .header-primary .head-shortcut-menu li.star a {
    background: #cf2d1e;
    color: #ffffff !important;
    /* font-weight: 600; */
}

header .header-primary .head-shortcut-menu li.star a:hover {
    background: #b22417;
    color: #ffffff !important;
}

/* Responsive: Header */
@media (max-width: 1024px) {
    header .header-primary .head-shortcut-menu li a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

@media (max-width: 991px) {
    .head-shortcut-menu {
        background-color: #fff !important;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    .head-shortcut-menu ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .head-shortcut-menu li {
        width: 100% !important;
        border: none !important;
    }
    .head-shortcut-menu li a {
        text-align: center;
        color: #333 !important;
        background: #f8f8f8;
        padding: 12px;
        border-radius: 12px;
        font-size: 0.95rem !important;
    }
    .head-shortcut-menu li a:hover {
        background: #cf2d1e !important;
        color: #fff !important;
    }
    /* Mobile Featured Star */
    .head-shortcut-menu li.star a {
        background: #cf2d1e !important;
        color: #ffffff !important;
    }
    .head-shortcut-menu li.star a:hover {
        background: #b22417 !important;
    }
}

/* ==========================================================================
   3. CAMPUS GRID & ACTION BUTTONS
   ========================================================================== */
.btn-grid-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: stretch;
    gap: 20px;
}

/* Neutralize CMS wrapper element height constraints */
.btn-grid-container .col,
.btn-grid-container .frame,
.btn-grid-container .ce-textpic,
.btn-grid-container .ce-bodytext,
.btn-grid-container .frame-type-text p,
.btn-grid-container .ce-bodytext p {
    display: contents !important;
}

.campus-btn {
    font-family: "athitisemibold", sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #2b2c27 !important;
    text-decoration: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80px;
    height: 100%;
    padding: 20px 45px 20px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #bdb395;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.campus-btn::after {
    content: "\f054";
    position: absolute;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    right: 20px;
    font-size: 1rem;
    font-weight: 300;
    color: #bdb395;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.campus-btn:hover {
    border-color: #8e1c12;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.campus-btn:hover::after {
    transform: translateX(5px) scale(1.1);
    color: #8e1c12;
}



/* Responsive: Campus Grid */
@media screen and (max-width: 767px) {
    .btn-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px;
        margin: 2px;
    }
    .campus-btn {
        font-size: 0.9rem;
        padding: 10px;
        min-height: 0;
    }
    .campus-btn::after {
        display: none;
    }
}

/* ==========================================================================
   4. HEADING VARIANTS & ACCENT STYLES
   ========================================================================== */
.frame-6 {
    display: inline-block;
    background-color: var(--mfu-primary-red);
    padding: 6px 16px;
    margin: 10px 0;
    border-radius: 4px;
}
.frame-6 h2 {
    color: #fff;
    margin-bottom: 0;
}

.head-line2 {
    border-left: 6px solid var(--mfu-primary-red);
    padding-left: 12px;
}

.head-line3 {
    overflow: hidden;
    border-bottom: 2px solid var(--mfu-primary-red);
    margin-bottom: 20px;
}
.head-line3 h2 {
    display: inline-block;
    background-color: var(--mfu-primary-red);
    margin-bottom: 0;
    color: #fff;
    padding: 4px 18px;
    font-size: 1.2em;
    border-radius: 4px 4px 0 0;
}

.head-line4 {
    text-transform: capitalize;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--mfu-gold);
    width: 100%;
    padding-bottom: 8px;
}
.head-line4 h2 {
    color: var(--mfu-text-main, #232931);
    font-size: 2rem;
    font-weight: 700;
}
.head-line4 h3 {
    border-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.45);
    padding-bottom: 6px;
    margin-bottom: 0;
}

/* ==========================================================================
   5. GRID BUTTONS & LANDING CARDS
   ========================================================================== */
.frame-21 ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.frame-21 ul li {
    border-radius: var(--border-radius);
}

.frame-21 ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--mfu-deep-red) 0%, var(--mfu-primary-red) 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(207, 45, 30, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.frame-21 ul li a:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(207, 45, 30, 0.3);
}

@media (max-width: 991px) and (min-width: 576px) {
    .frame-21 ul { grid-template-columns: repeat(2, 1fr) !important; }
    .frame-21 ul li a { font-size: 0.95rem; min-height: 50px; }
}
@media (max-width: 575px) {
    .frame-21 ul { grid-template-columns: 1fr !important; }
    .frame-21 ul li a { font-size: 0.95rem; min-height: 48px; }
}

/* Degree Menu Overlay Card */
.container-card {
    position: relative;
    width: 100%;
}

.image-card {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    margin-bottom: 10px;
}

.overlay-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.5s ease;
    background-image: linear-gradient(25deg, #701900, #9c2a1b, #cb3d33, #fc504c);
}

.container-card:hover .overlay-card {
    opacity: 0.9;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px;
}

.text-card {
    color: #fff;
    font-size: 2em;
    font-family: "athitimedium", sans-serif;
    font-weight: 600;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Holiday Cards */
.holiday-card-official {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    height: 100%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.holiday-card-official:hover {
    border-color: #ccc;
    background: #f6f5f2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.bg-highlight-special { background-color: #fffaf0; }
.bg-highlight-festival { background-color: #f0f7ff; }

.past-event {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
    background-color: #f9f9f9 !important;
}

/* ==========================================================================
   6. ORGANIZATION & MANUAL LISTS
   ========================================================================== */
.list-manual-container,
.list-manual-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-manual-container > li {
    border-bottom: 1px solid #ececec;
    background-color: #fff;
}

.list-manual-container li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.list-manual-container li ul li a {
    padding-left: 40px;
    position: relative;
}

.list-manual-container li a::after {
    content: "PDF";
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: #d9534f;
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.list-manual-container li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Organization Structure List */
.mfu-organization {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.org-item {
    border-bottom: 1px solid #eee;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.org-item:hover {
    background-color: #fcfcfc;
}

.org-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.org-main-link {
    text-decoration: none;
    color: #333;
    flex: 1;
    min-width: 250px;
}

.org-details h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #cf2d1e;
}

.org-details h4:hover,
.contact-link:hover {
    color: #ad8a50;
    text-decoration: underline;
}

.org-details small {
    display: block;
    color: #666;
    margin-top: 2px;
}

.org-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 280px;
}

.contact-row {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.contact-link {
    text-decoration: none;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-copy {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-copy:hover {
    color: #ad8a50;
    background-color: #f0f0f0;
}

.sub-group {
    list-style: none;
    padding-left: 2rem;
    background-color: #f9f9f9;
}

.sub-group .org-item {
    border-bottom: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .org-item-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .org-contact {
        min-width: 100%;
        padding-top: 10px;
        border-top: 1px dashed #eee;
    }
    .sub-group {
        padding-left: 1rem;
    }
}

/* ==========================================================================
   7. MFU PROGRAMME BUNDLE & NAVIGATION
   ========================================================================== */
.list-programme { padding-top: 20px; }
.list-programme .frame-type-menu_pages {
    border: none;
    background: transparent;
    padding: 15px;
    margin-bottom: 20px;
}

.list-programme h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cf2d1e;
    border-bottom: 2px solid #eee;
}

.list-programme ul {
    list-style: none;
    padding: 0;
}

.list-programme ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.list-programme ul li a:hover { color: #8e1c12 !important; }

/* Tabs & Navigation */
.programme-container .tab-navigation {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    width: 100%;
}

.programme-container .nav-tabs {
    width: 100%;
    border-bottom: none !important;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 50px 10px 10px !important;
    background: #f4f4f4;
    border-radius: 18px;
}

.programme-container .nav-link,
.sch-programme .nav-link {
    margin: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.programme-container .nav-link.active {
    border-color: #cf2d1e !important;
    background: #cf2d1e !important;
    color: #fff !important;
    box-shadow: 0 8px 16px rgba(142, 28, 18, 0.25) !important;
    transform: scale(1.02) !important;
}

.tab-scroll-btn {
    position: absolute;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #8e1c12;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    animation: arrowBounce 2s infinite;
}

/* Fee Table Highlights */
.programme-container .header-total td {
    background: #b58f64 !important;
    color: #fff !important;
    padding: 18px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(181, 143, 100, 0.3);
}

.programme-container .td-credits {
    text-align: right;
    font-family: "athitibold", sans-serif;
    color: #8e1c12;
    width: 140px;
}

/* School Programme Tabs */
.sch-programme .nav-tabs {
    border-bottom: none !important;
    background-color: #f5f5f5;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex !important;
    width: 100%;
}

.sch-programme .nav-link.active {
    color: #cf2d1e !important;
    background-color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transform: none !important;
}

.sch-programme .ce-tab-pane ul li ul li a:hover {
    background: #fff5f5;
    border-color: #cf2d1e;
    color: #cf2d1e !important;
    padding-left: 30px;
}

/* Newsletter Component */
.newsletter-container figure {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}
.newsletter-container figcaption {
    display: block !important;
    padding-top: 15px !important;
}
.newsletter-container article:hover figure {
    transform: translateY(-50px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   8. LANDING PAGE & TCAS CARDS
   ========================================================================== */
.mfu-landing-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    box-sizing: border-box;
}

.mfu-landing-page .selection-container,
.mfu-landing-page .lang-selection-card {
    width: 100%;
    max-width: 1140px;
    box-sizing: border-box;
}

.selection-container {
    background: #fff;
    border-radius: 24px !important;
    padding: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

.banner-wrapper {
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    line-height: 0;
}

.landing-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.lang-selection-card {
    background: #fff;
    border-radius: 24px !important;
    padding: 20px 24px 28px 24px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    margin-top: -1px !important;
    position: relative;
    z-index: 1;
}

.lang-selection-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px 10px !important;
}

.lang-selection-card ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
}

.lang-selection-card ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 9px 15px !important;
    background: #800000 !important;
    color: #fff !important;
    border-radius: 15px !important;
    font-family: "athitimedium", sans-serif;
    font-size: 1.1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out !important;
}

.lang-selection-card ul li a span {
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.lang-selection-card ul li a:hover {
    background: #a00000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.3) !important;
}

.lang-selection-card ul li:last-child:nth-child(3n+1) {
    grid-column: 1 !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .lang-selection-card ul {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .lang-selection-card ul li:last-child:nth-child(3n+1) {
        grid-column: auto !important;
        width: 100% !important;
    }
}



/* ==========================================================================
   9. ACADEMIC PROGRAM CARDS (MFU FIRST)
   ========================================================================== */
.mfu-first { padding: 40px 15px; background-color: #fcfcfc; }
.mfu-first .row { margin-left: -15px; margin-right: -15px; }
.mfu-first .row > .col { padding: 15px; }

.mfu-first .frame-type-text {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 35px 25px !important;
    height: 100% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    border: 5px solid #ae1b1f !important;
    transition: all 0.3s ease !important;
    display: flex;
    flex-direction: column;
}
.mfu-first .frame-type-text:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 25px rgba(174, 27, 31, 0.1) !important;
    border-color: #a07617 !important;
}

.bg-red { background: #8c1515; }
.program-selection-grid .col { padding-bottom: 30px; }

.program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1a0503;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid #8c1515;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.program-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(20%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    z-index: 1;
}
.program-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(135deg, rgba(207, 45, 30, 0.85) 0%, rgba(114, 16, 8, 0.92) 100%);
    transition: opacity 0.4s ease, background 0.4s ease;
}
.program-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(252, 217, 0, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 3;
    pointer-events: none;
}
.program-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    pointer-events: none;
    width: 100%;
}
.program-subtitle {
    display: inline-block;
    color: #fcd900;
    font-family: "athitisemibold", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
    transition: color 0.3s ease;
}
.program-title {
    color: #fff;
    font-family: "athitisemibold", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease;
}
.program-content::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background: #fcd900;
    border-radius: 2px;
    margin-top: 14px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .program-card:hover img {
        opacity: 0.75;
        filter: grayscale(0%);
        transform: scale(1.05);
    }
    .program-card:hover .program-overlay {
        background: linear-gradient(135deg, rgba(207, 45, 30, 0.5) 0%, rgba(20, 5, 3, 0.85) 100%);
    }
    .program-card:hover .program-content::after {
        width: 50px;
        background: #fff;
    }
    .program-card:hover {
        border-color: rgba(252, 217, 0, 0.5);
        box-shadow: 0 15px 35px rgba(207, 45, 30, 0.25);
    }
}

@media (max-width: 767.98px) {
    .program-selection-grid .col { padding-bottom: 12px; }
    .program-card {
        aspect-ratio: auto;
        min-height: 52px;
        border-radius: 10px;
        justify-content: flex-start;
    }
    .program-overlay {
        background: linear-gradient(90deg, rgba(207, 45, 30, 0.92) 0%, rgba(114, 16, 8, 0.95) 100%);
    }
    .program-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
        text-align: left;
    }
    .program-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .program-subtitle {
        margin-bottom: 0;
        margin-left: 12px;
        font-size: 0.7rem;
        letter-spacing: 1px;
        white-space: nowrap;
        order: 2;
        background: rgba(0, 0, 0, 0.2);
        padding: 3px 8px;
        border-radius: 4px;
    }
    .program-content::after { display: none; }
    .program-card:active { transform: scale(0.98); border-color: #fcd900; }
}

@media (max-width: 400px) {
    .program-content { padding: 10px 14px; }
    .program-title { font-size: 0.95rem; }
    .program-subtitle { font-size: 0.65rem; padding: 2px 6px; }
}

/* ==========================================================================
   10. SERVICE & HOT LINK CARDS
   ========================================================================== */
.service-card .col { margin-bottom: 20px; }
.service-card .frame-type-shortcut,
.service-card .frame-type-textpic {
    background: #fff !important;
    border: 1px solid #f0f2f5 !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.service-card .frame-type-shortcut .frame-type-textpic {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.service-card .frame-type-shortcut:hover,
.service-card > .row > .col > .frame-type-textpic:hover {
    background: linear-gradient(90deg, #e10600 0%, #c5a059 100%) !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 30px rgba(174, 27, 31, 0.08) !important;
    border-color: transparent !important;
}

.service-card .frame-type-shortcut:hover img,
.service-card > .row > .col > .frame-type-textpic:hover img {
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-card .ce-textpic,
.service-card .ce-gallery {
    margin-bottom: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-card .image-embed-item {
    max-height: 80px !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.3s ease !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.service-card .frame-type-shortcut:hover .image-embed-item,
.service-card .frame-type-textpic:hover .image-embed-item {
    transform: scale(1.1) !important;
}

.service-card .ce-bodytext p { margin: 0 !important; }
.service-card .ce-bodytext a {
    font-family: "athitisemibold", sans-serif !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    margin-top: 5px !important;
}

.service-card .frame-type-shortcut:hover .ce-bodytext a,
.service-card .frame-type-textpic:hover .ce-bodytext a {
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .service-card .ce-gallery { display: none !important; }
    .service-card .frame-type-shortcut,
    .service-card .frame-type-textpic { padding: 5px !important; }
}

/* ==========================================================================
   11. CALENDAR COMPONENT
   ========================================================================== */
.calendar-wrapper-full {
    width: 100%;
    margin: 20px 0;
    font-family: "athitimedium", sans-serif;
}
.calendar-title { font-family: "athitibold", sans-serif; color: #8e1c12; }
.calendar-scroll-area { overflow-y: auto; height: 100%; scroll-behavior: smooth; padding: 15px; }
.calendar-scroll-area::-webkit-scrollbar { width: 6px; }
.calendar-scroll-area::-webkit-scrollbar-track { background: #f8f9fa; }
.calendar-scroll-area::-webkit-scrollbar-thumb { background: #8e1c12; border-radius: 10px; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    align-items: stretch;
}
@media (max-width: 768px) { .calendar-grid { grid-template-columns: 1fr; } }

.calendar-grid .event-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    overflow: hidden;
}
.calendar-grid .event-card:hover {
    box-shadow: 0 10px 20px rgba(142, 28, 18, 0.1);
    border-color: rgba(142, 28, 18, 0.27);
}

.calendar-grid .date-box {
    background: #8c111e;
    color: #fff;
    min-width: 90px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.calendar-grid .date-day { font-size: 1.8rem; font-family: "athitibold", sans-serif; line-height: 1; }
.calendar-grid .date-month { font-size: 0.9rem; text-transform: uppercase; margin-top: 5px; font-family: "athitibold", sans-serif; }

.calendar-grid .event-details {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    position: relative;
}
.calendar-grid .event-title {
    font-family: "athitisemibold", sans-serif;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    display: block;
    overflow: visible;
    white-space: normal;
}
.calendar-grid .event-meta {
    font-size: 0.95rem;
    color: #777;
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.load-more-box { text-align: center; margin-top: 30px; }
.btn-load-more {
    background: transparent;
    border: 2px solid #8e1c12;
    color: #8e1c12;
    padding: 10px 45px;
    border-radius: 50px;
    font-family: "athitibold", sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-load-more:hover:not(:disabled) { background: #8e1c12; color: #fff; }

.loading-skeleton {
    height: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 16px;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.event-card-link { display: block; color: inherit; transition: all 0.2s ease; }
.event-card-link:hover { text-decoration: none; color: inherit; }
.event-card-link:hover .event-card { background-color: #fffafa; border-color: #8e1c12; cursor: pointer; }
.event-card-link:hover .event-details::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e1c12;
    opacity: 0.5;
}

/* ==========================================================================
   12. PROGRAM SECTION & HOT LINKS
   ========================================================================== */
.program-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #fbf9f5 0%, #fef5f2 50%, #f5f0e6 100%) !important;
    border-top: 1px solid rgba(181, 143, 100, 0.22);
    border-bottom: 1px solid rgba(181, 143, 100, 0.22);
    overflow: hidden;
    font-family: inherit;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
.program-section::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(181, 143, 100, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.program-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(207, 45, 30, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.program-section .container { position: relative; z-index: 2; }

/* Responsive Grid Layout: Mobile-first 2-column grid matching Bootstrap col-6 */
.program-section .row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.program-section .row::before,
.program-section .row::after {
    display: none !important;
    content: none !important;
}

/* Desktop Viewport (>= 992px): 4 columns for TH (col-md-3) and 3 columns for EN (col-md-4) */
@media (min-width: 992px) {
    .program-section .row {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        gap: 24px !important;
    }
    .program-section .row:has(> .col-md-3) {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .program-section .row:has(> .col-md-4) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.program-section .ce-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    border-radius: var(--border-radius, 12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.program-section .ce-col:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    /*transform: translateY(-4px);*/
    border-color: rgba(181, 143, 100, 0.4);
}
.program-section .frame-type-image { margin-bottom: 0 !important; overflow: hidden; position: relative; }
.program-section .ce-image,
.program-section .ce-gallery,
.program-section .ce-outer,
.program-section .ce-inner,
.program-section figure.image {
    margin-top: 0;
    padding: 0 !important;
    width: 100%;
}
.program-section figure.image img.image-embed-item {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    object-position: center;
}
.program-section .ce-col:hover figure.image img.image-embed-item {
    transform: scale(1.04);
}
.program-section .frame-type-text {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}
.program-section .frame-type-text h3 {
    color: var(--mfu-text-main, #232931);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}
.program-section .frame-type-text h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--mfu-gold, #b58f64) !important;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.program-section .ce-col:hover .frame-type-text h3::after { width: 100%; }
.program-section ul { list-style: none !important; padding-left: 0 !important; margin-bottom: 25px !important; flex-grow: 1; }
.program-section ul li {
    font-family: "athitimedium", sans-serif;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
}
.program-section ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
    color: #cf2d1e;
    font-size: 1rem;
    font-family: "athitibold", sans-serif;
    transition: transform 0.2s ease;
}
.program-section ul li a { color: var(--color-text-dark, #333); text-decoration: none; transition: color 0.2s ease; }
.program-section ul li:hover::before { transform: translateX(3px); color: #cf2d1e; }
.program-section ul li a:hover { color: #cf2d1e; }

.program-section h5 { margin: 0 !important; padding: 0 !important; width: 100%; }
.program-section .btn-primary {
    display: block !important;
    width: 100%;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.program-section .btn-primary a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background-color: #cf2d1e;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 10px;
}
.program-section .btn-primary a:hover {
    background-color: var(--color-mfu-red, #cf2d1e) !important;
    color: #fff !important;
    box-shadow: 0 6px 12px rgba(207, 45, 30, 0.3);
}

@media (max-width: 991.98px) {
    .program-section .row,
    .program-section .row:has(> .col-md-3),
    .program-section .row:has(> .col-md-4) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 767.98px) {
    .program-section { padding: 35px 0; }
    .program-section .row,
    .program-section .row:has(> .col-md-3),
    .program-section .row:has(> .col-md-4) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .program-section figure.image img.image-embed-item { height: 160px; }
    .program-section .frame-type-text { padding: 16px 14px 14px; }
    .program-section .frame-type-text h3 { font-size: 1.15rem; }
    .program-section .btn-primary a { font-size: 0.85rem; padding: 10px 8px; }
}

@media (max-width: 380px) {
    .program-section .row,
    .program-section .row:has(> .col-md-3),
    .program-section .row:has(> .col-md-4) {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .program-section figure.image img.image-embed-item { height: 180px; }
}

.program-section .frame-14 h2 {
    color: var(--mfu-text-main, #232931) !important;
    text-shadow: none !important;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}
.program-section .frame-14 h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--mfu-gold, #b58f64) !important;
    border-radius: 2px;
}

/* Hot Links */
.hot-link {
    background: var(--mfu-bg-canvas, #ffffff);
    padding: 30px 30px 15px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(181, 143, 100, 0.2);
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hot-link:hover {
    border-color: var(--mfu-gold);
    box-shadow: var(--shadow-hover);
}
.hot-link .btn-research {
    margin-top: 0;
    margin-bottom: 0;
}

/* ==========================================================================
   13. HIGHLIGHT SECTION (HARMONIZED SURFACE)
   ========================================================================== */
.highlight-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, #fbf9f5 0%, #fef5f2 50%, #f5f0e6 100%) !important;
    border-top: 1px solid rgba(181, 143, 100, 0.22);
    border-bottom: 1px solid rgba(181, 143, 100, 0.22);
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}
.highlight-section::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(181, 143, 100, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.highlight-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(207, 45, 30, 0.14) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.highlight-section .container { position: relative; z-index: 2; }

/* Base Highlight Block */
.highlight-section .std-301,
.highlight-section .special-layout.layout-69 {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: var(--border-radius) !important;
    padding: 28px !important;
    box-shadow: var(--shadow) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.highlight-section .std-301:hover,
.highlight-section .special-layout.layout-69:hover {
    /*transform: translateY(-2px);*/
    border-color: rgba(181, 143, 100, 0.4) !important;
    box-shadow: var(--shadow-hover) !important;
}

.highlight-section .col-lg-5 .mb-2,
.highlight-section .special-layout.layout-69 .mb-2 {
    position: relative !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 0 !important;
}

.highlight-section img.img-fluid,
.highlight-section .special-layout.layout-69 img.img-fluid {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--border-radius) !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}
.highlight-section .special-layout.layout-69:hover img.img-fluid { transform: scale(1.03) !important; }

.highlight-section .col-lg-7 .pb-4 {
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.highlight-section .col-lg-7 .pb-4::before {
    content: "MFU HIGHLIGHT";
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background: linear-gradient(90deg, var(--mfu-primary-red) 0%, #e10600 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    border-radius: var(--border-radius-pill);
    margin-bottom: 12px;
}

.highlight-section h3.color-yellow,
.highlight-section h3 a.color-yellow,
.highlight-section .special-layout.layout-69 h3,
.highlight-section .special-layout.layout-69 h3 a {
    color: var(--mfu-deep-red) !important;
    font-family:'athitisemibold', sans-serif;
    font-size: 1.55rem !important;
    /* font-weight: 700 !important; */
    line-height: 1.4 !important;
    text-decoration: none !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    transition: color 0.2s ease !important;
}
.highlight-section h3 a.color-yellow:hover,
.highlight-section .special-layout.layout-69 h3 a:hover {
    color: var(--mfu-primary-red) !important;
}

.highlight-section .color-white,
.highlight-section .special-layout.layout-69 .teaser,
.highlight-section .special-layout.layout-69 .teaser p,
.highlight-section .special-layout.layout-69 .teaser span {
    color: var(--mfu-text-muted, #64748b) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    background: transparent !important;
}
.highlight-section .color-white strong {
    color: var(--mfu-text-main, #232931);
    font-weight: 600;
}

/* Layout 69 overrides */
.highlight-section .special-layout.layout-69 .article { margin-bottom: 0 !important; }
.highlight-section .special-layout.layout-69 .row { align-items: center !important; }
.highlight-section .special-layout.layout-69 .teaser p { margin-bottom: 6px !important; }
.highlight-section .special-layout.layout-69 .teaser h4,
.highlight-section .special-layout.layout-69 .teaser h4 span {
    color: var(--mfu-deep-red) !important;
    font-size: 1rem !important;
    margin: 10px 0 4px 0 !important;
    font-weight: 600 !important;
}
.highlight-section .special-layout.layout-69 .teaser div[style*="border-bottom"] {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 8px !important;
}

@media (max-width: 991.98px) {
    .highlight-section,
    .highlight-section .special-layout.layout-69 { padding: 35px 0 !important; }
    .highlight-section .std-301,
    .highlight-section .special-layout.layout-69 { padding: 20px !important; }
    .highlight-section h3.color-yellow,
    .highlight-section h3 a.color-yellow,
    .highlight-section .special-layout.layout-69 h3,
    .highlight-section .special-layout.layout-69 h3 a { font-size: 1.3rem !important; }
    .highlight-section img.img-fluid { max-height: 240px; }
    .highlight-section .col-lg-7,
    .highlight-section .special-layout.layout-69 .col-md-6:last-child { margin-top: 15px !important; }
}

/* ==========================================================================
   14. RESEARCH BUTTONS & JOURNAL LIST
   ========================================================================== */
.btn-research {
    margin-top: 25px;
    margin-bottom: 35px;
}
.btn-research .col { margin-bottom: 15px; }

.btn-research .frame-type-textpic {
    position: relative;
    background: #fdfdfd !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50px !important;
    padding: 10px 22px 10px 12px;
    min-height: 64px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), inset 0 2px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-research .frame-type-textpic:hover {
    background: #cf2d1e !important;
    border-color: #cf2d1e !important;
    box-shadow: 0 10px 28px rgba(207, 45, 30, 0.32), inset 0 2px 2px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-research .ce-textpic {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}
.btn-research .ce-gallery,
.btn-research .ce-column {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.btn-research figure.image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 9px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: background-color 0.35s ease, transform 0.35s ease;
}
.btn-research img.image-embed-item {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.btn-research .frame-type-textpic:hover figure.image {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-research .ce-bodytext,
.btn-research .ce-bodytext p {
    flex-grow: 1;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}
.btn-research .ce-bodytext a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #374151 !important;
    font-family: "athitisemibold", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
    transition: color 0.35s ease;
}
.btn-research .ce-bodytext a::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 0.95rem;
    color: #9ca3af;
    margin-left: 8px;
    margin-right: 4px;
    transition: all 0.35s ease;
}
.btn-research .frame-type-textpic:hover .ce-bodytext a,
.btn-research .frame-type-textpic:hover .ce-bodytext a::after { color: #fff !important; }
.btn-research .frame-type-textpic:hover .ce-bodytext a::after { transform: translateX(4px); }

@media (max-width: 575.98px) {
    .btn-research .col { max-width: 100%; }
    .btn-research .frame-type-textpic { padding: 8px 18px 8px 10px; min-height: 58px; }
    .btn-research figure.image { width: 40px; height: 40px; padding: 8px; }
    .btn-research .ce-bodytext a { font-size: 1rem; }
}

/* Journal List Section */
.journal-list ul {
    list-style-type: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    text-align: center;
}
.journal-list li {
    width: 100% !important;
    margin-bottom: 0 !important;
    font-family: "athitimedium", sans-serif;
    display: flex !important;
}
.journal-list li a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 36px 12px 16px !important;
    text-decoration: none !important;
    color: #fff !important;
    background: #b58f64 !important;
    border-radius: 10px !important;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s !important;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 5px 10px !important;
    text-align: center !important;
    line-height: 1.4;
}
.journal-list li a span { color: #fff !important; }
.journal-list li a::after {
    content: "\f054" !important;
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: 14px !important;
    font-size: 0.8rem !important;
    color: #fff !important;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}
.journal-list li a:hover {
    background-color: #ae1b1f !important;
    transform: translateY(-2px) !important;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 15px !important;
}
.journal-list li a:hover::after {
    opacity: 1;
    transform: translateX(3px) !important;
}

@media (max-width: 640px) {
    .journal-list ul { grid-template-columns: 1fr !important; gap: 10px !important; }
}

/* ==========================================================================
   15. SCHOOL LIST CARD & MEMORIAL HALL
   ========================================================================== */
.list-school-card .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}
.list-school-card .frame-type-textpic {
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.list-school-card .frame-type-textpic:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.list-school-card .ce-gallery {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: #f8f9fa;
}
.list-school-card .ce-gallery figure,
.list-school-card .ce-gallery a {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}
.list-school-card .ce-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.list-school-card .frame-type-textpic:hover .ce-gallery img { transform: scale(1.06); }
.list-school-card .ce-bodytext { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.list-school-card .ce-bodytext span,
.list-school-card .ce-bodytext p { color: inherit !important; font-size: inherit !important; font-family: inherit !important; }
.list-school-card .ce-bodytext h4 { font-size: 1.3rem; margin-bottom: 0.75rem; line-height: 1.4; }
.list-school-card .ce-bodytext h4 a { color: #2c3e50; text-decoration: none; transition: color 0.2s ease; }
.list-school-card .ce-bodytext h4 a:hover { color: #cf2d1e; }
.list-school-card .ce-bodytext p { margin-bottom: 0.4rem; font-size: 0.875rem; color: #6c757d; line-height: 1.6; }
.list-school-card .ce-bodytext p:empty,
.list-school-card .ce-bodytext p:has(br:only-child) { display: none; }
.list-school-card .ce-bodytext a { color: #cf2d1e; text-decoration: none; word-break: break-word; }
.list-school-card .ce-bodytext a:hover { text-decoration: underline; }

@media (max-width: 767.98px) {
    .list-school-card .ce-gallery { display: none !important; }
}

/* Memorial Hall Section */
.Memorial_Hall .frame-type-ce_columns2 {
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    font-family: "Prompt", "Sarabun", -apple-system, sans-serif;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.Memorial_Hall .frame-type-ce_columns2:hover {
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.Memorial_Hall .frame-type-ce_columns2 .row { display: flex; flex-wrap: wrap; align-items: center; margin: -0.75rem; }
.Memorial_Hall .frame-type-ce_columns2 .ce-col { padding: 0.75rem; box-sizing: border-box; }
.Memorial_Hall .frame-type-ce_columns2 .frame-type-image { height: 100%; }
.Memorial_Hall .frame-type-ce_columns2 figure.image {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background-color: #f8fafc;
}
.Memorial_Hall .frame-type-ce_columns2 figure.image a { display: block; overflow: hidden; position: relative; }
.Memorial_Hall .frame-type-ce_columns2 figure.image img.image-embed-item {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.Memorial_Hall .frame-type-ce_columns2 figure.image:hover img.image-embed-item {
    transform: scale(1.05);
    filter: brightness(1.03);
}
.Memorial_Hall .frame-type-ce_columns2 .frame-type-text { padding: 0.5rem 0.75rem; display: flex; align-items: center; height: 100%; }
.Memorial_Hall .frame-type-ce_columns2 p.align-justify {
    font-size: 1.025rem;
    color: #334155;
    line-height: 1.85;
    margin: 0;
    letter-spacing: -0.01em;
}

@media (max-width: 767px) {
    .Memorial_Hall .frame-type-ce_columns2 { padding: 1.25rem; margin: 1.5rem 0.5rem; }
    .Memorial_Hall .frame-type-ce_columns2 .ce-col { width: 100% !important; }
    .Memorial_Hall .frame-type-ce_columns2 .frame-type-text { padding-top: 1rem; }
}

/* ==========================================================================
   16. MISCELLANEOUS
   ========================================================================== */
.container-fluid { padding-right: 0 !important; padding-left: 0 !important; }

/* More News Accent Link */
.more-news { text-align: right; margin: 20px 0; }
.more-news a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #6c757d;
    font-family: "athitisemibold", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.more-news a::after {
    content: "\2192";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #fff;
    font-size: 1.1rem;
    background: #c5a059;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.more-news a:hover { color: #ae1b1f; }
.more-news a:hover::after {
    background-color: #ae1b1f;
    color: #fff;
    transform: translateX(4px);
}

/* Button: More Link with Animated SVG Arrow */
.more-link a {
    font-family: "athitimedium", sans-serif;
    font-size: 90%;
    background-color: var(--theme-primary, #8C1515);
    color: #ffffff;
    border-radius: 100px;
    padding: 6px 16px 6px 14px;
    text-decoration: none;
    transition: all 0.2s linear;
    float: right;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    margin: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* CSS Arrow Icon via ::after pseudo-element */
.more-link a::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>') no-repeat center / contain;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>') no-repeat center / contain;
    transition: transform 0.2s linear;
}

/* Hover States */
.more-link a:hover {
    color: #ffffff;
    background-color: var(--theme-primary, #8C1515);
    filter: brightness(0.88);
    box-shadow: rgba(0, 0, 0, 0.25) 1.95px 3px 5px;
    text-decoration: none;
}

/* Smooth Arrow Slide Effect on Hover */
.more-link a:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   NXTGEN SHOWCASE - RESPONSIVE STYLES
   Structure: .nxtgen-container (.hero-section, .programme-section, .news-section)
   Compliant with: WCAG 2.1 AA, Bootstrap 5, and Mobile-first architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MAIN WRAPPER (.nxtgen-container)
   -------------------------------------------------------------------------- */
.nxtgen-container {
  width: 100%;
  position: relative;
}

/* --------------------------------------------------------------------------
   2. HERO SECTION - FLOATING GLASS HERO CARD
   -------------------------------------------------------------------------- */
.nxtgen-container .hero-section {
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .nxtgen-container .hero-section {
    margin-bottom: 3.5rem;
  }
}

/* Glass Floating Container for Title */
.nxtgen-container .hero-section #c42319 {
  background-image: linear-gradient(230deg, #000046, #482062, #834280, #bf689e);
  border: 1px solid #eee;
  border-radius: 1.25rem;
  padding: 1.75rem 1rem 1.5rem 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05),
              0 20px 40px -15px rgba(106, 47, 155, 0.08);
  text-align: center;
}

@media (min-width: 768px) {
  .nxtgen-container .hero-section #c42319 {
    border-radius: 1.5rem;
    padding: 2.75rem 1.5rem 2rem 1.5rem;
    margin-bottom: 2rem;
  }
}

/* Logo with Double Ring Border (Fluid Size) */
.nxtgen-container .hero-section #c42319 img {
  width: 110px !important;
  height: 110px !important;
  border-radius: 50% !important;
  border: 4px solid #ffffff;
  outline: 2px solid #f0f019;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .nxtgen-container .hero-section #c42319 img {
    width: 150px !important;
    height: 150px !important;
  }
}

.nxtgen-container .hero-section #c42319 img:hover {
  transform: scale(1.05);
}

/* Solid Bold Heading (Responsive Typography) */
.nxtgen-container .hero-section #c42319 h1 {
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.35;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  word-break: break-word;
}

@media (min-width: 576px) {
  .nxtgen-container .hero-section #c42319 h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 992px) {
  .nxtgen-container .hero-section #c42319 h1 {
    font-size: 3rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. PROGRAMME SECTION (.programme-section)
   -------------------------------------------------------------------------- */
.nxtgen-container .programme-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .nxtgen-container .programme-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    border-radius: 1.25rem;
  }
}

/* Program Course Cards */
.nxtgen-container .programme-section .layout-29 .card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.nxtgen-container .programme-section .layout-29 .article:hover .card {
  transform: translateY(-5px);
  border-color: rgba(140, 21, 21, 0.2);
  box-shadow: 0 14px 28px -4px rgba(140, 21, 21, 0.16);
}

/* Course Image Normalization */
.nxtgen-container .programme-section .card-img-3col {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #f1f3f5;
}

/* Course Typography */
.nxtgen-container .programme-section .link-news div[itemprop="headline"] {
  font-size: 1.05rem;
  color: #212529;
  line-height: 1.45;
  margin-top: 0.65rem;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .nxtgen-container .programme-section .link-news div[itemprop="headline"] {
    font-size: 1.125rem;
    line-height: 1.5;
    margin-top: 0.75rem;
  }
}

.nxtgen-container .programme-section .article:hover .link-news div[itemprop="headline"] {
  color: #8c1515;
}

/* --------------------------------------------------------------------------
   5. NEWS & RECRUITMENT SECTION (.news-section)
   -------------------------------------------------------------------------- */
.nxtgen-container .news-section {
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .nxtgen-container .news-section {
    margin-bottom: 3.5rem;
  }
}

/* News Slider Cards */
.nxtgen-container .news-section .std-204 .card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0.875rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nxtgen-container .news-section .std-204 .article:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* Uniform Height for Poster Images */
.nxtgen-container .news-section .card-img-slide4col {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: #f8f9fa;
}

.nxtgen-container .news-section .link-news div[itemprop="headline"] {
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333333;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .nxtgen-container .news-section .link-news div[itemprop="headline"] {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

.nxtgen-container .news-section .article:hover .link-news div[itemprop="headline"] {
  color: #8c1515;
}

/* --------------------------------------------------------------------------
   7. ACCESSIBILITY & FOCUS VISIBLE (WCAG 2.1 AA)
   -------------------------------------------------------------------------- */
.nxtgen-container a:focus-visible,
.nxtgen-container button:focus-visible {
  outline: 3px solid #ffb703 !important;
  outline-offset: 3px !important;
}

/* ==========================================================================
   FIX HIGHLIGHT & FRAME-14 WHITE BACKGROUND
   Target: .Hightlight, .frame-14 (#c48475, #c48476)
   ========================================================================== */

/* 1. Clear background on Hightlight wrapper & container */
.Hightlight,
.Hightlight .frame-14,
.Hightlight .frame-14 header,
.Hightlight .frame-14 h2,
#c48475,
#c48476 {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* 2. Ensure only the gradient underline bar remains visible */
.Hightlight .frame-14 h2 {
  background: none !important;
}

/* ==========================================================================
   DARK THEME SYSTEM SUPPORT (WCAG 2.1 AA)
   Description: Component-level overrides for dark mode without affecting light theme.
   ========================================================================== */

/* Dark Mode: Pill Cards & Program Cards */
body.dark-theme .campus-btn {
  background: #1e1e1e !important;
  color: #e4e6eb !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-theme .campus-btn:hover {
  background: #282828 !important;
  border-color: #ff6b6b !important;
  color: #ffffff !important;
}

body.dark-theme .campus-btn::after {
  color: #ffb703 !important;
}

/* Dark Mode: More News & More Link Buttons */
body.dark-theme .more-news a {
  color: #e4e6eb !important;
}

body.dark-theme .more-news a:hover {
  color: #ff6b6b !important;
}

body.dark-theme .more-news a::after {
  background: #ffb703 !important;
  color: #121212 !important;
}

body.dark-theme .more-link a {
  background-color: #cf2d1e !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .more-link a:hover {
  background-color: #b32417 !important;
}

/* Dark Mode: Head-lines & Headings */
body.dark-theme .head-line4 h2 {
  color: #f5f6f7 !important;
}

body.dark-theme .head-line4 h3 {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Dark Mode: Organization Structure List (.mfu-organization) */
body.dark-theme .org-item {
  background-color: #1e1e1e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .org-item:hover {
  background-color: #262626 !important;
}

body.dark-theme .org-main-link {
  color: #f5f6f7 !important;
}

body.dark-theme .org-details h4 {
  color: #ff6b6b !important;
}

body.dark-theme .org-details h4:hover,
body.dark-theme .contact-link:hover {
  color: #ffd166 !important;
}

body.dark-theme .org-details small {
  color: #b0b3b8 !important;
}

body.dark-theme .contact-link {
  color: #d1d5db !important;
}

body.dark-theme .btn-copy {
  color: #888888 !important;
}

body.dark-theme .btn-copy:hover {
  color: #ffd166 !important;
  background-color: #333333 !important;
}

body.dark-theme .sub-group {
  background-color: #161616 !important;
}

body.dark-theme .sub-group .org-item {
  background-color: #161616 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 768px) {
  body.dark-theme .org-contact {
    border-top: 1px dashed rgba(255, 255, 255, 0.15) !important;
  }
}

/* ==========================================================================
   MFU Video Section with Campus Aerial Background (.mfu-video)
   8:4 Grid Layout (Video : 28th Anniversary Brand Card)
   Mobile-First Architecture compliant with Bootstrap, TYPO3 CMS & Dark Theme
   ========================================================================== */

/* --- Mobile Base Styles (Default viewport < 768px) --- */
/* ตัวอย่างพื้นหลังเข้มแบบ Cinematic ที่คุมโทนเข้ากับเว็บ */
.mfu-video {
  background: linear-gradient(135deg, rgba(15, 17, 21, 0.90) 0%, rgba(30, 10, 14, 0.85) 60%, rgba(15, 17, 21, 0.92) 100%), 
              url("https://mfu.ac.th/fileadmin/media/about_mfu/DJI_20240621103205_0063_D-2000.jpg") center center / cover no-repeat;
  border-top: 1px solid rgba(181, 143, 100, 0.3); /* เส้นขอบทองบางๆ */
  border-bottom: 1px solid rgba(181, 143, 100, 0.3);
}

.mfu-video .row {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mfu-video .ce-col:first-child,
.mfu-video [class*="col-"]:first-child {
  margin-bottom: 24px;
}

/* Video embed container */
.mfu-video .mfu-video-wrapper {
  width: 100%;
}

.mfu-video .mfu-video-wrapper .ratio,
.mfu-video .mfu-video-wrapper .ratio-16x9 {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #000000;
}

.mfu-video .mfu-video-wrapper iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 28th Anniversary Brand Card (Col 4 compact card) */
.mfu-video .blog-video-list {
  width: 100%;
  margin: 0 auto;
}

.mfu-video .video-info-card,
.mfu-video .blog-video-list > div {
  background: linear-gradient(145deg, #8e111d 0%, #ae1b1f 55%, #760e17 100%);
  border-radius: 14px;
  padding: 24px 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(174, 27, 31, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 4px solid var(--mfu-gold, #c5a059);
  text-align: center;
}

/* Ambient glow accent behind card */
.mfu-video .video-info-card::before,
.mfu-video .blog-video-list > div::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(252, 217, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Emblem logo */
.mfu-video .logo-wrapper,
.mfu-video .blog-video-list div[style*="text-align: center"] {
  text-align: center;
  margin-bottom: 14px;
}

.mfu-video .blog-video-list img {
  max-width: 80px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
}

/* University title */
.mfu-video .title-video {
  color: #ffd27d;
  font-family: 'athitibold', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 8px;
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mfu-video .title-video::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background: rgba(255, 210, 125, 0.6);
  border-radius: 2px;
}

/* Detail description text */
.mfu-video .detail-video {
  font-family: 'athitimedium', sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  padding: 0;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
  font-weight: 400;
}

/* Vision quote highlight */
.mfu-video .vision-quote {
  display: block;
  margin-top: 8px;
  color: #ffe6a0;
  font-family: 'athitisemibold', sans-serif;
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  text-align: center;
}

/* --- Tablet & Desktop Enhancements (min-width: 768px) --- */
@media (min-width: 768px) {
  .mfu-video {
    padding: 50px 0;
  }

  .mfu-video .row {
    align-items: stretch;
  }

  .mfu-video .ce-col,
  .mfu-video [class*="col-"] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
  }

  .mfu-video .ce-col:first-child,
  .mfu-video [class*="col-"]:first-child {
    margin-bottom: 0;
  }

  .mfu-video .frame {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
  }

  .mfu-video .mfu-video-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mfu-video .mfu-video-wrapper .ratio,
  .mfu-video .mfu-video-wrapper .ratio-16x9 {
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .mfu-video .mfu-video-wrapper .ratio:hover,
  .mfu-video .mfu-video-wrapper .ratio-16x9:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  }

  .mfu-video .blog-video-list {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .mfu-video .video-info-card,
  .mfu-video .blog-video-list > div {
    height: 100%;
    border-radius: 16px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 14px 36px rgba(174, 27, 31, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .mfu-video:hover .video-info-card,
  .mfu-video:hover .blog-video-list > div {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(174, 27, 31, 0.26), 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .mfu-video .blog-video-list img {
    max-width: 90px;
    transition: transform 0.3s ease;
  }

  .mfu-video .blog-video-list:hover img {
    transform: scale(1.05);
  }

  .mfu-video .title-video {
    font-size: 1.38rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .mfu-video .title-video::after {
    width: 44px;
  }

  .mfu-video .detail-video {
    font-size: 1.02rem;
    line-height: 1.7;
    padding: 0 4px;
  }

  .mfu-video .vision-quote {
    font-size: 1.02rem;
  }
}

/* --- Large Desktop Enhancements (min-width: 1200px) --- */
@media (min-width: 1200px) {
  .mfu-video {
    padding: 60px 0;
  }

  .mfu-video .video-info-card,
  .mfu-video .blog-video-list > div {
    padding: 30px 24px;
  }

  .mfu-video .blog-video-list img {
    max-width: 100px;
  }

  .mfu-video .title-video {
    font-size: 1.45rem;
  }

  .mfu-video .detail-video {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Dark Theme Support (body.dark-theme)
   Compliant with Rule 10 of mfu-css.md & WCAG 2.1 AA
   ========================================================================== */
body.dark-theme .mfu-video {
  background: linear-gradient(135deg, rgba(18, 20, 24, 0.92) 0%, rgba(26, 29, 35, 0.88) 50%, rgba(18, 20, 24, 0.94) 100%), 
              url("https://mfu.ac.th/fileadmin/media/about_mfu/DJI_20240621103205_0063_D-2000.jpg") center center / cover no-repeat !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .mfu-video .mfu-video-wrapper .ratio,
body.dark-theme .mfu-video .mfu-video-wrapper .ratio-16x9 {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6) !important;
}

body.dark-theme .mfu-video .video-info-card,
body.dark-theme .mfu-video .blog-video-list > div {
  background: linear-gradient(145deg, #24070a 0%, #3d0c11 55%, #1f0507 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-top-color: #ffd27d !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .mfu-video .blog-video-list img {
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .mfu-video .title-video {
  color: #ffe082 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

body.dark-theme .mfu-video .detail-video {
  color: #e2e8f0 !important;
}

body.dark-theme .mfu-video .vision-quote {
  color: #ffd54f !important;
}

/* ==========================================================================
   Dark Theme Support (body.dark-theme)
   Compliant with Rule 10 of mfu-css.md & WCAG 2.1 AA
   ========================================================================== */

/* 1. Highlight and Program Sections Wrapper */
body.dark-theme .highlight-section,
body.dark-theme .program-section {
  background: #18191a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
body.dark-theme .highlight-section::before,
body.dark-theme .program-section::before {
  background: radial-gradient(circle, rgba(181, 143, 100, 0.08) 0%, transparent 70%) !important;
}
body.dark-theme .highlight-section::after,
body.dark-theme .program-section::after {
  background: radial-gradient(circle, rgba(207, 45, 30, 0.06) 0%, transparent 70%) !important;
}

/* 2. Highlight Card Inner Surface & Text */
body.dark-theme .highlight-section .std-301,
body.dark-theme .highlight-section .special-layout.layout-69 {
  background: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
body.dark-theme .highlight-section .std-301:hover,
body.dark-theme .highlight-section .special-layout.layout-69:hover {
  border-color: rgba(181, 143, 100, 0.5) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6) !important;
}
body.dark-theme .highlight-section h3.color-yellow,
body.dark-theme .highlight-section h3 a.color-yellow,
body.dark-theme .highlight-section .special-layout.layout-69 h3,
body.dark-theme .highlight-section .special-layout.layout-69 h3 a {
  color: #ff8585 !important;
}
body.dark-theme .highlight-section h3 a.color-yellow:hover,
body.dark-theme .highlight-section .special-layout.layout-69 h3 a:hover {
  color: #ffadad !important;
}
body.dark-theme .highlight-section .color-white,
body.dark-theme .highlight-section .special-layout.layout-69 .teaser,
body.dark-theme .highlight-section .special-layout.layout-69 .teaser p,
body.dark-theme .highlight-section .special-layout.layout-69 .teaser span {
  color: #c4c9d1 !important;
}
body.dark-theme .highlight-section .color-white strong {
  color: #f1f5f9 !important;
}
body.dark-theme .highlight-section .special-layout.layout-69 .teaser h4,
body.dark-theme .highlight-section .special-layout.layout-69 .teaser h4 span {
  color: #ff8585 !important;
}
body.dark-theme .highlight-section .special-layout.layout-69 .teaser div[style*="border-bottom"] {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* 3. Program Section (Study at MFU) Cards & Text */
body.dark-theme .program-section .ce-col {
  background: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
body.dark-theme .program-section .ce-col:hover {
  border-color: rgba(181, 143, 100, 0.5) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
}
body.dark-theme .program-section .frame-type-text {
  background: #1e1e1e !important;
}
body.dark-theme .program-section .frame-type-text h3 {
  color: #f5f6f7 !important;
}
body.dark-theme .program-section ul li {
  color: #c4c9d1 !important;
}
body.dark-theme .program-section ul li a {
  color: #d1d5db !important;
}
body.dark-theme .program-section ul li a:hover {
  color: #ff6b6b !important;
}
body.dark-theme .program-section ul li::before {
  color: #ff6b6b !important;
}
body.dark-theme .program-section .frame-14 h2 {
  color: #f5f6f7 !important;
}

/* 4. TCAS Admission Wrapper & Cards */
body.dark-theme .tcas-wrapper {
  background: #18191a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}
body.dark-theme .tcas-header h2 {
  color: #f5f6f7 !important;
}
body.dark-theme .tcas-header h2 span {
  color: #ff6b6b !important;
}
body.dark-theme .tcas-header p {
  color: #94a3b8 !important;
}
body.dark-theme .tcas-card {
  background: #1e1e1e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
body.dark-theme .tcas-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}
body.dark-theme .tcas-card.round-1 { border-color: var(--r1, #1e3a8a) !important; }
body.dark-theme .tcas-card.round-2 { border-color: var(--r2, #9a3412) !important; }
body.dark-theme .tcas-card.round-3 { border-color: var(--r3, #b45309) !important; }
body.dark-theme .tcas-card.round-4 { border-color: var(--r4, #15803d) !important; }

body.dark-theme .tcas-card-body {
  background: #1e1e1e !important;
}
body.dark-theme .tcas-date {
  color: #e2e8f0 !important;
}
body.dark-theme .round-1 .tcas-label {
  background: rgba(30, 58, 138, 0.4) !important;
  color: #93c5fd !important;
}
body.dark-theme .round-2 .tcas-label {
  background: rgba(154, 52, 18, 0.4) !important;
  color: #fdba74 !important;
}
body.dark-theme .round-3 .tcas-label {
  background: rgba(180, 83, 9, 0.4) !important;
  color: #fcd34d !important;
}
body.dark-theme .round-4 .tcas-label {
  background: rgba(21, 128, 61, 0.4) !important;
  color: #86efac !important;
}
body.dark-theme .tcas-card-foot {
  background: #191a1c !important;
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-theme .tcas-card-foot a {
  color: #94a3b8 !important;
}
body.dark-theme .tcas-card-foot a:hover {
  color: #ff6b6b !important;
}


/* 5. Statistics Boxes */
body.dark-theme #mfu-statistics-container .stat-box,
body.dark-theme #mfu-statistics-container.stats-compact-grid .stat-box {
  background: #1e1e1e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
body.dark-theme #mfu-statistics-container .stat-box:hover,
body.dark-theme #mfu-statistics-container.stats-compact-grid .stat-box:hover {
  border-color: rgba(181, 143, 100, 0.45) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}
body.dark-theme #mfu-statistics-container .stat-value,
body.dark-theme #mfu-statistics-container.stats-compact-grid .stat-value {
  color: #ff6b6b !important;
}
body.dark-theme #mfu-statistics-container .stat-title,
body.dark-theme #mfu-statistics-container.stats-compact-grid .stat-title {
  color: #94a3b8 !important;
}

/* 6. Pill Navigation Links (.btn-research) */
body.dark-theme .btn-research .frame-type-textpic {
  background: #1e1e1e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}
body.dark-theme .btn-research .frame-type-textpic:hover {
  background: #cf2d1e !important;
  border-color: #cf2d1e !important;
  box-shadow: 0 6px 20px rgba(207, 45, 30, 0.4) !important;
}
body.dark-theme .btn-research .ce-bodytext a {
  color: #e4e6eb !important;
}
body.dark-theme .btn-research .ce-bodytext a::after {
  color: #94a3b8 !important;
}
body.dark-theme .btn-research .frame-type-textpic:hover .ce-bodytext a,
body.dark-theme .btn-research .frame-type-textpic:hover .ce-bodytext a::after {
  color: #ffffff !important;
}
body.dark-theme .btn-research figure.image {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

/* 7. Footer Complaint & Feedback Links */
body.dark-theme footer .menu-box-list li a {
  background-color: #242830 !important;
  color: #e4e6eb !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease !important;
}
body.dark-theme footer .menu-box-list li a:hover {
  background-color: #cf2d1e !important;
  border-color: #cf2d1e !important;
  color: #ffffff !important;
}
body.dark-theme footer .social-media-list.background-yellow-light {
  background: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px;
}
body.dark-theme footer .social-media-list h4 {
  color: #f5f6f7 !important;
}


