/* ================================
   Perutz Inside - Main Stylesheet
   Adapted from SIWA Online GmbH original
   ================================ */

/* --- Custom Properties (matching original) --- */
:root {
    --bs-primary: #003855;
    --bs-secondary: #00d0c7;
    --bs-tertiary: #fd4c54;
    --bs-body-color: #003855;
    --bs-body-color-rgb: 0, 56, 85;
    --bs-link-color: #00d0c7;
    --bs-link-color-rgb: 0, 208, 199;
    --bs-link-hover-color: #00a69f;
    --bs-border-color: #003855;
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-body-line-height: 1.625;

    --bs-primary-rgb: 0, 56, 85;
    --bs-secondary-rgb: 0, 208, 199;
    --bs-tertiary-rgb: 253, 76, 84;

    --siwa-bg-color: #003855;
    --siwa-contrast-color: #00d0c7;
}

/* --- Fonts (loaded via TypoScript) --- */
body {
    font-family: 'Source Code Pro', monospace;
    color: var(--bs-body-color);
    line-height: 1.625;
    scroll-behavior: smooth;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
}

a:hover {
    color: var(--bs-link-hover-color);
}

img {
    max-width: 100%;
    height: auto;
}

hr {
    border-color: #003855;
    opacity: 1;
}

/* --- Headings --- */
h1, h2, h3, .h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

h1, .h1 {
    font-size: 25px;
    font-weight: 900;
    line-height: 30px;
}

/* --- Subheader stroke effect --- */
.subheader {
    display: block;
    margin-left: 1rem;
    margin-top: -0.5rem;
    -webkit-text-stroke: 2px #00d0c7;
    color: transparent;
}

/* --- Container override (xxl = 1664px like original) --- */
@media (min-width: 1400px) {
    .container {
        max-width: 1664px;
    }
}

/* === LAYOUT === */
#body-wrapper {
    min-height: 100vh;
    overflow: hidden;
    --siwa-header-size: 10rem;
}

@media (max-width: 1199.98px) { #body-wrapper { --siwa-header-size: 9rem; } }
@media (max-width: 991.98px)  { #body-wrapper { --siwa-header-size: 8rem; } }
@media (max-width: 767.98px)  { #body-wrapper { --siwa-header-size: 7rem; } }
@media (max-width: 575.98px)  { #body-wrapper { --siwa-header-size: 6rem; } }

/* === HEADER (fixed, white, light navbar) === */
header#header {
    background: #fff;
    position: fixed;
    width: 100vw;
    z-index: 20;
    border-bottom: 1px solid var(--bs-border-color);
}

header#header .navbar {
    height: var(--siwa-header-size);
}

header#header .h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    max-height: 100%;
    color: var(--bs-primary);
}

header#header .h1 .subheader {
    font-size: 7rem;
    margin-left: 4rem;
    margin-top: -4rem;
}

@media (max-width: 1199.98px) {
    header#header .h1 { font-size: 4rem; }
    header#header .h1 .subheader { font-size: 5rem; margin-left: 3rem; margin-top: -3rem; }
}

@media (max-width: 575.98px) {
    header#header .h1 { font-size: 2rem; }
    header#header .h1 .subheader { font-size: 2.5rem; margin-left: 1.5rem; margin-top: -1.5rem; }
}

/* --- Navbar Brand (MPL Logo) --- */
.navbar-brand {
    max-width: 90px;
}

@media (min-width: 576px) {
    .navbar-brand {
        max-width: none;
    }
}

/* --- Navbar Toggler (rotated hamburger) --- */
.navbar-toggler {
    border: 0;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 0;
    position: relative;
    transform: rotate(90deg);
    z-index: 25;
}

/* Open state: white lines on dark overlay */
.navbar-toggler .navbar-toggler-icon {
    background-color: #fff;
    background-image: none;
    display: block;
    height: 4px;
    width: 30px;
}

@media (min-width: 576px) {
    .navbar-toggler .navbar-toggler-icon {
        height: 6px;
        width: 40px;
    }
}

