/* ==========================================================================
   MFU MICROSITE THEME: THEME-LIBRARY
   Description: Standardized and modular styles for TYPO3 CMS & Bootstrap.
   ========================================================================== */

/* ==========================================================================
   01. THEME VARIABLES & DESIGN TOKENS (:root)
   ========================================================================== */
:root {
    --theme-primary: #8c1515;
    --theme-secondary: #cf2d1e;
    --theme-text-dark: #333333;
    --theme-white: #ffffff;
}

/* ==========================================================================
   02. HEADER & NAVIGATION
   ========================================================================== */
/* Default styles for menu links */
header .header-menu-bar .menu-list > li > a {
    color: #ffffff !important; /* Default text color */
    background: transparent !important; /* Default background */
    position: relative;
    transition: color 0.3s, background 0.3s;
}

/* Hover and active styles for all menu items */
header .header-menu-bar .menu-list > li:hover > a,
header .header-menu-bar .menu-list > li.active > a {
    color: #333333 !important; /* Text color for hover and active state */
    background: #ffffff !important; /* Background color for hover and active state */
    border-radius: 0.3125rem;
}

/* Submenu 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; /* Default arrow color */
    border-left: 0.3125rem solid transparent;
    border-right: 0.3125rem solid transparent;
    transition: border-top 0.3s;
}

/* Hover and active styles 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: 0.3125rem solid #333333 !important; /* Arrow color for hover and active state */
}

.search-collapse .card-header {
    padding: 0;
    border-radius: 0px;


}

