/* ==========================================================================
   MFU MICROSITE THEME: THEME-GLOBAL
   Description: Standardized and modular styles for TYPO3 CMS & Bootstrap.
   ========================================================================== */

/* ==========================================================================
   01. THEME VARIABLES & DESIGN TOKENS (:root)
   ========================================================================== */
:root {
    --theme-primary: #8c1515;
    --theme-secondary: #222831;
    --theme-text-dark: #333333;
    --theme-white: #ffffff;
}

/* ==========================================================================
   02. HEADER & NAVIGATION
   ========================================================================== */
header .header-menu-bar {
    background: linear-gradient(to right, #fc464b 0%, #3f5efb 100%);
}

/* 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 */
}

/* 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: var(--theme-secondary, #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: var(--theme-secondary, #222831)
}

.btn-instrument {
    color: var(--theme-secondary, #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)
}

/* ==========================================================================
   04. TYPOGRAPHY & SECTION HEADINGS
   ========================================================================== */
.head-line2 {
   border-left: 15px solid #cf2d1e;
   padding-left:5px;
}

.head-line4 h2 {
  font-size:25px;
  color: #ffffff;
  margin:10px;
}

.head-line4 .heading4 {
  display:inline-block;
  background-color:#ed213a;
  margin-bottom:20px;
}

.head-line5 h2 {
  font-size:20px;
  color: #ffffff;
  margin:10px;
}

.head-line5 .heading5 {
  display:inline-block;
  background-color:#ED1C24;
}

.frame-15 h2 {
    color: #AE1B1F;
}

/* ==========================================================================
   05. CONTENT FRAMES & CARDS
   ========================================================================== */