.navbar-toggler .navbar-toggler-icon + .navbar-toggler-icon {
    margin-top: 5px;
}

@media (min-width: 576px) {
    .navbar-toggler .navbar-toggler-icon + .navbar-toggler-icon {
        margin-top: 7px;
    }
}

/* Closed state: dark blue lines, no rotation */
.navbar-toggler.collapsed {
    transform: rotate(0);
}

.navbar-toggler.collapsed .navbar-toggler-icon {
    background-color: #003855;
}

/* --- Search toggler --- */
.search-toggler {
    display: inline-block;
    margin-right: 2rem;
    transform: rotate(90deg);
    color: #fff;
}

.search-toggler.collapsed {
    transform: rotate(0);
    color: #003855;
}

@media (max-width: 575.98px) {
    .search-toggler { margin-right: 1rem; }
}

#navbarSearch {
    z-index: 40;
}

/* === FULLSCREEN NAVIGATION OVERLAY (matches original: fixed + top:-100%/0) === */
.navbar-collapse {
    background: #003855;
    color: #fff;
    position: fixed;
    top: -100%;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    z-index: 7;
}

.navbar-collapse.show {
    top: 0;
    transition: top 0.3s ease;
}

#navbarMenu,
#navbarMenu a,
#navbarSearch,
#navbarSearch a {
    color: #fff;
}

header#header #navbarSearch .h1,
header#header #navbarMenu .h1 {
    color: #fff;
}

#navbarMenu .close,
#navbarSearch .close {
    position: absolute;
    right: 1rem;
    top: 3rem;
    z-index: 10;
    cursor: pointer;
}

#navbarMenu > .container,
#navbarSearch > .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#navbarMenu .navbar-nav .nav-item .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(1.2625rem + 0.15vw);
    color: #fff;
    margin-left: 0;
}

#navbarMenu hr {
    border-color: #fff;
}


/* === MAIN CONTENT === */
main {
    margin-top: var(--siwa-header-size);
    padding: 0.1px 0;
}