.search-collapse .card-header button {
    width: 100%;
    text-align: left;
    padding: 6px 12px;
    border-width: 0px;
    border-bottom: 2px solid #ca8200;
    border-radius: 0px;
    color: var(--theme-primary, #8c1515);
    background-color: #fff;


}

.search-collapse .card-header button.collapsed {
    border-bottom: none;
    color: #555;
    background-color: transparent;
}

.search-collapse .card-header button:hover,
.search-collapse .card-header button:focus {
    background: none;
    text-decoration: none;
    background-color: #fff;
}

/* 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);
}

.btn-port {
    border-radius: 0;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s
}

.btn-port.btn-porttheme {
    background: #f2f1eb;
    color: #222831;
    width: 100%;
    border-radius: 5px;
    text-align: left;
    font-size: 17px;
    margin: 1px 0;
    font-weight: 300;
    white-space: normal!important
}

.btn-port.btn-porttheme:hover, .btn-port.btn-porttheme:active {
    color: #FFF;
    background: #222831
}

.btn-instrument {
    color: #222831;
    width: 100%;
    text-align: left;
    font-size: 17px;
    margin: 1px 0;
    font-weight: 300;
    white-space: normal!important;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
    border-left: 5px solid var(--theme-primary, #8c1515)
}

.btn-instrument:hover, .btn-instrument:active {
    color: var(--theme-primary, #8c1515);
    border-left: 15px solid var(--theme-primary, #8c1515)
}

.tx-srlanguagemenu-links div a {
    border-radius:0px;
    width:50px;
    border: 0.0625rem solid #333333;
    background: #FFFFFF;
    color:#333333;
}

.tx-srlanguagemenu-links div a:hover {
     background:#333333;
     color:#ffffff;
}

.tx-srlanguagemenu-links div.CUR a {
    background: #333333;
    color:#FFFFFF;
}

/* ==========================================================================
   04. TYPOGRAPHY & SECTION HEADINGS
   ========================================================================== */
.head-line2 {
   border-left: 15px solid var(--theme-secondary, #cf2d1e);
   padding-left:5px;
}

.head-line4 {
  text-transform: capitalize;
  margin-bottom:10px;
  border-bottom:5px solid #C71021;
  width:100%;
}

.head-line4 h2 {
  color:#232931;
  /*margin-bottom:-20px;*/
  font-size: 2.5rem;
}

.head-line4 h3 {
  border-bottom:0px;
    font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: rgba(0, 0, 0, 0.4);
  padding-bottom: 10px;
  margin-bottom:0;
}

/*headline 6*/
.frame-6 h2 {
  font-size:120%;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5em;
  padding-bottom: 15px;
  position: relative;
}

/*.frame-6 h2:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 55px;
  background-color: #111;
}*/
.frame-6 h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 3px;
  width: 95%;
  max-width: 255px;
  background-color: #C71021;
}

/* ==========================================================================
   05. CONTENT FRAMES & CARDS
   ========================================================================== */
/*Service Box*/
.service-box {
  font-family: 'athitimedium',sans-serif;
}

.service-box ul li a {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-content: center;
}

.servicebox {
    position: relative;
    width: 100%;
    margin-top: 30px;
}

.servicebox .table .table-cell {
    font-size: 19px;
    line-height: 1.3333333;
    border-radius: 5px;
    padding: 16px 20px;
    background: #f2f1eb;
    color: #222831;
    text-align: center;
    text-transform: uppercase;
}

.servicebox a {
    margin: auto;
    color: #222831;
    display: block;
    font-weight: 500;
}

.servicebox .table .table-cell:hover {
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    background: #222831;
    color: #fff;
    cursor: pointer;
}

.servicebox .table .table-cell:hover a {
    color: #fff;
    text-decoration: none;
}

.list-underline {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.list-underline li a {
  display: block;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  background: #f2f1eb;
  margin-bottom:10px;
  transition: all 0.3s;
  border-radius: 5px;
}

.list-underline li a:hover {
  background-color: #222831;
  color: white;
}

/*foot menu*/
.foot-shortcut-menu {
    font-family: 'athitimedium',sans-serif;
    display: table;
    width: 80%;
    float: none;
    margin: 0 auto;
}

.foot-shortcut-menu li {
  display: table-cell;
}

.foot-shortcut-menu a {
    display: block;
    text-align: center;
    margin: 0 5px;
    color:#ffffff;
}

.foot-shortcut-menu li a:hover {
  color: #FBD46D;
}

/*Library Link*/
.frame-12 ul {
  font-family: "athitimedium", sans-serif;
  list-style-type: none;
  line-height: 20pt;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}

.frame-12 li a {
  display: block;
  color: #333333;
  font-size: 100%;
  padding: 8px 14px;
  text-decoration: none;
  background: #fbfbfb;
  border-radius: 0px;
  border: #e8e8e8 solid 1px;
  margin-top: 5px;
  margin-bottom: 5px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  box-shadow: none;
}

.frame-12 li a:hover {
  background-color: var(--theme-secondary, #cf2d1e);
  color: white;
  border:1px solid var(--theme-secondary, #cf2d1e);
}

/* Custom styling */
.mfu-marked-link {
  border: 1px solid #eeeeee;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.frame-13 ul {
  position: relative;
  list-style: none;
  margin-left: 0;
  /* padding-left: 1.2em; */
  font-family: "athitimedium", sans-serif;
      -webkit-transition:all .3s;
  -moz-transition:all .3s;
  transition:all .3s;
}

/*.frame-13 ul li:before {
  content: "\f101";
  position: absolute;
  left: 0;
}*/
.frame-13 li {
    border-bottom:1px dashed #eeeeee;
}

.frame-13 li:hover {
    border-bottom:#c71021 1px dashed;
}

.frame-13 li a {
  font-size:100%;
  padding:0;
  background-color:#ffffff;
  color:#333333;
  margin-bottom:3px;
  display:block;
  border-radius:0px;
}

.frame-13 li a:hover {
  background-color:#ffffff;
  color:#C71021;
  text-decoration:none;
  padding:0;
}

/*-------- Search collapse ---------- */
.search-collapse-box {
    max-width: 353px;
}

.search-collapse .card {
    border-radius: 0px;
}

.search-collapse .card-body {
    padding: 15px 15px 0px;
    height: 131px;
}

/* elibrary 20250428 */
.tx-elibrary,.tx-elibrary article {position: relative;}

.tx-elibrary a {text-decoration: none;position: relative;}

.tx-elibrary article {border:1px solid #eee;}

.tx-elibrary .link-to-accesstype a {background-color: #eee;color: #555; display: block; margin-bottom: 15px;}

.tx-elibrary .linkfile {border-top: 1px solid #eee;padding: 10px 0 0 0;}

.tx-elibrary .linkfile ul,.tx-elibrary .linkfile ul li {list-style: none; padding:0; margin:0;}

.tx-elibrary .linkfile ul {display:flex; flex-wrap:wrap; gap:5px; justify-content: flex-start;}

.tx-elibrary .linkfile a {color:#ab0000; border: 1px solid #eee;display: block; padding:5px;}

.related-category, .category-subject {display:flex; gap: 5px;flex-wrap: wrap;}

.related-category a {color:#ab0000; background-color: #eee;}

.category-subject a {color:#ab0000; background-color: #eee;}

.category-accesstype a::before,
.category-academicfields a::before,
.category-resourcestype a::before {
    color: #ab0000;
    content: "\f105";
    display: inline-block;
    font-family: FontAwesome;
    font-size: 14px;
    left: 0;
    position: absolute;
    top: 4px;
}

/* elibrary 20250428 */
.news-nav-tabs .nav-tabs .nav-link.active {
    background-color: #FFFFFF;
    color: #000000;
}

.news-nav-tabs.df-tab .nav-tabs .nav-link:hover {background-color:#FFFFFF;color:var(--theme-primary, #8c1515);}

/* ==========================================================================
   06. SIDEBAR & NAVIGATION SHORTCUTS
   ========================================================================== */
/*Box link*/
.box-link ul {
  list-style-type: none;
  line-height: 20pt;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}

.box-link li a {
  display: block;
  color: #333333;
  font-size: 100%;
  padding: 8px 14px;
  text-decoration: none;
  background: #fbfbfb;
  border-radius: 0px;
  border: #e8e8e8 solid 1px;
  margin-top: 5px;
  margin-bottom: 5px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  box-shadow: none;
}

.box-link li a:hover {
  background-color: var(--theme-secondary, #cf2d1e);
  color: white;
  border:1px solid var(--theme-secondary, #cf2d1e);
}

.side-menu ul li a {
    border: 0.0625rem solid #f2f2f2;
    margin-bottom: 5px;
    padding: 10px;
    border-radius: 17px;
}

.side-menu ul li a:hover {
    background:#f2f2f2;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.side-menu ul li.active a {
    color: #ffffff;
    background:var(--theme-primary, #8c1515);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    border:1px solid var(--theme-primary, #8c1515);
}

/*Hotlink*/
.hotlink {
    font-family: 'athitisemibold',sans-serif;
    display: table;
    width: 100%;
    float: none;
    margin: 0 auto;
}

.hotlink li {
  display: table-cell;
}

.hotlink a {
    display: block;
    text-align: center;
    margin: 0 5px;
}

/* Change the link color to #111 (black) on hover */
.hotlink li a:hover {
  color: #C71021;
}

/* ==========================================================================
   07. FOOTER & SOCIAL MEDIA
   ========================================================================== */
footer {
     background:#C71021;
     border-top: 10px solid #f2f2f2;
     font-family: 'athitimedium',sans-serif;
}

footer .social-media-list ul li a {
    background: #ffffff;
    color: var(--theme-secondary, #cf2d1e);
}

footer .social-media-list ul li a:hover {
    background: var(--theme-secondary, #cf2d1e);
    color: #ffffff;
}

/* i tag */
footer .social-media-list ul li a i {
  color: inherit; /* inherit i tag parent element (a tag) */
}

/* hover */
footer .social-media-list ul li a:hover i {
    color: #ffffff;
}

footer .social-media-list ul {
    display: flex; /* Flexbox */
    justify-content: flex-start; /* Custom styling */
}

/* ==========================================================================
   08. DARK THEME OVERRIDES
   ========================================================================== */


/* ==========================================================================
   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, #8c1515) !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, #8c1515) !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, #8c1515) !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, #8c1515) !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, #8c1515) !important;
    color: #ffffff !important;
    border-color: var(--theme-primary, #8c1515) !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, #8c1515) !important;
    border-color: var(--theme-primary, #8c1515) !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, #8c1515) !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, #8c1515) !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, #8c1515) !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, #8c1515) !important;
    border-color: var(--theme-primary, #8c1515) !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, #8c1515));
}

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;
}

/* ==========================================================================
   09. RESPONSIVE & MEDIA QUERIES
   ========================================================================== */
@media (min-width: 992px) {
.card-img-2col , .card-img-3col{
    height: 10vw;
}}

@media (max-width: 991px) {
    header .header-primary .head-right {
        background-color: #FFFFFF;
        padding-bottom: 1.25rem;
    }
}

@media (max-width: 576px) {
    header .xs-head-logo img {
        max-width: 26rem;
    }
}

@media (min-width: 768px) {
    .link-to-accesstype {position: absolute; top:0; right:0;}   
    .related-category {font-size: 85%;}

}

/* ==========================================================================
   MFU AI Widget Custom Overrides
   ========================================================================== */

/* 1. Main Widget Container: Adjust position for mobile first */
#mfu-ai-widget-container {
  bottom: 15px !important;
  right: 15px !important;
  z-index: 1050 !important; /* Align with Bootstrap modal/sticky z-index */
  font-family: 'Prompt', sans-serif !important;
}

/* 2. Iframe Container: Responsive size (Mobile-first) */
#mfu-ai-widget-container > div {
  width: calc(100vw - 30px) !important;
  height: 550px !important;
  max-width: 100% !important;
  border-radius: 12px !important;
}

/* 3. Toggle Button: Custom color and branding */
#mfu-ai-widget-container > button {
  width: 54px !important;
  height: 54px !important;
  background-color: #8B1E1E !important; /* MFU Primary Red / Library Theme */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Ensure accessible focus indicator (WCAG Compliance) */
#mfu-ai-widget-container > button:focus-visible {
  outline: 3px solid #EAA31B !important; /* MFU Gold accent */
  outline-offset: 2px !important;
}

/* ==========================================================================
   Responsive Breakpoints (Desktop: Bootstrap >= 992px)
   ========================================================================== */
@media (min-width: 992px) {
  #mfu-ai-widget-container {
    bottom: 25px !important;
    right: 25px !important;
  }

  #mfu-ai-widget-container > div {
    width: 450px !important;
    height: 650px !important;
    max-height: calc(100vh - 120px) !important;
  }

  #mfu-ai-widget-container > button {
    width: 60px !important;
    height: 60px !important;
  }
}
/* ==========================================================================
   Fix: MFU AI Widget blocking right-side clicks/menus
   ========================================================================== */

/* 1. Make the container ignore mouse/touch clicks so they pass through to the page */
#mfu-ai-widget-container {
  pointer-events: none !important;
}

/* 2. Re-enable pointer events ONLY for the toggle button */
#mfu-ai-widget-container > button {
  pointer-events: auto !important;
}

/* ==========================================================================
   Mobile-first Optimization: Prevent oversized container
   ========================================================================== */
#mfu-ai-widget-container > div {
  /* Restrict max dimensions on mobile devices */
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100vh - 120px) !important;
}

@media (min-width: 992px) {
  #mfu-ai-widget-container > div {
    /* Set sensible desktop dimensions */
    width: 440px !important;
    height: 640px !important;
  }
}