/*Service Box*/
.service-box {
  font-family: "athitisemibold", sans-serif;
  position: relative;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

.service-box ul, .service-box ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-box ul {
  box-sizing: border-box;
  overflow: hidden;
  display:block;
}

.service-box ul li {
  width: 32.5%;
  position: relative;
  min-height: 1px;
  float: left;
  margin: 5px 5px 20px 5px;
  border-radius: 20px;
}

.service-box ul li a {
  font-size: 110%;
  font-weight: 500;
  margin: auto;
  padding: 15px 15px;
  color: #FFFFFF;
  display: block;
  background-color: #111F4D;
  border-radius: 20px;
  text-align: center;
  -webkit-transition-duration: .5s;
  -moz-transition-duration: .5s;
  -o-transition-duration: .5s;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.service-box ul li a:hover {
  background: #E43A19;
  color: #fff;
}

.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: var(--theme-secondary, #222831);
  color: white;
}

.block3d {
  /* border: 2px solid #45526C; */
  padding:30px 10px;
  box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
  background: #F8F5F1;
  border-radius:20px;
}

.sidebar-intro ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sidebar-intro li a {
  display: block;
  background: #A30B2E;
  border-radius: 5px;
  box-shadow: rgb(0 0 0 / 7%) 0px 1px 1px, rgb(0 0 0 / 7%) 0px 2px 2px, rgb(0 0 0 / 7%) 0px 4px 4px, rgb(0 0 0 / 7%) 0px 8px 8px, rgb(0 0 0 / 7%) 0px 16px 16px;
  color: #ffffff;
  padding: 10px;
  text-decoration: none;
  margin-bottom: 15px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  font-weight: 600;
}

.sidebar-intro li.active a {
  background: #F5E6CA;
  color: #492F10;
}

.sidebar-intro li a:hover:not(.active) {
  background: #F5E6CA;
  color: #492F10;
}

.sdg-item a {
  color:#FFFFFF;
}

.sdg-item a:hover {
  color:#EEEEEE;
}

/* ==========================================================================
   06. TYPO3 CMS COMPONENTS & PAGINATION
   ========================================================================== */
.f3-widget-paginator>li.current a {
    background: #AE1B1F;
}

.f3-widget-paginator>li a:hover {
    background: #AE1B1F;
    color:#ffffff;
}

.f3-widget-paginator>li>a {
    color: #000000;
    border: 1px solid #AE1B1F;
}

/* ==========================================================================
   07. 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: 110%;
  padding: 8px 14px;
  text-decoration: none;
  background: #f2f2f2;
  border-radius: 15px;
  border:#CED4DA 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;
  text-align: center;
  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;
}

.box-link li a:hover {
  background-color: #CF2D1E;
  color: white;
  border:1px solid #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:#303841;
      border: 1px solid #303841;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    color:#FFFFFF;
}

.side-menu ul li.active a {
    color: #ffffff;
    background: #303841;
    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 #303841;
}

/* ==========================================================================
   08. FOOTER & SOCIAL MEDIA
   ========================================================================== */
footer {
background:#ed213a;
}

/* ==========================================================================
   09. 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;
}

/* ==========================================================================
   10. RESPONSIVE & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 576px) {
  .service-box ul li{ width:100%; }
}

@media (min-width: 992px) {
.card-img-2col , .card-img-3col{
    height: 10vw;
}}

/* ==========================================================================
   GLOBAL RELATIONS DIVISION: SERVICE CARDS (Mobile-First)
   Modern, accessible service cards for TYPO3 textpic elements.
   ========================================================================== */

/* Main Grid Container */
.list-service {
    row-gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

/* Ensure each column stretches to full equal height */
.list-service > .col {
    display: flex;
    flex-direction: column;
}

/* Card Outer Container (Handles both with & without .service-box_2) */
.list-service .service-box_2,
.list-service > .col > .frame-type-textpic {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}

.list-service .service-box_2 .frame,
.list-service > .col > .frame-type-textpic {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    margin: 0 !important;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

/* Hover Interaction: Smooth Lift & Accent Glow */
.list-service .service-box_2 .frame:hover,
.list-service > .col > .frame-type-textpic:hover {
    transform: translateY(-6px);
    border-color: #3f5efb;
    box-shadow: 0 16px 32px -4px rgba(63, 94, 251, 0.12),
                0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

/* TYPO3 Wrapper Flex Column Alignment */
.list-service .ce-textpic {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
}

/* Reset TYPO3 Gallery Wrappers */
.list-service .ce-gallery,
.list-service .ce-outer,
.list-service .ce-inner,
.list-service .ce-row,
.list-service .ce-column,
.list-service figure.image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* Icon / Image Container */
.list-service figure.image a,
.list-service figure.image .image-embed-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.list-service .image-embed-item {
    width: 90px;
    height: 90px;
    object-fit: contain;
    padding: 12px;
    background: #f8fafc;
    border-radius: 50%;
    border: 1px solid #edf2f7;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle Icon Hover Effect */
.list-service .service-box_2 .frame:hover .image-embed-item,
.list-service > .col > .frame-type-textpic:hover .image-embed-item {
    transform: scale(1.08);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Content Text Area */
.list-service .ce-bodytext {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
}

/* Card Title: Override inline font & color */
.list-service .ce-bodytext h3 {
    font-family: "athitisemibold", "Prompt", sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
}

.list-service .ce-bodytext h3 span,
.list-service .ce-bodytext h3 a,
.list-service .ce-bodytext h3 a span {
    font-family: inherit !important;
    color: var(--theme-secondary, #1e293b) !important;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.list-service .service-box_2 .frame:hover .ce-bodytext h3 span,
.list-service > .col > .frame-type-textpic:hover .ce-bodytext h3 span {
    color: #e43a19 !important; /* MFU Accent Red */
}

/* Remove empty paragraphs created by TYPO3 RTE */
.list-service .ce-bodytext p:empty,
.list-service .ce-bodytext p:has(> span:empty) {
    display: none;
    margin: 0;
}

/* Description Text (e.g., Item 9 - Database Sub-items) */
.list-service .ce-bodytext p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0.5rem 0 0 0;
    text-align: left;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

/* Highlight Note (e.g., Please log-in with MFU E-Mail ONLY) */
.list-service .ce-bodytext p span[style*="color:#ed2a3a"] {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e43a19 !important;
}

/* ==========================================================================
   DARK THEME COMPATIBILITY
   ========================================================================== */
body.dark-theme .list-service .service-box_2 .frame,
body.dark-theme .list-service > .col > .frame-type-textpic,
[data-theme="dark"] .list-service .service-box_2 .frame,
[data-theme="dark"] .list-service > .col > .frame-type-textpic {
    background-color: #232830;
    border-color: #343c48;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-theme .list-service .image-embed-item,
[data-theme="dark"] .list-service .image-embed-item {
    background-color: #1a1e24;
    border-color: #343c48;
}

body.dark-theme .list-service .ce-bodytext h3 span,
[data-theme="dark"] .list-service .ce-bodytext h3 span {
    color: #ffffff !important;
}

body.dark-theme .list-service .ce-bodytext p,
[data-theme="dark"] .list-service .ce-bodytext p {
    background-color: #1e242d;
    border-color: #374151;
    color: #94a3b8;
}
/* ==========================================================================
   STRETCHED CARD LINK OVERLAY
   Forces the inner image link to cover the entire card surface.
   ========================================================================== */

/* 1. Set the card frame as the relative boundary */
.list-service .service-box_2 .frame,
.list-service > .col > .frame-type-textpic {
    position: relative !important;
    cursor: pointer;
}

/* 2. Reset relative positioning on intermediate parents so the link can stretch */
.list-service .ce-textpic,
.list-service .ce-gallery,
.list-service .ce-outer,
.list-service .ce-inner,
.list-service .ce-row,
.list-service .ce-column,
.list-service figure.image,
.list-service figure.image > a {
    position: static !important;
}

/* 3. Stretch the anchor overlay across the entire card */
.list-service figure.image > a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* 4. Keep secondary text links accessible if needed */
.list-service .ce-bodytext a {
    position: relative;
    z-index: 11;
}