/* --- Content Frames --- */
.frame {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* ContentSidebar layout: CEs inside the 8/4 row have no extra margin */
.content-sidebar-row > [class*="col-"] > .frame {
    margin-top: 0;
    margin-bottom: 0;
}

/* Section-colored text CEs inside ContentSidebar: box-like styling */
.content-sidebar-row .frame-section-primary.frame-type-text,
.content-sidebar-row .frame-section-secondary.frame-type-text,
.content-sidebar-row .frame-section-tertiary.frame-type-text {
    padding: var(--bs-card-spacer-y, 1rem) var(--bs-card-spacer-x, 1rem);
    min-height: 10rem;
    text-align: right;
}

.frame-type-Carousel,
.frame-type-Container-2 {
    margin-top: 0;
    margin-bottom: 0;
}

.frame-space-before-small { margin-top: 2em; }
.frame-space-after-small { margin-bottom: 2em; }

@media (max-width: 767.98px) {
    .frame-space-before-small { margin-top: 1em; }
    .frame-space-after-small { margin-bottom: 1em; }
}

/* --- Frame Header --- */
.frame-type-header header h1 {
    font-size: 2.5rem;
}

.frame-type-header header h1 .subheader {
    margin-top: -0.75rem;
}

/* --- Blockquote (Playfair Display) --- */
blockquote {
    color: #003855;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    padding-top: 3rem;
    position: relative;
}

blockquote:before {
    content: "\201E";
    font-size: 10rem;
    left: -2rem;
    line-height: 0;
    position: absolute;
    top: -2rem;
    -webkit-text-stroke: 2px #fd4c54;
    color: transparent;
    z-index: -1;
}

@media (max-width: 767.98px) {
    blockquote:before { left: 2rem; }
}


/* --- Section Backgrounds --- */
.bg-primary {
    --siwa-bg-color: #003855;
    --siwa-contrast-color: #00d0c7;
}

.bg-secondary {
    --siwa-bg-color: #00d0c7;
    --siwa-contrast-color: #003855;
}

.bg-primary,
.bg-secondary,
.bg-secondary a {
    color: #fff;
}

/* --- Edge decorative element --- */
.edge {
    position: absolute;
    z-index: 1;
}

.edge:before,
.edge:after {
    background-color: #003855;
    content: "";
    position: absolute;
}

.edge:before {
    height: 20px;
    width: 50px;
}

.edge:after {
    height: 50px;
    width: 20px;
}

.edge.edge-top-left {
    left: -10px;
    top: -10px;
}

.edge.edge-top-left:before,
.edge.edge-top-left:after {
    left: 0;
    top: 0;
}

/* === NEWS === */
/* Header boxes inside content lists: not tile-sized */
.news-list-view .box,
.news-list-view .box.box-layout-100,
.news-list-view .box.box-layout-101,
.tx-sf-event-mgt .box,
.tx-sf-event-mgt .box.box-layout-100,
.tx-sf-event-mgt .box.box-layout-101 {
    min-height: 0;
    text-align: left;
    padding: 1rem;
}

/* News list thumbnail: fixed width so text wraps beside it, not below */
.news-list-view .news-img-wrap {
    width: 160px;
    max-width: 160px;
    flex-shrink: 0;
}

.news-list-view .news-img-wrap img {
    width: 160px;
    height: auto;
}

.news-list-item h3 {
    font-family: 'Playfair Display', serif;
    text-transform: none;
}

.news-list-item h3,
.news-list-item h3 a {
    color: #003855;
}

/* === NEWS DETAIL === */
/* All news-single styling (h1 font, teaser color, image width) comes from core.css.
   Do NOT override font-family, text-transform, color, or float here. */
.news-single .article {
    color: var(--bs-body-color);
}

.news-single .news-img-wrap {
    margin-bottom: 0;
}

.news-single .news-img-wrap img {
    width: 100%;
    height: auto;
}

.news-single .news-img-caption {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.news-single .news-text-wrap {
    line-height: 1.625;
}

.news-single .news-text-wrap p {
    margin-bottom: 1rem;
}

.news-single .news-text-wrap a {
    color: var(--bs-link-color);
    text-decoration: underline;
}

.news-single .my-4 a {
    color: var(--bs-primary);
    font-weight: 700;
    text-decoration: none;
}

.news-single .my-4 a:hover {
    color: var(--bs-link-color);
}

/* === COLLEAGUES WIDGET === */
.colleagues-wrapper {
    background-color: #f7f7f7;
    border: none;
    color: #003855;
    overflow: hidden;
    padding-top: 1rem;
    min-height: 280px;
}

.colleagues-wrapper p {
    font-size: 0.875rem;
}

.colleagues-wrapper .swiper-container h3 {
    font-family: 'Playfair Display', serif;
    text-transform: none;
}

/* === FELOGIN (Login Form) === */
#tx-felogin-input-username,
#tx-felogin-input-password {
    margin-bottom: 1rem;
}

/* === BREADCRUMB === */
.breadcrumb-item {
    align-items: center;
    display: flex;
}

.breadcrumb-item a {
    color: #00d0c7;
}

/* === FOOTER (minimal, matching original) === */
footer#footer {
    border-top: 1px solid var(--bs-border-color);
    padding: 3rem 0;
}

footer#footer a {
    color: var(--bs-body-color);
    margin: 0 1rem;
}

footer#footer a:hover {
    color: var(--bs-link-color);
}

/* === BUTTONS === */
.btn-primary {
    --bs-btn-bg: #003855;
    --bs-btn-border-color: #003855;
    --bs-btn-hover-bg: #003048;
    --bs-btn-hover-border-color: #002d44;
    --bs-btn-color: #fff;
}

/* === FRAME SECTION COLORS === */
.frame-section-primary {
    --siwa-bg-color: #003855;
    --siwa-contrast-color: #00d0c7;
}

.frame-section-secondary {
    --siwa-bg-color: #00d0c7;
    --siwa-contrast-color: #003855;
}

