/* ==========================================================================
   MFU MICROSITE THEME: THEME-COMMENCEMENT
   Description: Standardized, mobile-first, WCAG-compliant styles for TYPO3 & Bootstrap.
   ========================================================================== */

/* ==========================================================================
   01. THEME VARIABLES & DESIGN TOKENS (:root)
   ========================================================================== */
:root {
    --theme-primary: #cf2d1e;
    --theme-secondary: #cd4444;
    --theme-burgundy: #8c1515;
    --theme-navy: #1b355a;
    --theme-gold: #d4af37;
    --theme-gold-dark: #b58f64;
    --theme-text-dark: #333333;
    --theme-text-muted: #666666;
    --theme-white: #ffffff;
    --theme-bg-light: #f8f9fa;
    --theme-border-light: #eeeeee;
}

/* ==========================================================================
   02. HEADER & NAVIGATION
   ========================================================================== */
header .header-menu-bar {
    background-image: linear-gradient(145deg, var(--theme-primary, #cf2d1e), #b02418);
}

/* Default styles for menu links */
header .header-menu-bar .menu-list > li > a {
    color: #ffffff !important;
    background: transparent !important;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hover and active styles for menu items */
header .header-menu-bar .menu-list > li:hover > a,
header .header-menu-bar .menu-list > li.active > a {
    color: #333333 !important;
    background: #ffffff !important;
    border-radius: 0.3125rem;
}

/* Submenu indicator arrow styles */
header .header-menu-bar .menu-list > li.has-submenu > a:after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-top: 0.3125rem solid #ffffff;
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
    transition: border-top-color 0.3s ease;
}

/* Hover and active states for submenu arrows */
header .header-menu-bar .menu-list > li.has-submenu:hover > a:after,
header .header-menu-bar .menu-list > li.active > a:after {
    border-top-color: #333333 !important;
}

.countdown-header p {
    color: var(--theme-text-muted, #666666);
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.bg-grey {
    background: #FFFDF1;
}

/* ==========================================================================
   03. TYPOGRAPHY & SECTION HEADINGS
   ========================================================================== */
.frame-14 h2 {
    border-bottom: 10px solid var(--theme-secondary, #cd4444);
}

.countdown-header h2 {
    color: var(--theme-primary, #cf2d1e);
    font-family: 'athitisemibold', sans-serif;
    letter-spacing: 3px;
    margin-bottom: 5px;
    font-size: 1.8rem;
}

/* Location Card Title */
.loc-content h4 {
    margin: 0 0 4px 0;
    font-family: 'athitisemibold', sans-serif;
    font-size: 1.15rem;
    color: var(--theme-text-dark, #333333);
    line-height: 1.3;
}

.mfu-loc-card:hover h4 {
    color: var(--theme-primary, #cf2d1e);
}

.song-info h2 { 
    color: var(--theme-burgundy, #ae1b1f); 
    margin: 0 0 10px 0; 
}

/* ==========================================================================
   04. SLIDERS & CAROUSELS
   ========================================================================== */
.slick-slider .slick-arrow {
    background-color: var(--theme-secondary, #cd4444);
}

.slick-slider .slick-dots li.slick-active button {
    background-color: var(--theme-secondary, #cd4444);
}

.slick-slider .slick-dots li button {
    border: 0.0625rem solid var(--theme-secondary, #cd4444);
}

/* ==========================================================================
   05. CONTENT FRAMES & CARDS
   ========================================================================== */
/* Box Link Styles */
.frame-2 ul {
    list-style-type: none;
    line-height: 20pt;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
}

.frame-2 li a {
    font-family: "athitisemibold", sans-serif;
    display: block;
    color: #FFFFFF;
    font-size: 1.2rem;
    padding: 18px 12px;
    text-decoration: none;
    background-image: linear-gradient(25deg, #400d0f, #6a1c21, #982d34, #c83e48);
    border-radius: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.frame-2 li a:hover {
    background-image: linear-gradient(25deg, #6c1900, #992819, #c93930, #fb4a47);
    color: #ffffff;
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(108, 25, 0, 0.25);
}

/* Service Box Styles */
.service-box ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-family: "athitisemibold", sans-serif;
}

.service-box ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    padding: 15px 10px;
    font-size: 1.2rem;
    color: #FFFFFF;
    background-color: #A60F09;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.service-box ul li a:hover {
    background-color: #B27801;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Content Typography */
.news.news-single .news-text-wrap,
.frame-type-textmedia,
.frame-type-text, 
.frame-type-textpic p, 
.frame-type-text ol, 
.frame-type-text ul {
    font-family: "pridiregular", sans-serif;
    font-size: 1.125rem;
}

.blog-maincontent .frame-default {
    font-family: "pridiregular", sans-serif;
}

.mfu-countdown-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 10px;
    font-family: 'athitisemibold', sans-serif;
}

.countdown-item {
    background: linear-gradient(145deg, var(--theme-primary, #cf2d1e), #b02418);
    color: #ffffff;
    width: 85px;
    padding: 15px 5px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(207, 45, 30, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-item span {
    font-size: 2.2rem;
    display: block;
    line-height: 1;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: normal;
}

.countdown-wrapper {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 20px;
}

.blog-maincontent .view-all a {
    background-color: var(--theme-secondary, #cd4444);
    border-color: var(--theme-secondary, #cd4444);
}

/* ==========================================================================
   MFU Navigation Tabs (Scoped to .frame-type-ce_tabs)
   ========================================================================== */
.frame-type-ce_tabs .nav-tabs {
    border: none;
    gap: 8px; 
    margin-bottom: 2.5rem;
    padding: 10px;
    background: var(--theme-bg-light, #f8f9fa); 
    border-radius: 60px;
    display: inline-flex;
}

.frame-type-ce_tabs .nav-link {
    color: #333333;
    font-size: 1.1rem;
    font-family: 'athitimedium', sans-serif;
    padding: 12px 25px;
    border: 2px solid var(--theme-border-light, #eeeeee);
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50px; 
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.frame-type-ce_tabs .nav-tabs .nav-link.active {
    color: #ffffff;
    background-color: var(--theme-burgundy, #8c1515); 
    border-color: var(--theme-burgundy, #8c1515);
    box-shadow: 0 10px 20px rgba(140, 21, 21, 0.18); 
    transform: translateY(-2px); 
}

.frame-type-ce_tabs .nav-tabs .nav-link:hover:not(.active) {
    color: var(--theme-primary, #cf2d1e);
    background-color: rgba(207, 45, 30, 0.08); 
    transform: translateY(-1px);
}

.frame-type-ce_tabs .nav-tabs .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* WCAG Focus ring on tabs */
.frame-type-ce_tabs .nav-link:focus-visible {
    outline: 2px solid var(--theme-gold, #d4af37);
    outline-offset: 2px;
}

/* ==========================================================================
   Location Cards & Music Showcase
   ========================================================================== */
.mfu-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.mfu-loc-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    padding: 24px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mfu-loc-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}

.mfu-loc-card:hover {
    border-color: #fcebeb;
    background-color: #fafafa;
}

.mfu-loc-card:hover::before {
    background-color: var(--theme-primary, #cf2d1e);
}

.loc-code {
    font-family: 'athitisemibold', sans-serif;
    font-size: 1.1rem;
    color: var(--theme-primary, #cf2d1e);
    background: rgba(207, 45, 30, 0.05);
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.loc-content p {
    margin: 0;
    font-family: 'athitimedium', sans-serif;
    font-size: 0.9rem;
    color: #777777;
    line-height: 1.4;
    font-style: italic;
}

/* Music Card Component */
.music-card-premium {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none;
}

.song-info {
    padding: 25px;
    text-align: center;
    background: #fafafa;
}

.song-info p { 
    margin: 3px 0; 
    color: #666666; 
    font-size: 0.9rem; 
}

.lyrics-body { 
    padding: 40px; 
}

.lyric-verse {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--theme-burgundy, #ae1b1f);
}

.verse-tag {
    display: block;
    font-size: 0.8rem;
    color: var(--theme-burgundy, #ae1b1f);
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.verse-content p {
    margin: 6px 0;
    line-height: 1.6;
    color: #333333;
}

.sub-lang {
    color: #888888;
    font-style: italic;
    margin-left: 10px;
}

.highlight-text {
    font-weight: bold;
    color: var(--theme-burgundy, #ae1b1f) !important;
}

/* ==========================================================================
   06. TYPO3 CMS COMPONENTS & DOCUMENTATION
   ========================================================================== */
.tx_mfudocu .link-news {
    border-bottom: 1px solid var(--theme-border-light, #eeeeee);
}

.tx_mfudocu .link-news a:hover {
    border-bottom: 1px solid var(--theme-primary, #cf2d1e);
    background: var(--theme-primary, #cf2d1e);
    color: #ffffff;
}

.countdown-footer p {
    margin-top: 20px;
    color: #888888;
    font-size: 1rem;
}

/* ==========================================================================
   07. BUTTONS & ACCESSIBLE ACTION LINKS
   ========================================================================== */
.more-link a {
    font-family: "athitimedium", sans-serif;
    font-size: 0.9rem;
    background-color: var(--theme-primary, #cf2d1e);
    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;
}

.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;
}

.more-link a:hover {
    color: #ffffff;
    background-color: var(--theme-primary, #cf2d1e);
    filter: brightness(0.9);
    box-shadow: rgba(0, 0, 0, 0.25) 1.95px 3px 5px;
    text-decoration: none;
}

.more-link a:hover::after {
    transform: translateX(4px);
}

.more-link a:focus-visible {
    outline: 2px solid var(--theme-gold, #d4af37);
    outline-offset: 2px;
}

/* ==========================================================================
   08. LANDING PAGE & PORTAL CARD SECTIONS
   ========================================================================== */
.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: #ffffff;
    border-radius: 24px;
    padding: 16px;
    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: #ffffff;
    border-radius: 24px;
    padding: 20px 24px 28px 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    margin-top: -1px;
    position: relative;
    z-index: 1;
}

.lang-selection-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.lang-selection-card ul li {
    margin: 0;
    padding: 0;
    display: flex;
}

.lang-selection-card ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    background-color: var(--theme-burgundy, #800000);
    color: #ffffff;
    border-radius: 15px;
    font-family: "athitimedium", sans-serif;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.lang-selection-card ul li a span {
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-selection-card ul li a:hover {
    background-color: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(128, 0, 0, 0.35);
}

.lang-selection-card ul li a:focus-visible {
    outline: 3px solid var(--theme-gold, #d4af37);
    outline-offset: 2px;
}

/* ==========================================================================
   09. MFU COMMENCEMENT MODERN BRAND HEADER (Mobile-First)
   ========================================================================== */
.mfu-commence-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    transition: opacity 0.25s ease-in-out;
}

.mfu-commence-brand:hover {
    opacity: 0.9;
}

.brand-emblem {
    flex-shrink: 0;
}

.brand-emblem img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-divider {
    width: 2px;
    height: 46px;
    background: linear-gradient(180deg, #cf2d1e 0%, #d4af37 60%, #b8860b 100%);
    border-radius: 1px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-title {
    font-family: 'athitisemibold', 'Prompt', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #981c21;
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin-bottom: 0;
}

.brand-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.15rem 0;
}

.academic-year {
    font-family: 'athitisemibold', 'Prompt', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #981c21;
    margin-bottom:10px;
}

.year-badge {
    display: inline-block;
    background-color: #fcf4f2;
    color: #981c21;
    font-family: 'Prompt', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.05rem 0.4rem;
    border-radius: 50rem;
    letter-spacing: 0.4px;
    border: 1px solid rgba(207, 45, 30, 0.2);
}

.brand-subtitle {
    font-family: 'athiti', 'Prompt', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--theme-navy, #1b355a);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS (Mobile-First Architecture)
   ========================================================================== */

/* Tablet Breakpoint (min-width: 768px) */
@media (min-width: 768px) {
    .lang-selection-card ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .lang-selection-card ul li:last-child:nth-child(3n+1) {
        grid-column: 1;
        width: 100%;
    }
}

/* Desktop Breakpoint (min-width: 992px) */
@media (min-width: 992px) {
    .service-box ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .mfu-commence-brand {
        gap: 1.25rem;
    }

    .brand-emblem img {
        height: 82px;
    }

    .brand-divider {
        width: 4px;
        height: 110px;
        border-radius: 2px;
    }

    .brand-title {
        font-size: 1.8rem;
        letter-spacing: 0.3px;
    }

    .brand-meta {
        gap: 0.65rem;
        margin: 0.2rem 0;
    }

    .academic-year {
        font-size: 1.5rem;
    }

    .year-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.55rem;
    }

    .brand-subtitle {
        font-size: 1rem;
        letter-spacing: 0.8px;
    }
}

/* Handheld Mobile Refinements (max-width: 767.98px) */
@media (max-width: 767.98px) {
    .blog-maincontent .view-all a {
        font-size: 0.75rem;
    }

    .frame-22 ul li a {
        padding: 10px;
        font-size: 0.9rem;
    }

    header .header-menu-bar .menu-list > li > a {
        font-size: 1rem !important;
        padding: 10px 15px !important;
    }

    .frame-2 li a {
        font-size: 1rem;
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    .service-box ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-box ul li a {
        font-size: 0.9rem;
        padding: 10px;
    }

    .frame-14 h2 {
        font-size: 1.5rem;
        border-bottom-width: 6px;
    }

    .mfu-countdown-container {
        gap: 8px;
    }

    .countdown-item {
        width: 70px;
        padding: 12px 5px;
        border-radius: 12px;
    }

    .countdown-item span {
        font-size: 1.6rem;
    }

    .countdown-item .label {
        font-size: 0.65rem;
    }

    .frame-type-ce_tabs .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px;
        border-radius: 12px;
    }

    .frame-type-ce_tabs .nav-link {
        font-size: 0.95rem;
        padding: 10px 18px;
        white-space: nowrap;
    }

    .mfu-location-grid {
        grid-template-columns: 1fr;
    }

    .lyrics-body { 
        padding: 20px; 
    }

    .sub-lang { 
        display: block; 
        margin-left: 0; 
        margin-top: 2px; 
    }
}

/* Small Smartphone Devices (max-width: 575.98px) */
@media (max-width: 575.98px) {
    .service-box ul {
        grid-template-columns: 1fr;
    }

    .frame-2 li a {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   11. DARK THEME OVERRIDES (Comprehensive Coverage)
   ========================================================================== */
body.dark-theme {
    background-color: #121212;
    color: #e4e6eb;
}

body.dark-theme .mfu-loc-card,
body.dark-theme .music-card-premium,
body.dark-theme .countdown-wrapper,
body.dark-theme .selection-container,
body.dark-theme .lang-selection-card {
    background-color: #1e1e1e;
    border-color: #2d2d2d;
    color: #e4e6eb;
}

body.dark-theme .service-box ul li a, 
body.dark-theme .box-link li a, 
body.dark-theme .footer { 
    background-color: #242424; 
}

body.dark-theme .side-menu ul li a:hover { 
    background-color: #2a2a2a; 
}

body.dark-theme .song-info {
    background-color: #181818;
}

body.dark-theme .verse-content p,
body.dark-theme .loc-content h4 {
    color: #e4e6eb;
}

body.dark-theme .frame-type-ce_tabs .nav-tabs {
    background: #181818;
}

body.dark-theme .frame-type-ce_tabs .nav-link {
    color: #cccccc;
    border-color: #333333;
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   12. ACCESSIBILITY: REDUCED MOTION (WCAG 2.3.3)
   ========================================================================== */
@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;
    }
}



/* ==========================================================================
   CENTRAL STAFF LIST CARDS (.list-staff)
   Standardized 4:6 (6:4 Portrait) Profile Card Module for MFU Microsites & TYPO3.
   Features:
   - Standard 4:6 portrait aspect-ratio photo with elegant rounded corners (12px)
   - Centered card presentation with equal-height alignment across grid columns
   - Support for both image cards (.frame-type-textpic) and text cards (.frame-type-text)
   - Support for standalone leader / manager card (.list-staff > .frame)
   - Clean typographic hierarchy (Name h4, Title & Affiliation p, Duties ul/li)
   - Smooth card elevation and subtle image zoom on hover
   - Full Dark Theme compatibility (body.dark-theme)
   ========================================================================== */

/* 1. Main Grid & Card Alignment */
.list-staff,
.list-staff.row,
.list-staff .row {
    row-gap: 1.5rem !important;
    margin-bottom: 2rem;
}

.list-staff > .col {
    display: flex;
    align-items: stretch;
}

/* 2. Staff Card Container */
.list-staff .frame-type-textpic,
.list-staff .frame-type-text,
.list-staff .frame {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem 1.5rem !important;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    box-sizing: border-box;
}

/* Card Hover Elevation */
.list-staff .frame-type-textpic:hover,
.list-staff .frame-type-text:hover,
.list-staff .frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(66, 103, 178, 0.25);
}

/* 3. Standalone Manager / Leader Card Center Alignment */
.list-staff > .frame-type-textpic,
.list-staff > .frame-type-text,
.list-staff > .frame {
    max-width: 480px;
    margin: 0 auto 2rem auto !important;
}

/* 4. Staff Profile Image (4:6 / 6:4 Portrait Ratio) */
.list-staff .ce-textpic {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
}

.list-staff .ce-gallery {
    margin-bottom: 1.25rem !important;
    display: flex;
    justify-content: center;
    width: 100%;
}

.list-staff .ce-outer,
.list-staff .ce-inner,
.list-staff .ce-row,
.list-staff .ce-column {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

.list-staff figure.image {
    margin: 0 auto !important;
    width: 160px !important;
    max-width: 100%;
    aspect-ratio: 4 / 6 !important;
    border-radius: 12px !important;
    overflow: hidden;
    border: 4px solid #f8fafc;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    background: #f1f5f9;
}

.list-staff img.image-embed-item {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 6 !important;
    object-fit: cover !important;
    object-position: top center;
    border-radius: 0 !important;
    display: block;
    transition: transform 0.35s ease;
}

/* Subtle Image Zoom on Hover */
.list-staff .frame-type-textpic:hover img.image-embed-item,
.list-staff .frame:hover img.image-embed-item {
    transform: scale(1.05);
}

/* 5. Staff Information Content Area (.ce-bodytext & .frame-type-text) */
.list-staff .ce-bodytext,
.list-staff .frame-type-text {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Staff Name & Headings */
.list-staff .ce-bodytext h3,
.list-staff .ce-bodytext h4,
.list-staff .ce-bodytext h5,
.list-staff .ce-bodytext strong,
.list-staff .frame-type-text h3,
.list-staff .frame-type-text h4,
.list-staff .frame-type-text h5,
.list-staff .frame-type-text strong {
    font-family: 'athitisemibold', 'Prompt', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--theme-primary, #0a4a5c) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.35 !important;
}

.list-staff .ce-bodytext h3 a,
.list-staff .ce-bodytext h4 a,
.list-staff .ce-bodytext h5 a,
.list-staff .frame-type-text h3 a,
.list-staff .frame-type-text h4 a,
.list-staff .frame-type-text h5 a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Position, Department & Contact Details */
.list-staff .ce-bodytext p,
.list-staff .frame-type-text p {
    font-family: 'athitimedium', 'Prompt', sans-serif !important;
    font-size: 0.95rem !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin: 0 0 8px 0 !important;
}

.list-staff .ce-bodytext p:empty,
.list-staff .frame-type-text p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Email and Contact Links */
.list-staff .ce-bodytext a,
.list-staff .frame-type-text a {
    color: var(--theme-secondary, #a30b2e);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.list-staff .ce-bodytext a:hover,
.list-staff .frame-type-text a:hover {
    color: var(--theme-primary, #0a4a5c);
    text-decoration: underline;
}

/* Academic Activities & Duty List */
.list-staff .ce-bodytext ul,
.list-staff .ce-bodytext ol,
.list-staff .frame-type-text ul,
.list-staff .frame-type-text ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 0 0 !important;
    text-align: left;
    width: 100%;
}

.list-staff .ce-bodytext ul li,
.list-staff .ce-bodytext ol li,
.list-staff .frame-type-text ul li,
.list-staff .frame-type-text ol li {
    position: relative;
    padding-left: 18px !important;
    font-family: 'athitimedium', 'Prompt', sans-serif !important;
    font-size: 0.88rem !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 6px;
}

.list-staff .ce-bodytext ul li:last-child,
.list-staff .ce-bodytext ol li:last-child,
.list-staff .frame-type-text ul li:last-child,
.list-staff .frame-type-text ol li:last-child {
    margin-bottom: 0;
}

.list-staff .ce-bodytext ul li::before,
.list-staff .frame-type-text ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--theme-secondary, #b58f64);
    opacity: 0.85;
}

/* Hide Extra Dividers inside Text Block */
.list-staff .ce-bodytext hr,
.list-staff .frame-type-text hr {
    display: none !important;
}

/* 6. Dark Theme Compatibility (.list-staff in body.dark-theme) */
body.dark-theme .list-staff .frame-type-textpic,
body.dark-theme .list-staff .frame-type-text,
body.dark-theme .list-staff .frame,
.dark-theme .list-staff .frame-type-textpic,
.dark-theme .list-staff .frame-type-text,
.dark-theme .list-staff .frame {
    background-color: #242a35 !important;
    border-color: #374151 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

body.dark-theme .list-staff .frame-type-textpic:hover,
body.dark-theme .list-staff .frame-type-text:hover,
body.dark-theme .list-staff .frame:hover,
.dark-theme .list-staff .frame-type-textpic:hover,
.dark-theme .list-staff .frame-type-text:hover,
.dark-theme .list-staff .frame:hover {
    border-color: var(--theme-primary, #0a4a5c) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .list-staff figure.image,
.dark-theme .list-staff figure.image {
    border-color: #374151 !important;
    background-color: #1a1e24 !important;
}

body.dark-theme .list-staff .ce-bodytext h3,
body.dark-theme .list-staff .ce-bodytext h4,
body.dark-theme .list-staff .ce-bodytext h5,
body.dark-theme .list-staff .ce-bodytext strong,
body.dark-theme .list-staff .frame-type-text h3,
body.dark-theme .list-staff .frame-type-text h4,
body.dark-theme .list-staff .frame-type-text h5,
body.dark-theme .list-staff .frame-type-text strong,
.dark-theme .list-staff .ce-bodytext h3,
.dark-theme .list-staff .ce-bodytext h4,
.dark-theme .list-staff .ce-bodytext h5,
.dark-theme .list-staff .ce-bodytext strong,
.dark-theme .list-staff .frame-type-text h3,
.dark-theme .list-staff .frame-type-text h4,
.dark-theme .list-staff .frame-type-text h5,
.dark-theme .list-staff .frame-type-text strong {
    color: #f1f5f9 !important;
}

body.dark-theme .list-staff .ce-bodytext p,
body.dark-theme .list-staff .frame-type-text p,
.dark-theme .list-staff .ce-bodytext p,
.dark-theme .list-staff .frame-type-text p {
    color: #94a3b8 !important;
}

body.dark-theme .list-staff .ce-bodytext a,
body.dark-theme .list-staff .frame-type-text a,
.dark-theme .list-staff .ce-bodytext a,
.dark-theme .list-staff .frame-type-text a {
    color: var(--theme-secondary, #60a5fa) !important;
}

body.dark-theme .list-staff .ce-bodytext a:hover,
body.dark-theme .list-staff .frame-type-text a:hover,
.dark-theme .list-staff .ce-bodytext a:hover,
.dark-theme .list-staff .frame-type-text a:hover {
    color: #ffffff !important;
}

body.dark-theme .list-staff .ce-bodytext ul li,
body.dark-theme .list-staff .ce-bodytext ol li,
body.dark-theme .list-staff .frame-type-text ul li,
body.dark-theme .list-staff .frame-type-text ol li,
.dark-theme .list-staff .ce-bodytext ul li,
.dark-theme .list-staff .ce-bodytext ol li,
.dark-theme .list-staff .frame-type-text ul li,
.dark-theme .list-staff .frame-type-text ol li {
    color: #94a3b8 !important;
}

body.dark-theme .list-staff .ce-bodytext ul li::before,
body.dark-theme .list-staff .frame-type-text ul li::before,
.dark-theme .list-staff .ce-bodytext ul li::before,
.dark-theme .list-staff .frame-type-text ul li::before {
    background-color: var(--theme-secondary, #60a5fa) !important;
}

/* ==========================================================================
   DARK THEME OVERRIDES (Scoped via body.dark-theme & .dark-theme)
   Comprehensive Dark Mode Suite for MFU Microsites.
   Ensures WCAG AA compliance, eliminates glare, and preserves brand identity.
   ========================================================================== */

/* 1. Global Page Background & Base Typography */
body.dark-theme,
.dark-theme {
    background-color: var(--theme-dark-bg, #1a1e24) !important;
    color: #f1f5f9;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: #ffffff !important;
}

body.dark-theme p,
.dark-theme p {
    color: #cbd5e1;
}

body.dark-theme .head-line4 h2,
body.dark-theme .head-line-primary h2,
.dark-theme .head-line4 h2,
.dark-theme .head-line-primary h2 {
    color: #f1f5f9 !important;
}

body.dark-theme .head-line4 h3,
body.dark-theme .head-line-primary h3,
.dark-theme .head-line4 h3,
.dark-theme .head-line-primary h3 {
    color: #94a3b8 !important;
}

/* 2. Header & Main Navigation Bar */
body.dark-theme header .header-menu-bar,
.dark-theme header .header-menu-bar {
    background-color: #1a1e24 !important;
    border-bottom: 5px solid var(--theme-primary, #cf2d1e) !important;
}

body.dark-theme header .header-menu-bar .menu-list > li > a,
body.dark-theme .menu-list > li a,
.dark-theme header .header-menu-bar .menu-list > li > a,
.dark-theme .menu-list > li a {
    color: #f1f5f9 !important;
}

body.dark-theme header .header-menu-bar .menu-list > li:hover > a,
body.dark-theme header .header-menu-bar .menu-list > li.active > a,
.dark-theme header .header-menu-bar .menu-list > li:hover > a,
.dark-theme header .header-menu-bar .menu-list > li.active > a {
    color: #ffffff !important;
    background: var(--theme-primary, #cf2d1e) !important;
}

body.dark-theme header .header-menu-bar .menu-list > li.has-submenu > a::after,
.dark-theme header .header-menu-bar .menu-list > li.has-submenu > a::after {
    border-top-color: #f1f5f9 !important;
}

@media (max-width: 991px) {
    body.dark-theme header .header-primary .head-right,
    .dark-theme header .header-primary .head-right {
        background-color: #1a1e24 !important;
    }
}

/* 3. Action Buttons & Links */
body.dark-theme .more-link a,
.dark-theme .more-link a {
    background-color: var(--theme-primary, #cf2d1e) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .more-link a:hover,
.dark-theme .more-link a:hover {
    filter: brightness(1.15) !important;
}

body.dark-theme .btn-port.btn-porttheme,
.dark-theme .btn-port.btn-porttheme {
    background: #242a35 !important;
    color: #f1f5f9 !important;
    border: 1px solid #374151 !important;
}

body.dark-theme .btn-port.btn-porttheme:hover,
.dark-theme .btn-port.btn-porttheme:hover {
    background: var(--theme-primary, #cf2d1e) !important;
    color: #ffffff !important;
}

body.dark-theme .btn-instrument,
.dark-theme .btn-instrument {
    color: #cbd5e1 !important;
}

body.dark-theme .btn-instrument:hover,
.dark-theme .btn-instrument:hover {
    color: var(--theme-accent, #ffac00) !important;
}

/* 4. Service Boxes, Sidebars & Shortlists */
body.dark-theme .service-box ul li a,
body.dark-theme .box-link li a,
body.dark-theme .frame-2 li a,
body.dark-theme .frame-layout-1 li a,
.dark-theme .service-box ul li a,
.dark-theme .box-link li a,
.dark-theme .frame-2 li a,
.dark-theme .frame-layout-1 li a {
    background-color: #242a35 !important;
    color: #e2e8f0 !important;
    border: 1px solid #374151 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

body.dark-theme .service-box ul li a:hover,
body.dark-theme .box-link li a:hover,
body.dark-theme .frame-2 li a:hover,
body.dark-theme .frame-layout-1 li a:hover,
.dark-theme .service-box ul li a:hover,
.dark-theme .box-link li a:hover,
.dark-theme .frame-2 li a:hover,
.dark-theme .frame-layout-1 li a:hover {
    background-color: var(--theme-primary, #cf2d1e) !important;
    color: #ffffff !important;
    border-color: var(--theme-primary, #cf2d1e) !important;
}

body.dark-theme .side-menu ul li a,
.dark-theme .side-menu ul li a {
    background: #242a35 !important;
    border-color: #374151 !important;
    color: #e2e8f0 !important;
}

body.dark-theme .side-menu ul li a:hover,
body.dark-theme .side-menu ul li.active a,
.dark-theme .side-menu ul li a:hover,
.dark-theme .side-menu ul li.active a {
    background: var(--theme-primary, #cf2d1e) !important;
    border-color: var(--theme-primary, #cf2d1e) !important;
    color: #ffffff !important;
}

body.dark-theme .sidemenu li a,
.dark-theme .sidemenu li a {
    background: #242a35 !important;
    color: #e2e8f0 !important;
    border-color: #374151 !important;
}

body.dark-theme .sidemenu li a:hover:not(.active),
.dark-theme .sidemenu li a:hover:not(.active) {
    background: #333d4d !important;
    color: #ffffff !important;
}

body.dark-theme .sidebar-intro li a,
.dark-theme .sidebar-intro li a {
    background: #242a35 !important;
    color: #e2e8f0 !important;
    border: 1px solid #374151 !important;
}

body.dark-theme .sidebar-intro li a.active,
body.dark-theme .sidebar-intro li a:hover,
.dark-theme .sidebar-intro li a.active,
.dark-theme .sidebar-intro li a:hover {
    border-left-color: var(--theme-primary, #cf2d1e) !important;
    background-color: #1a1e24 !important;
    color: #ffffff !important;
}

body.dark-theme .list-underline li a,
.dark-theme .list-underline li a {
    background: #242a35 !important;
    color: #e2e8f0 !important;
    border: 1px solid #374151 !important;
}

body.dark-theme .list-underline li a:hover,
.dark-theme .list-underline li a:hover {
    background-color: var(--theme-primary, #cf2d1e) !important;
    color: #ffffff !important;
}

/* 5. TYPO3 Frames, Cards & Document Containers */
body.dark-theme .card,
body.dark-theme .article .card,
body.dark-theme .frame-default,
body.dark-theme .frame-type-textpic,
.dark-theme .card,
.dark-theme .article .card,
.dark-theme .frame-default,
.dark-theme .frame-type-textpic {
    background-color: #202630 !important;
    border-color: #333d4d !important;
    color: #e2e8f0 !important;
}

body.dark-theme .list-manual-container > li,
.dark-theme .list-manual-container > li {
    border-bottom-color: #334155 !important;
    background-color: #202630 !important;
}

body.dark-theme .list-manual-container li a,
.dark-theme .list-manual-container li a {
    color: #f1f5f9 !important;
}

body.dark-theme .list-manual-container li a:hover,
.dark-theme .list-manual-container li a:hover {
    background-color: #2b3341 !important;
    color: #ffffff !important;
}

/* 6. News, Articles & Link Lists */
body.dark-theme .link-news a,
.dark-theme .link-news a {
    background-color: #242a35 !important;
    border-color: #374151 !important;
    color: #f1f5f9 !important;
}

body.dark-theme .link-news a:hover,
.dark-theme .link-news a:hover {
    background-color: #2e3644 !important;
    border-color: var(--theme-primary, #cf2d1e) !important;
}

body.dark-theme .link-news div[itemprop="headline"],
body.dark-theme .link-news h3,
body.dark-theme .link-news h4,
.dark-theme .link-news div[itemprop="headline"],
.dark-theme .link-news h3,
.dark-theme .link-news h4 {
    color: #f1f5f9 !important;
}

body.dark-theme .news-item li,
body.dark-theme .article-item li,
.dark-theme .news-item li,
.dark-theme .article-item li {
    background-color: #242a35 !important;
    border-color: #374151 !important;
}

/* 7. Tables & Data Display */
body.dark-theme .table,
body.dark-theme table,
.dark-theme .table,
.dark-theme table {
    color: #cbd5e1 !important;
    border-color: #374151 !important;
}

body.dark-theme .table th,
body.dark-theme table th,
.dark-theme .table th,
.dark-theme table th {
    background-color: #1a1e24 !important;
    color: #f1f5f9 !important;
    border-color: #374151 !important;
}

body.dark-theme .table td,
body.dark-theme table td,
.dark-theme .table td,
.dark-theme table td {
    background-color: #202630 !important;
    color: #cbd5e1 !important;
    border-color: #374151 !important;
}

/* 8. Breadcrumbs, Form Controls & Pagination */
body.dark-theme .breadcrumb,
.dark-theme .breadcrumb {
    background-color: #1a1e24 !important;
}

body.dark-theme .breadcrumb-item,
body.dark-theme .breadcrumb-item a,
.dark-theme .breadcrumb-item,
.dark-theme .breadcrumb-item a {
    color: #94a3b8 !important;
}

body.dark-theme .breadcrumb-item.active,
.dark-theme .breadcrumb-item.active {
    color: #f1f5f9 !important;
}

body.dark-theme input.form-control,
body.dark-theme select.form-control,
body.dark-theme textarea.form-control,
.dark-theme input.form-control,
.dark-theme select.form-control,
.dark-theme textarea.form-control {
    background-color: #1a1e24 !important;
    border-color: #374151 !important;
    color: #f1f5f9 !important;
}

body.dark-theme .page-link,
.dark-theme .page-link {
    background-color: #242a35 !important;
    border-color: #374151 !important;
    color: #cbd5e1 !important;
}

body.dark-theme .page-item.active .page-link,
.dark-theme .page-item.active .page-link {
    background-color: var(--theme-primary, #cf2d1e) !important;
    border-color: var(--theme-primary, #cf2d1e) !important;
    color: #ffffff !important;
}

/* 9. Footer & Social Elements */
body.dark-theme footer,
body.dark-theme .footer,
.dark-theme footer,
.dark-theme .footer {
    background-color: #14171c !important;
    color: #cbd5e1 !important;
    border-top: 1px solid #28303d !important;
}

body.dark-theme footer a,
body.dark-theme .footer a,
.dark-theme footer a,
.dark-theme .footer a {
    color: var(--theme-secondary, var(--theme-primary, #cf2d1e));
}

body.dark-theme footer .social-media-list ul li a:hover,
.dark-theme footer .social-media-list ul li a:hover {
    background: #374151 !important;
}

/* 10. Language Switcher */
body.dark-theme .tx-srlanguagemenu-links div a,
.dark-theme .tx-srlanguagemenu-links div a {
    background: #242a35 !important;
    border-color: #374151 !important;
    color: #e2e8f0 !important;
}

body.dark-theme .tx-srlanguagemenu-links div.CUR a,
.dark-theme .tx-srlanguagemenu-links div.CUR a {
    background: #000000 !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

/* ==========================================================================
   COMMENCEMENT CEREMONY REGISTRATION (.ccr-section)
   Elegant, modern showcase section for the Commencement Registration System.
   Fully responsive (Mobile-first), WCAG AA compliant & Dark Theme compatible.
   ========================================================================== */

.ccr-section {
    position: relative;
    background: linear-gradient(135deg, #fdfbf7 0%, #fff7f4 50%, #f7f3ec 100%) !important;
    border-top: 1px solid rgba(181, 143, 100, 0.25);
    border-bottom: 1px solid rgba(181, 143, 100, 0.25);
    padding: 3.5rem 0 4rem 0 !important;
    overflow: hidden;
    font-family: inherit;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

/* Background Ambient Glow Orbs */
.ccr-section::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ccr-section::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(207, 45, 30, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ccr-section .container {
    position: relative;
    z-index: 2;
}

/* 1. Header Typography & Subtitle */
.ccr-section .Hightlight h2 {
    /* font-family: "athitibold", "Kanit", sans-serif !important; */
    /* font-size: 2rem !important; */
    /* font-weight: 700 !important; */
    color: var(--theme-burgundy, #8c1515) !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em;
}

.ccr-section .Hightlight h3 {
    color: var(--theme-gold-dark, #b58f64) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem !important;
}

/* 2. Announcement Schedule Notice (.frame-type-text) */
.ccr-section .frame-type-text p em {
    font-style: normal !important;
    display: inline-block;
    background: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    border-left: 4px solid var(--theme-primary, #cf2d1e);
    box-shadow: 0 4px 16px rgba(181, 143, 100, 0.1);
    color: #333333 !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
}

/* 3. Columns Layout & Card Presentation */
.ccr-section .frame-type-ce_columns2 {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.ccr-section .row {
    align-items: center !important;
    row-gap: 2rem !important;
}

/* Featured Graduation Image */
.ccr-section .ce-col:first-child p {
    margin: 0 !important;
    position: relative;
}

.ccr-section .ce-col:first-child img {
    border: 10px solid #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 36px rgba(140, 21, 21, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

.ccr-section .ce-col:first-child img:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 22px 45px rgba(140, 21, 21, 0.18), 0 8px 16px rgba(0, 0, 0, 0.08) !important;
}

/* 4. Action CTA Button (The Registration Link) */
.ccr-section .box-link {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ccr-section .box-link .frame {
    width: 100%;
}

.ccr-section .box-link ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

.ccr-section .box-link li {
    margin: 0 !important;
    width: 100%;
}

.ccr-section .box-link li a {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 1.25rem 2rem !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 50rem !important;
    background: linear-gradient(135deg, var(--theme-primary, #cf2d1e) 0%, #9e1515 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 10px 25px rgba(207, 45, 30, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    overflow: hidden;
    text-align: center;
}

/* Subtle Shimmer Sheen Effect */
.ccr-section .box-link li a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
}

/* Interactive Hover States */
.ccr-section .box-link li a:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e53828 0%, #b31818 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 16px 32px rgba(207, 45, 30, 0.42), 0 0 20px rgba(212, 175, 55, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.ccr-section .box-link li a:hover::before {
    transform: scale(1.18);
}

.ccr-section .box-link li a:hover::after {
    left: 150%;
}

.ccr-section .box-link li a:active {
    transform: translateY(-1px) scale(0.99) !important;
    box-shadow: 0 6px 16px rgba(207, 45, 30, 0.35) !important;
}

/* 5. Mobile-first Responsive Breakpoints */
@media (min-width: 768px) {
    .ccr-section {
        padding: 4.5rem 0 5rem 0 !important;
    }
    
    .ccr-section .Hightlight h2 {
        font-size: 2.35rem !important;
    }
    
    .ccr-section .Hightlight h3 {
        font-size: 1.3rem !important;
    }
    
    .ccr-section .ce-col:first-child img {
        border-width: 14px !important;
    }
    
    .ccr-section .box-link li a {
        padding: 1.35rem 2.5rem !important;
        font-size: 1.35rem !important;
    }
}

@media (min-width: 992px) {
    .ccr-section .box-link {
        padding-left: 1.5rem;
    }
}

/* 6. Dark Theme Compatibility (body.dark-theme & .dark-theme) */
body.dark-theme .ccr-section,
.dark-theme .ccr-section {
    background: linear-gradient(135deg, #181c24 0%, #1c202a 50%, #151820 100%) !important;
    border-top-color: #2e3542 !important;
    border-bottom-color: #2e3542 !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .ccr-section::before,
.dark-theme .ccr-section::before {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%) !important;
}

body.dark-theme .ccr-section::after,
.dark-theme .ccr-section::after {
    background: radial-gradient(circle, rgba(207, 45, 30, 0.1) 0%, transparent 70%) !important;
}

body.dark-theme .ccr-section .Hightlight h2,
.dark-theme .ccr-section .Hightlight h2 {
    color: #f1f5f9 !important;
}

body.dark-theme .ccr-section .Hightlight h3,
.dark-theme .ccr-section .Hightlight h3 {
    color: var(--theme-gold, #d4af37) !important;
}

body.dark-theme .ccr-section .frame-type-text p em,
.dark-theme .ccr-section .frame-type-text p em {
    background: #242a35 !important;
    border-left-color: var(--theme-gold, #d4af37) !important;
    color: #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .ccr-section .ce-col:first-child img,
.dark-theme .ccr-section .ce-col:first-child img {
    border-color: #242a35 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
}

body.dark-theme .ccr-section .box-link li a,
.dark-theme .ccr-section .box-link li a {
    background: linear-gradient(135deg, var(--theme-primary, #cf2d1e) 0%, #7d1212 100%) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .ccr-section .box-link li a:hover,
.dark-theme .ccr-section .box-link li a:hover {
    background: linear-gradient(135deg, #e53828 0%, #9e1515 100%) !important;
    border-color: var(--theme-gold, #d4af37) !important;
    box-shadow: 0 16px 32px rgba(207, 45, 30, 0.45), 0 0 15px rgba(212, 175, 55, 0.25) !important;
}

/* ==========================================================================
   HEADER SHORTCUT MENU (.head-shortcut-menu)
   Mobile-first, WCAG AA accessible CTA pill for Commencement Header utilities.
   Overrides legacy theme.css & v11-custom.css specificity conflicts.
   ========================================================================== */

/* 1. Outer Container Reset (Mobile-first) */
header .header-primary .head-shortcut-menu,
.head-shortcut-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    flex: 0 1 auto;
    padding: 0.35rem 0 0 0;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. List Layout & Alignment (Overrides theme.css space-between) */
header .header-primary .head-shortcut-menu ul,
.head-shortcut-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end !important;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

header .header-primary .head-shortcut-menu ul li,
.head-shortcut-menu ul li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

/* 3. Shortcut Pill Button (Mobile-first: Full-width inside mobile drawer) */
header .header-primary .head-shortcut-menu ul li a,
.head-shortcut-menu ul li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 1.15rem !important;
    font-family: "athitisemibold", "Prompt", sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    line-height: 1.35;
    color: var(--theme-burgundy, #8c1515) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f5 100%) !important;
    border: 1.5px solid rgba(207, 45, 30, 0.3) !important;
    border-radius: 50rem !important;
    box-shadow: 0 3px 10px rgba(140, 21, 21, 0.1) !important;
    text-decoration: none !important;
    text-align: center;
    white-space: normal;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
}



/* 4. Interactive Hover, Focus & Active States */
header .header-primary .head-shortcut-menu ul li a:hover,
.head-shortcut-menu ul li a:hover {
    background: linear-gradient(135deg, var(--theme-primary, #cf2d1e) 0%, var(--theme-burgundy, #8c1515) 100%) !important;
    color: #ffffff !important;
    border-color: var(--theme-gold, #d4af37) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(207, 45, 30, 0.28) !important;
}

header .header-primary .head-shortcut-menu ul li a:hover::before,
.head-shortcut-menu ul li a:hover::before {
    color: var(--theme-gold, #d4af37);
    transform: scale(1.1);
}

header .header-primary .head-shortcut-menu ul li a:active,
.head-shortcut-menu ul li a:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(207, 45, 30, 0.2) !important;
}

/* WCAG 2.4.7 Focus-Visible Ring */
header .header-primary .head-shortcut-menu ul li a:focus-visible,
.head-shortcut-menu ul li a:focus-visible {
    outline: 2px solid var(--theme-gold, #d4af37) !important;
    outline-offset: 2px;
}

/* 5. Desktop Breakpoint (min-width: 992px) */
@media (min-width: 992px) {
    header .header-primary .head-shortcut-menu,
    .head-shortcut-menu {
        width: auto;
        padding: 0.5rem 0 0 0;
    }

    header .header-primary .head-shortcut-menu ul,
    .head-shortcut-menu ul {
        width: auto;
        flex-wrap: nowrap;
    }

    header .header-primary .head-shortcut-menu ul li,
    .head-shortcut-menu ul li {
        width: auto;
    }

    header .header-primary .head-shortcut-menu ul li a,
    .head-shortcut-menu ul li a {
        width: auto;
        white-space: nowrap;
        padding: 0.45rem 1.15rem !important;
        font-size: 0.95rem !important;
    }
}

/* 6. Dark Theme Compatibility (body.dark-theme & .dark-theme) */
body.dark-theme header .header-primary .head-shortcut-menu,
body.dark-theme .head-shortcut-menu,
.dark-theme header .header-primary .head-shortcut-menu,
.dark-theme .head-shortcut-menu {
    background-color: transparent !important;
}

body.dark-theme header .header-primary .head-shortcut-menu ul li a,
body.dark-theme .head-shortcut-menu ul li a,
.dark-theme header .header-primary .head-shortcut-menu ul li a,
.dark-theme .head-shortcut-menu ul li a {
    background: #242a35 !important;
    color: #f1f5f9 !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme header .header-primary .head-shortcut-menu ul li a::before,
body.dark-theme .head-shortcut-menu ul li a::before,
.dark-theme header .header-primary .head-shortcut-menu ul li a::before,
.dark-theme .head-shortcut-menu ul li a::before {
    color: var(--theme-gold, #d4af37) !important;
}

body.dark-theme header .header-primary .head-shortcut-menu ul li a:hover,
body.dark-theme .head-shortcut-menu ul li a:hover,
.dark-theme header .header-primary .head-shortcut-menu ul li a:hover,
.dark-theme .head-shortcut-menu ul li a:hover {
    background: linear-gradient(135deg, var(--theme-primary, #cf2d1e) 0%, var(--theme-burgundy, #8c1515) 100%) !important;
    color: #ffffff !important;
    border-color: var(--theme-gold, #d4af37) !important;
    box-shadow: 0 6px 18px rgba(207, 45, 30, 0.45) !important;
}

body.dark-theme header .header-primary .head-shortcut-menu ul li a:hover::before,
body.dark-theme .head-shortcut-menu ul li a:hover::before,
.dark-theme header .header-primary .head-shortcut-menu ul li a:hover::before,
.dark-theme .head-shortcut-menu ul li a:hover::before {
    color: #ffffff !important;
}
