/* ==========================================================================
   MFU MICROSITE THEME: THEME-MPIC
   Description: Standardized and modular styles for TYPO3 CMS & Bootstrap.
   ========================================================================== */

/* ==========================================================================
   01. THEME VARIABLES & DESIGN TOKENS (:root)
   ========================================================================== */
:root {
    --theme-primary: #3a7658;
    --theme-secondary: #ae1b1f;
    --theme-text-dark: #333333;
    --theme-white: #ffffff;
}

/* ==========================================================================
   02. HEADER & NAVIGATION
   ========================================================================== */
header .header-menu-bar {
    background-color: var(--theme-primary, #3a7658);
}

/* 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 */
}

.header-page {
    font-size: 4em;
    font-weight: 600;
    border-left: 25px var(--theme-secondary, #ae1b1f) solid;
    padding-left: 10px;
}

/* ==========================================================================
   03. BUTTONS & INTERACTIVE LINKS
   ========================================================================== */
/* Container wrapper */
.more-link { 
    text-align: right; 
    margin: 20px 0; 
}

/* Button: More Link with Animated SVG Arrow */
.more-link a {
    font-family: "athitimedium", sans-serif;
    font-size: 90%;
    background-color: var(--theme-primary, #3a7658);
    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, #3a7658);
    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);
}

header .header-primary .action-menu-list .action-menu-item a.primary-link {
    background-color: #cf2d1e;
}

header .header-primary .action-menu-list .action-menu-item a {
    border: 0.0625rem solid #cf2d1e;
    color:#cf2d1e
}

/* ==========================================================================
   04. TYPOGRAPHY & SECTION HEADINGS
   ========================================================================== */
/*Headline*/
.head-line2 {
  font-weight: 400;
  border-left: 10px #EF3E36 solid;
  padding-left: 10px;
  margin-bottom: 50px;
}

.head-line2 h2 {
  color: #333333;
  font-size: 30px;
}

.head-line4, .frame-6 {
  text-transform: capitalize;
  margin-bottom:10px;
  border-bottom: 5px solid #A7DCB2;
  width: 100%;
}

.head-line4 h2, .frame-6 h2 {
  color:#232931;
  font-size:2rem;
  /*margin-bottom:-20px;*/
}

.head-line4 h3, .frame-6 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;
}

/* Title Typography */
.service-card .ce-bodytext h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   05. CONTENT FRAMES & CARDS
   ========================================================================== */
/*Hover Image*/
.hover-image img , .frame-18 img {

}

.hover-image img:hover , .frame-18 img:hover {
  transition: 1s ease;
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.05);
  box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
}

.frame-1 ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.frame-1 li a {
  display: block;
  color: #000;
  font-size: 16px;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #dddddd;
  border-radius: 5px;
  margin-bottom:5px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}

.frame-1 li a:hover {
    background-color: #8c1515;
    border: 1px solid #8c1515;
  color: white;
}

.frame-2 ul {
    list-style-type: none;
    font-size: 17px;
    font-weight:600;
    line-height:20pt;
    margin: 0;
    padding:0;
    width: 100%;
}