.frame-section-tertiary {
    --siwa-bg-color: #fd4c54;
    --siwa-contrast-color: #00d0c7;
}

.frame-section-primary .box,
.frame-section-secondary .box,
.frame-section-tertiary .box {
    color: #fff;
}

/* Frame section backgrounds (for regular CEs, not just boxes) */
/* Frame section colors — match core.css exactly, NO extra padding */
.frame-section-primary {
    background-color: rgba(var(--bs-primary-rgb), 1) !important;
    --siwa-bg-color: #003855;
    --siwa-contrast-color: #00d0c7;
}

.frame-section-secondary {
    background-color: rgba(var(--bs-secondary-rgb), 1) !important;
    --siwa-bg-color: #00d0c7;
    --siwa-contrast-color: #003855;
}

.frame-section-tertiary {
    background-color: rgba(var(--bs-tertiary-rgb), 1) !important;
    --siwa-bg-color: #fd4c54;
    --siwa-contrast-color: #003855;
}

.frame-section-primary,
.frame-section-primary a,
.frame-section-secondary,
.frame-section-secondary a,
.frame-section-tertiary,
.frame-section-tertiary a {
    color: #fff;
}

.frame-section-primary h1,
.frame-section-primary h2,
.frame-section-primary h3,
.frame-section-dark h1,
.frame-section-dark h2,
.frame-section-dark h3 {
    color: #fff;
}

.frame-section-grey {
    background-color: #f7f7f7;
}

.frame-section-dark {
    background-color: #000;
    color: #fff;
}
.frame-section-dark a { color: #00d0c7; }

/* Box frames must stay transparent so ::before border (z-index:-1) is visible */
.frame-type-Box {
    background-color: transparent !important;
}

/* Tertiary text color utility */
.text-tertiary { color: var(--bs-tertiary) !important; }
.bg-tertiary { background-color: var(--bs-tertiary) !important; }

/* Box layout 100/101 and offset classes: ALL defined in core.css
   Do NOT duplicate here - core.css has the correct values including
   :before pseudo-element positioning, border/background, transitions,
   hover effects, and responsive offset margins */

/* === SWIPER === */
.swiper-container {
    overflow: hidden;
}

/* Life carousel: match original sizing and centering */
#life-carousel .perutz-slide {
    text-align: center;
}

#life-carousel .ce-gallery,
#life-carousel figure.image {
    display: flex;
    justify-content: center;
}

#life-carousel .ce-bodytext {
    text-align: center;
    margin-top: 0.5rem;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
}

/* Swiper buttons: base styles from swiper.css (2rem, #003855, margin-left:4rem)
   Only add disabled state here */
.swiper-button-prev.disabled,
.swiper-button-next.disabled {
    color: #d3d3d3;
    cursor: auto;
    pointer-events: none;
}

.swiper-button-prev.disabled:hover,
.swiper-button-next.disabled:hover {
    color: #d3d3d3;
}

/* Hover color from swiper.css: #00a69f */

/* === EVENT LIST === */
.tx-sf-event-mgt .event-list-item {
    border-left: 3px solid var(--bs-secondary);
}

.event-list-item .event-title {
    font-family: 'Playfair Display', serif;
    text-transform: none;
}

.event-list-item .event-title a {
    color: #003855;
}

.event-list-item .fa-solid {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.5rem;
}

/* === FRAME SPACE MEDIUM NEGATIVE === */
.frame-space-before-medium-negative {
    margin-top: -2rem;
}

.frame-space-after-small-negative {
    margin-bottom: -1rem;
}

.frame-space-before-small-negative {
    margin-top: -1rem;
}

.frame-space-before-medium {
    margin-top: 2rem;
}

/* === FONT SIZE UTILITY === */
.font-size-2x {
    font-size: 2em;
}

/* FA icon sizes and spacing: defined in core.css, no override needed */

/* === ADDRESS BOOK === */
.tx-maxperutz-data .user-search {
    border: 1px solid var(--bs-border-color);
    padding: 0;
}

.tx-maxperutz-data .user-search input {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
}

.tx-maxperutz-data .user-search .btn {
    padding: 0.5rem 1rem;
    color: var(--bs-primary);
}

/* === SOLR SEARCH RESULTS ===
   core.css provides:
     .results-list .results-topic { color: #00d0c7 }
     .results-list .results-topic a { color: #003855 !important; font-family: Playfair Display !important; text-transform: none }
     .results-list .results-highlight { border-bottom: 2px solid; color: #003855; font-weight: 700 }
*/
.tx_solr h3.results-topic {
    text-transform: none;
    font-size: 1.125rem;
    line-height: 1.2;
}

.tx_solr .results-type-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #00d0c7;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Solr grid layout: col-md-3 (facets) + col-md-9 (search+results) side by side */
.tx_solr.container > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Hide empty debug row at top of search column to align with facets */
#tx-solr-search > .row:first-child {
    display: none;
}

/* Ensure both columns start at same vertical position */
.tx_solr.container > .row > .col-md-3,
.tx_solr.container > .row > .col-md-9 {
    padding-top: 0;
    margin-top: 0;
}

@media (min-width: 768px) {
    .tx_solr.container > .row > .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .tx_solr.container > .row > .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* === PUBLICATIONS (uses core.css styles) === */
.publication-list .pagination .page-link.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

#alphabet-toggle {
    background: none;
    border: none;
    color: var(--bs-primary);
    cursor: pointer;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.alphabet-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.alphabet-nav-item a {
    display: block;
    text-align: center;
    padding: 0.5rem;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 700;
}

.alphabet-nav-item a:hover {
    background: var(--bs-primary);
    color: #fff;
}

.alphabet-nav-item .letter-count {
    font-size: 0.75rem;
    font-weight: 400;
    display: block;
}

.user-list-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--bs-secondary);
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.5rem;
}

.letter-title {
    color: var(--bs-primary);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.user-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    font-size: 0.875rem;
}

.user-item .name {
    font-weight: 700;
}

.user-item .visitcard .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

/* === UTILITY === */
.container .container {
    padding: 0;
}

.fa-3x {
    font-size: 2.5rem;
}

/* === EVENT DETAIL IMAGE / CAROUSEL === */
.event-detail-image {
    display: block;
    height: auto;
    max-width: 100%;
    width: auto;
}

.event-image-wrap {
    max-width: 100%;
}

.event-carousel-nav .swiper-button-prev,
.event-carousel-nav .swiper-button-next {
    color: var(--bs-primary);
    cursor: pointer;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.event-carousel-nav .swiper-button-prev.disabled,
.event-carousel-nav .swiper-button-next.disabled {
    color: #d3d3d3;
    cursor: default;
    pointer-events: none;
}

/* === PERUTZ GALLERY: CSS-Grid based photo gallery with PhotoSwipe hooks ===
   Column count and gap are set inline via CSS variables from the CE settings.
   On smaller screens the grid falls back to fewer columns automatically. */
.perutz-gallery {
    display: grid;
    grid-template-columns: repeat(var(--perutz-gallery-cols, 4), minmax(0, 1fr));
    gap: var(--perutz-gallery-gap, 0.5rem);
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .perutz-gallery {
        grid-template-columns: repeat(min(var(--perutz-gallery-cols, 4), 4), minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .perutz-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479.98px) {
    .perutz-gallery {
        grid-template-columns: 1fr;
    }
}

.perutz-gallery-item {
    margin: 0;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
}

.perutz-gallery-item a,
.perutz-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.2s ease;
    cursor: zoom-in;
}

.perutz-gallery-item a:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

.perutz-gallery-caption {
    background: rgba(0, 56, 85, 0.75);
    bottom: 0;
    color: #fff;
    font-size: 0.75rem;
    left: 0;
    opacity: 0;
    padding: 0.4rem 0.5rem;
    position: absolute;
    right: 0;
    transition: opacity 0.2s ease;
}

.perutz-gallery-item:hover .perutz-gallery-caption {
    opacity: 1;
}

.perutz-gallery-intro {
    margin-bottom: 1rem;
}

/* === MAGIC KACHEL: 5-per-row and custom-width columns ===
   Bootstrap covers col-lg-2 (16.66%) through col-lg-12 natively.
   The two helpers below add:
     .col-lg-5th   → 20% (5 tiles per row) at ≥lg
     .col-lg-custom → arbitrary % via CSS variable --siwa-kachel-width (set inline)
   Both stack to 100% on smaller screens (default col-12 behavior). */
@media (min-width: 992px) {
    .col-lg-5th {
        flex: 0 0 auto;
        width: 20%;
    }
    .col-lg-custom {
        flex: 0 0 auto;
        width: var(--siwa-kachel-width, 25%);
    }
}

/* === SECTION SIDEBAR NAVIGATION === */
.sidemenu {
    padding-top: 1rem;
}

.sidemenu .text-tertiary {
    color: var(--bs-tertiary) !important;
}

.sidemenu .text-tertiary.h1 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0;
}

.sidemenu .text-tertiary.h1 a {
    color: var(--bs-tertiary) !important;
    text-decoration: none;
}

.sidemenu .navbar-nav {
    list-style: none;
    padding: 0;
}

.sidemenu .nav-item {
    margin-bottom: 0.25rem;
}

.sidemenu .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--bs-primary);
    font-size: 0.875rem;
    text-decoration: none;
    gap: 0.5rem;
}