.frame-2 ul li a {
    display: block;
    padding: 5px 20px;
    margin-bottom: 10px;
    border-radius: 15px;
    color: #00303F;
    background-color: #F3F3F3;
    transition: all 0.3s;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.frame-2 li a:hover {
  background-color:var(--theme-secondary, #ae1b1f);
  color:#ffffff;
}

/* Menu Card Degree*/
.container-card {
  position: relative;
  width: 100%;
}

.image-card {
  display: block;
  width: 100%;
  height: auto;
  padding:10%;
}

.overlay-card {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #e71d36;
}

.container-card:hover .overlay-card {
  opacity: 1;
}

.text-card {
  color: white;
  font-size: 2em;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.ce-textpic {
    display: flex;
    align-items: flex-start; /* Custom styling */
    /* gap: 20px; */ /* Custom styling */
    flex-wrap: wrap; /* Custom styling */
    width: 100%; /* Custom styling */
}

/* Custom styling */
.ce-left {
    flex: 1;
    width: 100%; /* Custom styling */
}

.ce-left img {
    width: 100%;
    height: auto;
    display: block;
}

/* Custom styling */
.ce-bodytext {
    flex: 2;
    width: 100%; /* Custom styling */
    text-align: left; /* Custom styling */
}

/* 
 * 1. Column & Grid Adjustments 
 * Ensures columns stretch evenly in the Bootstrap grid 
 */
.service-card .col {
    display: flex;
    margin-bottom: 2rem; /* Adds bottom gap for mobile stacking */
}

/* 
 * 2. Main Card Container (.frame)
 * Styling the TYPO3 frame element to act as a Bootstrap card 
 */
.service-card .frame {
    width: 100%;
    background-color: #ffffff;
    border-radius: 0.5rem; /* Standard Bootstrap border radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); /* Subtle default shadow */
    overflow: hidden; /* Clips the image border-radius */
    position: relative; /* Required for the stretched-link pseudo-element */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform, box-shadow;
}

/* Card Hover State: Elegant lift effect */
.service-card .frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 
 * 3. TYPO3 Gallery Resets 
 * Removes default margins/paddings generated by TYPO3 to fit the card layout
 */
.service-card .ce-textpic,
.service-card .ce-gallery,
.service-card .ce-outer,
.service-card .ce-inner,
.service-card .ce-row,
.service-card .ce-column,
.service-card figure.image {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* 
 * 4. Image Styling 
 * Enforces uniform image sizes without distortion (Object-fit)
 */
.service-card .image-embed-item {
    width: 100%;
    height: 240px; /* Fixed height to keep all cards uniform */
    object-fit: cover; /* Centers and crops proportionally */
    transition: transform 0.5s ease;
    will-change: transform;
}

/* Subtle image zoom when the entire card is hovered */
.service-card .frame:hover .image-embed-item {
    transform: scale(1.05);
}

/* 
 * 5. Text & Content Area 
 */
.service-card .ce-bodytext {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1; /* Pushes the text to fill remaining space */
    display: flex;
    align-items: center; /* Vertically centers the title */
    justify-content: center;
}

/* 
 * 6. Link Styling & Clickable Card (Stretched Link Pattern)
 */
.service-card .ce-bodytext a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Highlight link color on card hover */
.service-card .frame:hover .ce-bodytext a {
    color: var(--theme-primary, #3a7658); /* Uses Bootstrap primary or fallback blue */
}

/* 
 * Magic Trick: Makes the ENTIRE card clickable, 
 * simulating Bootstrap's .stretched-link utility.
 */
.service-card .ce-bodytext a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* ==========================================================================
   06. TYPO3 CMS COMPONENTS & PAGINATION
   ========================================================================== */
.tx-mfunewsletter figure figcaption, .tx-mfuissue figure figcaption {
    background: #00adb5;
}

/* faq */
.tx-jpfaq ul {
  padding: 10px 0;
  clear: both;
}

.tx-jpfaq li h3 {
  border: 0;
  background: #F2EBDA;
  padding: 8px 20px;
  display: block;
  font-size: 18px;
  color: #61481C;
}

.tx-jpfaq li h3.questionUnfolded {
  background: #A47E3B;
  color:#ffffff;
}

.tx-jpfaq li h3:hover {
  background: #A47E3B;
  color:#ffffff;
  transition-duration: 0.4s;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
}

.tx-jpfaq li .jpfaqAnswer ul {
  padding: 0 0 0 40px;
}

.tx-jpfaq li .jpfaqAnswer ul li {
  list-style: disc;
  margin: 0;
}

.tx-jpfaq li .jpfaqAnswer ol li {
  list-style: decimal;
  margin: 0;
}

.jpfaqAnswer {
  font-family: 'Pridi', sans-serif;
  padding: 10px 25px;
  border: 1px solid #213253;
  font-size: 16px;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
}

.tx-jpfaq .jpfaqAll {
  position: relative;
}

.tx-jpfaq .jpfaqShowAll, .tx-jpfaq .jpfaqHideAll {
  float: right;
}

.f3-widget-paginator>li.current a {
    background: var(--theme-primary, #3a7658);
}

.f3-widget-paginator>li a:hover {
    background: var(--theme-primary, #3a7658);
    color:#ffffff;
}

.f3-widget-paginator>li>a {
    color: var(--theme-primary, #3a7658);
    border: 1px solid var(--theme-primary, #3a7658);
}

/* ==========================================================================
   07. SIDEBAR & NAVIGATION SHORTCUTS
   ========================================================================== */
.side-menu ul li.active a, .side-menu ul li a:hover {
    color: var(--theme-primary, #3a7658);
}

/* ==========================================================================
   08. FOOTER & SOCIAL MEDIA
   ========================================================================== */
.footer {
    background-color: var(--theme-primary, #3a7658);
}

/*Social media*/
footer .social-media-list, .social-media-list {
    margin-bottom:100px;
    /*float:left;*/
}

footer .social-media-list ul , .social-media-list ul {
    float: left;
}

footer .social-media-list ul li a , .social-media-list ul li a {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

footer .social-media-list ul li a.facebook , .social-media-list ul li a.facebook {
    background:#4267B2;
}

footer .social-media-list ul li a.youtube , .social-media-list ul li a.youtube {
    background:#FF0000;
}

footer .social-media-list ul li a.twitter , .social-media-list ul li a.twitter {
    background:#14171A;
}

footer .social-media-list ul li a.instagram , .social-media-list ul li a.instagram {
    background:#FCAF45;
}

footer .social-media-list ul li a:hover , .social-media-list ul li a:hover {
    background:#333333;
}

.social-box ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.social-box li a {
  display: block;
  color: #303841;
  padding: 8px;
  text-decoration: none;
  margin-bottom: 5px;
  font-size: 100%;
  font-family: "athitisemibold", sans-serif;
  border: 1px solid #13564B;
  border-radius: 0;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  background-color: #ffffff;
}

.social-box li a.active {
  background-color: var(--theme-secondary, #ae1b1f);
  color: #ffffff;
}

.social-box li a:hover:not(.active) {
  background-color: #13564B;
  color: #ffffff;
  border: 1px solid #13564B;
}

/* ==========================================================================
   09. RESPONSIVE & MEDIA QUERIES
   ========================================================================== */
/* ( 768px) */
@media (max-width: 768px) {
    .ce-textpic {
        flex-direction: column; /* Custom styling */
        align-items: center; /* Custom styling */
    }

    .ce-left, .ce-bodytext {
        max-width: 100%; /* Custom styling */
    }

    .ce-left img {
        max-width: 80%; /* Custom styling */
        margin: 0 auto; /* Custom styling */
    }

    .ce-bodytext {
        text-align: left; /* Custom styling */
    }
}



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

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;
}