.sidemenu .nav-link:hover {
    color: var(--bs-secondary);
}

.sidemenu .nav-link.text-secondary {
    color: var(--bs-secondary) !important;
    font-weight: 700;
}

.sidemenu .menu-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidemenu .menu-icon img,
.sidemenu .menu-icon svg {
    width: 24px;
    height: 24px;
}

.sidemenu .menu-title {
    flex: 1;
}

/* === SECTION: Dynamic Content Block (Contact, etc.) === */
.frame-type-Dynamic {
    padding: 1.5rem;
}

.frame-type-Dynamic .container-fluid {
    padding: 0;
}

.frame-type-Dynamic .cols-1-3 {
    width: 100%;
}

.frame-type-Dynamic h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.frame-type-Dynamic h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.frame-type-Dynamic p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.frame-type-Dynamic a {
    color: #fff;
}

/* === SECTION NEWS: Latest Updates (no border-start) === */
.news-list-view .box.bg-secondary {
    color: #fff;
}

.news-list-view .box.bg-secondary h2 {
    color: #fff;
}

/* === PINNED / TOPNEWS items === */
.news-list-item.topnews {
    position: relative;
    background-color: rgba(0, 208, 199, 0.05);
    border-left: 3px solid var(--bs-secondary);
}

.news-list-item.topnews::before {
    content: "\f08d";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 0.75rem;
    color: var(--bs-secondary);
    font-size: 1rem;
}

/* === PAGINATION === */
.f3-widget-paginator.pagination {
    gap: 0.25rem;
}

.f3-widget-paginator .page-link {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    padding: 0.375rem 0.75rem;
}

.f3-widget-paginator .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* === SECTION LANDING: Subpage Cards === */
.frame-type-menu_subpages .card {
    border: 1px solid var(--bs-border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 120px;
    display: flex;
    justify-content: flex-end;
}

.frame-type-menu_subpages .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.frame-type-menu_subpages .card.variant-2 {
    background-color: var(--bs-tertiary);
    border-color: var(--bs-tertiary);
    color: #fff;
}

.frame-type-menu_subpages .card.variant-2 a {
    color: #fff;
}

.frame-type-menu_subpages .card-body a {
    text-decoration: none;
    color: var(--bs-primary);
}

.frame-type-menu_subpages .card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin: 0;
}

/* === SECTION HEADER === */
.ce-headline-center {
    text-align: center;
}

.frame-space-before-large {
    margin-top: 4rem;
}

.frame-space-after-small {
    margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 767.98px) {
    .h1 .subheader,
    h1 .subheader {
        margin-top: -1.25rem;
    }
}
