.main-container {
    max-width: 1396px;
    margin: 0 auto;
    background-color: #FFF;
    box-shadow: 0 0 5px rgba(107, 110, 112, 0.4);
}

.main-content {
    padding-left: 5%;
    padding-right: 5%;
    width: auto;
    height: auto;
}

.dark-section {
    padding-left: 5%;
    padding-right: 5%;
    /* background-color: #ecece6; */
    background-color: #FFFFF7;
    padding-bottom: 50px;
    padding-top: 10px;
}

.light-section {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 50px;
    padding-top: 10px;
}

.pub-section {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5px;
    padding-top: 5px;
}

.section-title {
    padding-bottom: 20px;
    color: #333333;
}

.carousel {
   
   max-width: 100%;
   max-height: 100%;
   overflow: hidden;
}


.carousel-inner > .item > img, .carousel-inner > .item > a > img {
    max-width: 1067px;
    max-height: 560px;
    width: 100%;
    height: 560px;
    vertical-align: middle;
    object-fit: contain; /* change cover to contain */
}


.carousel-head-inner > .carousel > .carousel-inner > .item > img, .carousel-head-inner > .carousel > .carousel-inner > .item > a > img {
    max-height: 360px;
    width: 100%;
    height: 360px;
    vertical-align: middle;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    left: 0%;
    right: 0%;
    bottom: 0px;
    z-index: 10;
    padding-top: 20px;
    /* padding-bottom: 20px; */
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    background: rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
    text-align: right;
    float: right;
    right: 1% !important;
    left: inherit;
    bottom: 0px;
}
.t60 {
    margin-top: 10pt !important;
}



@media screen and (min-width: 800px) {
    .mobile {
	   display: none;
    }

    .head{
        padding-top: 50px;
        display: flex;
    }

    .head-text{
	   color: #333333;  /* black!*/
       flex: 50%;
    }
    .head-subtitle{
    	margin-left: 150px;
    	padding-bottom: 150px;
    }

    .head-pic {
        flex: 50%;
        width: 100%;
        height: auto;
        margin-left: 2%;
        background-repeat-x:  no-repeat;
        background-size: cover;
    }

    .head-bg {
        
    background-color: #ecece6;
	background-attachment: scroll;
	background-size: cover;
    }

    #sub-title {
	margin-top: 30px;
	color: #363636;
    }

}

@media screen and (max-width: 800px) {
    .pc {
	display: none;
    }
    .head-text{
	color: #FFFFFF;
	padding-left: 30px;
    	/*background-color: rgba(0,0,0,0.5);*/
    	padding-bottom: 30px;
    	padding-top: 30px;
    }
    .head-subtitle{
	margin-left: 30px;
	padding-bottom: 30px;
    }

    .head{
	padding-top: 30px;
	padding-bottom: 30px;
    }

    .head-bg {
    background-color: #ecece6;
    background-attachment: scroll;
    background-size: cover;
    }

    .head-image {
	background-repeat-x:  no-repeat;
	background-attachment: scroll;
	background-size: cover;
    }

    .row {
	margin-left: 0 ! important;	
	margin-right: 0 ! important;
    }

    #main-title {
    	font-size: 1.666em ! important;
    }

    #sub-title {
    	font-size: 0.888em ! important;
	margin-top: 15px;
	color: #FFFFFF;
    }
}


/* timeline*/

ul.timeline {
    list-style-type: none;
    width: 100%;
    
    /*position: relative;*/
}
ul.timeline:before {
    content: ' ';
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    width: 2px;
    height: 100%;
    /*z-index: 400;*/
}
ul.timeline > li {
    margin: 20px 0;
    padding-left: 20px;
}

ul.timeline > li:before {
    content: ' ';
    /*animation: blinker 1s linear infinite;*/
    background: #333333;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #333333;
    left: 8.5px;
    margin-top: 5px;
    /* bottom: 2.5px; */
    width: 15px;
    height: 15px;
    z-index: 400;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}


.news-title{
    color: #333333;
    /*float: left;*/
    font-weight: bold;
    font-size: 20px;
}

.news-date{
    float: left;
}

.new-day-month {
    color: #333333;
    background: #f4f4f4;
    padding: 6px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 3px;
}

.new-year {
    color: #f4f4f4;
    background: #333333;
    padding: 6px;
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 3px;
}

.news-summary {

}

.logo {
    flex: 20%;
}

.nav-tabs {
    flex: 80%;
}

.nav-container {
    display: flex;
}

.logo-img {
    float: right;
    height: 3.125rem;
    padding-left: 5px;
}

/* People */

.member-row {
    padding-bottom: 60px;
}

.member {
    text-align: center;
    font-size: 18px;
    padding-bottom: 20px;
    height: 280px;
}

a.member {
    color: #333333;
}

/* Featured Research, new added */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 2px 0;
}
.research-cell {
  background: none;
  border: 2px solid gray;
  padding: 5px;
  border-radius: 12px;
  text-align: center;
}
.research-img {
  max-width: 100%;
  height: 200px;
  object-fit: fill;
  border-radius: 8px;
}
.research-cell h3 {
  margin-bottom: 0.2em;
  color: none;
}
.research-cell ul {
  color: none;
  padding-left: 1.2em;
  text-align: left;
}

/* Photo Gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.photo-grid img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.photo-caption {
  margin-top: 8px;
  font-size: 0.95em;
  color: #555;
  text-align: center;
}

/* OrangeStrong definition, like  <span class="orange-strong">highlighted text here</span> */
.orange-strong {
  background: #fff3cd;
  color: #b85c00;
  padding: 2px 1px;
  border-radius: 4px;
  font-weight: bold;
}

/* Event card */

.event-card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 7px;
  padding: 28px 28px 20px 28px;
  margin: 24px 0;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.event-card-title {
  font-size: 1.6em;
  font-weight: 500;
  margin-bottom: 8px;
}
.event-card-desc {
  font-size: 1.08em;
  color: #222;
  margin-bottom: 18px;
}

/* Banner */


.banner {
        background-color: #333333;
        color: #e2d1df;
        padding: 8em 0;
        position: relative;
    }

        .banner input, .banner select, .banner textarea {
            color: #ffffff;
        }

        .banner a {
            color: #ffffff;
        }

        .banner strong, .banner b {
            color: #ffffff;
        }

        .banner h1, .banner h2, .banner h3, .banner h4, .banner h5, .banner h6 {
            color: #ffffff;
        }

        .banner blockquote {
            border-left-color: rgba(255, 255, 255, 0.25);
        }

        .banner code {
            background: rgba(255, 255, 255, 0.075);
            border-color: rgba(255, 255, 255, 0.25);
        }

        .banner hr {
            border-bottom-color: rgba(255, 255, 255, 0.25);
        }

        .banner.full {
            padding: 0;
            min-height: 40vh;
            height: 60vh !important;
        }

        .banner.half {
            padding: 0;
            min-height: 40vh;
            height: 60vh !important;
        }

        .banner:after {
            -moz-pointer-events: none;
            -webkit-pointer-events: none;
            -ms-pointer-events: none;
            pointer-events: none;
            -moz-transition: opacity 1.5s ease-in-out, visibility 1.5s;
            -webkit-transition: opacity 1.5s ease-in-out, visibility 1.5s;
            -ms-transition: opacity 1.5s ease-in-out, visibility 1.5s;
            transition: opacity 1.5s ease-in-out, visibility 1.5s;
            /*background: #000000;*/
            content: '';
            display: block;
            height: 100%;
            left: 0;
            opacity: 0;
            position: absolute;
            top: 0;
            visibility: hidden;
            width: 100%;
            z-index: 2;
        }

        .banner .indicators {
            bottom: 1.5em;
            left: 0;
            list-style: none;
            margin: 0;
            padding: 0;
            position: absolute;
            text-align: center;
            width: 100%;
            z-index: 2;
        }

            .banner .indicators li {
                cursor: pointer;
                display: inline-block;
                height: 2em;
                overflow: hidden;
                padding: 0;
                position: relative;
                text-indent: 2em;
                width: 2em;
            }

                .banner .indicators li:before {
                    background: rgba(255, 255, 255, 0.35);
                    border-radius: 100%;
                    content: '';
                    display: inline-block;
                    height: 0.8em;
                    left: 50%;
                    margin: -0.4em 0 0 -0.4em;
                    position: absolute;
                    text-indent: 0;
                    top: 50%;
                    width: 0.8em;
                }

                .banner .indicators li.visible:before {
                    background: #fff;
                }

        .banner > article {
            -moz-transition: opacity 1.5s ease, visibility 1.5s;
            -webkit-transition: opacity 1.5s ease, visibility 1.5s;
            -ms-transition: opacity 1.5s ease, visibility 1.5s;
            transition: opacity 1.5s ease, visibility 1.5s;
            background-attachment: fixed;
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            height: 100%;
            left: 0;
            opacity: 0;
            position: absolute;
            text-align: center;
            top: 0;
            visibility: hidden;
            width: 100%;
            z-index: 0;
        }

            .banner > article:before {
                content: '';
                display: inline-block;
                height: 100%;
                vertical-align: middle;
            }

            .banner > article:after {
                content: '';
                display: block;
    width: 120%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                background: #000;
                opacity: 0.35;
            }

            .banner > article .inner {
                position: relative;
                display: inline-block;
                vertical-align: middle;
                z-index: 1;
            }

                .banner > article .inner > :last-child {
                    margin-bottom: 0;
                }

            .banner > article h2 {
                font-size: 5rem;
                margin-bottom: 0;
                color: #FFF;
                font-weight: 300;
            }

                .banner > article h2:after {
                    display: none;
                }

            .banner > article p {
                color: rgba(255, 255, 255, 0.65);
                text-transform: uppercase;
    font-size: 1.3rem;
                font-weight: 300;
                margin: 0;
                padding-bottom: 1.75rem;
                letter-spacing: .25rem;
            }

                .banner > article p:after {
                    content: '';
                    position: absolute;
                    margin: auto;
                    right: 0;
                    bottom: 0;
                    left: 0;
                    width: 50%;
                    height: 1px;
                    background-color: rgba(255, 255, 255, 0.65);
                }

            .banner > article a {
                color: #FFF;
                text-decoration: none;
            }

            .banner > article img {
                display: none;
            }

            .banner > article.visible {
                opacity: 1;
                visibility: visible;
            }

            .banner > article.top {
                z-index: 1;
            }

            .banner > article.instant {
                -moz-transition: none !important;
                -webkit-transition: none !important;
                -ms-transition: none !important;
                transition: none !important;
            }

        body.is-loading .banner:after {
            opacity: 1.0;
            visibility: visible;
        }

        @media screen and (max-width: 1280px) {

            .banner > article .inner {
                width: 90%;
            }
            
            .banner.full {
                padding: 0;
                min-height: 40vh;
                height: 60vh !important;
            }

        }

        @media screen and (max-width: 980px) {

            .banner > article .inner {
                width: 90%;
            }

            .banner.full {
                padding: 0;
                min-height: 80vh;
                height: 120vh !important;
            }

            .banner > article {
                background-attachment: scroll;
            }

        }

        @media screen and (max-width: 736px) {

            .banner > article .inner {
                width: 90%;
            }

            .banner > article p {
                margin-bottom: 1rem;
            }

            .banner > article h2 {
                font-size: 4em;
            }

        }

        body.is-mobile .banner > article {
            background-attachment: scroll;
        }

        .my_headline {
            color: inherit !important;
            font-weight: inherit;
            text-decoration: inherit;
        }
        /*.my_logo {display: block !important; margin: auto; padding: 20px 0px 20px 0px; width: 50%;}*/
        .my_logo {
            display: block !important;
            margin: auto;
            padding: 0px 0px 0px 0px;
            max-height: 30%;
  	    filter: drop-shadow( 3px 3px 3px #333333);
        }
        .banner > article .inner {height: 100%}
        .banner > article .inner > header {height: 85%}
        .banner_top {height: 10%}
        body.is-mobile .banner_top {height: 5%}
        @media screen and (max-width: 980px) {
            .banner_top {height: 10%}
            .my_logo {max-height: 50%}
        }
        .my_box_image {overflow: hidden; max-height: 50px;}
        .my_news_div {padding: 0 !important}
        .my_news_div div {margin: 0em 1em 1em 1em}
        .my_news_div div header h4 {
            font-weight: 700;
            text-transform: uppercase;
            color: #484848 !important;
            word-spacing: 3pt;
        }
        .my_news_div div header p {
            font-size: 0.9em;
            color: #aaa !important;
            margin-top: -0.6em;
            margin-bottom: 0.1em;
        }
        .my_news_span {
            padding: 0 !important;
            background-color: transparent !important;
        }
        .my_news_span img {
            border-radius: 100%;
            width: 100%;
            border: solid 0.5em rgba(144, 144, 144, 0.25);
        }
        div #my_div_grid:nth-child(2n) {
            background-color: rgba(0, 0, 0, 0.075);
        }
        div #my_div_grid {
            padding: 1rem 0rem 1rem 0rem;
            margin: 0;
        }
        .wrapper.style3.pageheader {
            background-size: 100% !important;
            background-position: top !important;
            background-image: url('https://oatml.cs.ox.ac.uk/images/bg_crop.jpg') !important;
        }
        /* Mobile screens */
        @media screen and (max-width: 980px) {
            .wrapper.style3.pageheader {background-size: 200% !important;}
            .ox-link {display: none;}
            .group-title-link {display: none;}
            .group-title-link-short {display: inline;}
            div.my_news_div div.fit {
                text-align : inherit !important;
            }
            span.my_news_span.image.right {
                float : left;
                margin: 0 1.5rem 1rem 0;
            }
        }
        /* Mobile screens */
        @media screen and (max-width: 435px) {
            .my_header {
                min-height: 120pt !important;
            }
        }
        /* Desktop screens */
        @media screen and (min-width: 980px) {
            .group-title-link-short {display: none;}
            .group-title-link {
                display: inline;
                vertical-align: bottom !important;
                border-left: 2px solid white;
                height: 500px;
                padding: 0px 0px 0px 10px;
                margin: 0px 0px 0px 10px;
            }
        }
        /* Mobile screens */
        @media screen and (max-width: 980px) {
            
                #banner_image_1 {
                    background-image: url('../../images/banners/banner1.png') !important;
                }

                #banner_image_2 {
                    background-image: url('../../images/banners/banner2.png') !important;
                }

                #banner_image_3 {
                    background-image: url('../../images/banners/banner3.png') !important;
                }
            
        }
        /* Desktop screens */
        @media screen and (min-width: 980px) and (max-width: 1920px) {
            
                #banner_image_1 {
                    background-image: url('../../images/banners/banner1.png') !important;
                }

                #banner_image_2 {
                    background-image: url('../../images/banners/banner2.png') !important;
                }

                #banner_image_3 {
                    background-image: url('../../images/banners/banner3.png') !important;
                }
            
        }
        /* Huge screens */
        @media screen and (min-width: 1920px) {
            
                #banner_image_1 {
                    background-image: url('../../images/banners/banner1.png') !important;
                }

                #banner_image_2 {
                    background-image: url('../../images/banners/banner2.png') !important;
                }

                #banner_image_3 {
                    background-image: url('../../images/banners/banner3.png') !important;
                }
            
        }
        /* Mobile screens */
        @media screen and (max-height: 600px) {
            .indicators {display: none;}
        }
:root {
    --nav-frame-height: 80px;
}

body {
    padding-top: var(--nav-frame-height);
}

.faculty-card {
    background: transparent;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    height: auto;
    min-height: 180px;
    width: 105%;
}

.faculty-card-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.faculty-photo-wrapper {
    flex-shrink: 0;
}

.faculty-info {
    flex-grow: 1;
}

.faculty-photo {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.faculty-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.faculty-google {
    display: inline-block;
    margin-left: 3px;
}

.faculty-google a {
    color: #2F72A8;
    font-size: 1.2rem;
}

.faculty-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2F72A8;
    margin: 10px 0;
    font-size: 0.95rem;
}

.faculty-github {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    margin: 8px 0;
    font-size: 0.95rem;
}

.faculty-github a {
    color: #2F72A8;
}


.faculty-note {
    color: #666;
    font-size: 0.95rem;
    margin-top: 20px;
    margin-left: 20px;
}







/* Homepage hero: full-screen first banner image */
.homepage-hero {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - var(--nav-frame-height, 80px));
    min-height: calc(100vh - var(--nav-frame-height, 80px));
    max-width: none;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.homepage-intro {
    margin-top: 0;
    background: transparent;
    padding: 0 !important;
}

.dark-section.homepage-intro {
    padding: 0 !important;
}

body.frontpage .homepage-hero .homepage-hero-title {
    position: absolute !important;
    left: 32% !important;
    top: 50% !important;
    transform: translate(-50%, -52%) !important;
    margin: 0 !important;
    pointer-events: none !important;
    z-index: 8 !important;
    white-space: nowrap !important;
    font-size: clamp(4.86rem, 11.54vw, 10.66rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.045em !important;
    line-height: 0.88 !important;
    color: #c85a1a !important;
    opacity: 0;
    animation: insai-base-appear 1.5s ease-out 0s forwards;
}

body.frontpage .homepage-hero .homepage-hero-title::after {
    content: none !important;
    animation: none !important;
}

@keyframes insai-base-appear {
    0% { opacity: 0; filter: none; }
    100% { opacity: 1; filter: none; }
}

/* Homepage secondary title card */
.homepage-intro-card {
    text-align: center;
    background: linear-gradient(135deg, #86d9ff 0%, #ffd9e9 100%);
    border-radius: 0;
    width: 100%;
    margin: 0;
    min-height: calc((100vh - var(--nav-frame-height, 80px)) / 2);
    padding: clamp(28px, 3.8vw, 52px) clamp(24px, 3.6vw, 56px);
    box-shadow: none;
}

.homepage-secondary-brand {
    position: relative;
    left: auto;
    transform: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: clamp(2px, 1vw, 12px) auto clamp(22px, 2.6vw, 36px);
    width: max-content;
    max-width: 100%;
    font-size: clamp(2.95rem, 6.9vw, 6.4rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.035em;
    color: #ffffff;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}

.homepage-secondary-logo {
    height: 1em;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.homepage-secondary-brand .brand-fixed {
    color: #ffffff;
}

.homepage-secondary-brand .brand-switcher {
    position: relative;
    display: inline;
    min-width: auto;
    height: 1em;
    vertical-align: baseline;
}

.homepage-secondary-brand .switch-item {
    position: absolute;
    left: 0;
    top: 0;
    color: transparent;
    background: linear-gradient(95deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.85) 45%, #ffffff 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    filter: blur(6px);
}

.homepage-secondary-brand .switch-hnu {
    animation: brand-hnu-cycle 4.8s ease-in-out infinite;
}

.homepage-secondary-brand .switch-kit {
    animation: brand-kit-cycle 4.8s ease-in-out infinite;
}

@keyframes brand-hnu-cycle {
    0%, 8% {
        opacity: 0;
        filter: blur(6px);
    }
    16%, 42% {
        opacity: 1;
        filter: blur(0);
    }
    50%, 100% {
        opacity: 0;
        filter: blur(6px);
    }
}

@keyframes brand-kit-cycle {
    0%, 50% {
        opacity: 0;
        filter: blur(6px);
    }
    58%, 84% {
        opacity: 1;
        filter: blur(0);
    }
    92%, 100% {
        opacity: 0;
        filter: blur(6px);
    }
}

.homepage-secondary-brand .brand-switcher-static .switch-hnu,
.homepage-secondary-brand .brand-switcher-static .switch-kit {
  animation: none !important;
  position: static !important;
  opacity: 1 !important;
  color: #FACC15 !important;
  filter: none !important;
  -webkit-text-fill-color: #FACC15 !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

.homepage-intro-text#sub-title {
    margin: 0 auto;
    max-width: 96%;
    text-align: left;
    color: #28425f !important;
    font-size: clamp(1.18rem, 1.46vw, 1.42rem) !important;
    line-height: 1.72;
    font-weight: 500;
    text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    body.frontpage .homepage-hero .homepage-hero-title {
        animation: none;
        opacity: 1;
    }

    .homepage-secondary-brand .switch-item {
        animation: none;
        opacity: 1;
        filter: none;
    }

    .homepage-secondary-brand .switch-kit {
        opacity: 0;
    }
}

@media screen and (max-width: 980px) {
    .homepage-hero {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - var(--nav-frame-height, 80px));
    min-height: calc(100vh - var(--nav-frame-height, 80px));
    max-width: none;
    background: linear-gradient(135deg, #b45414 0%, #6a2e12 100%) !important;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

    body.frontpage .homepage-hero .homepage-hero-title {
        left: 32% !important;
        top: 50% !important;
        transform: translate(-50%, -52%) !important;
        font-size: clamp(2.2rem, 9.8vw, 4.46rem) !important;
        letter-spacing: 0.03em !important;
    }

    .homepage-intro-card {
        text-align: center;
        border-radius: 0;
        width: 100%;
        margin: 0;
        min-height: calc((100svh - var(--nav-frame-height, 80px)) / 2);
        padding: 24px 16px 24px;
        box-shadow: none;
    }

    .homepage-secondary-brand {
        left: auto;
        transform: none;
        margin: 2px auto 14px;
        width: max-content;
        font-size: clamp(1.35rem, 5.8vw, 2.8rem);
        letter-spacing: 0.02em;
    }

    .homepage-secondary-brand .brand-switcher {
        min-width: 5.3em;
    }

    .homepage-intro-text#sub-title {
        max-width: 100%;
        font-size: clamp(1.02rem, 3.95vw, 1.14rem) !important;
        line-height: 1.65;
    }
}

/* Final full-bleed + centering fix */
#header-home > div,
#header-home > div > div,
#header-home .homepage-intro {
    margin: 0 !important;
    padding: 0 !important;
}

#header-home .homepage-intro-card {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#header-home .homepage-secondary-brand {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: clamp(2px, 1vw, 12px) auto clamp(24px, 2.8vw, 38px) !important;
    width: max-content !important;
    max-width: 100% !important;
    justify-content: center !important;
}

#header-home .homepage-intro-text#sub-title {
    width: min(1200px, 92vw) !important;
    margin: 0 auto !important;
}

@media screen and (max-width: 980px) {
    #header-home .homepage-intro-card {
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    #header-home .homepage-secondary-brand {
        margin: 4px auto 16px !important;
    }

    #header-home .homepage-intro-text#sub-title {
        width: 92vw !important;
    }
}

/* Final center + orange switch text fix */
#header-home .homepage-secondary-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#header-home .homepage-secondary-brand .brand-switcher {
    width: 4.6em !important;
    min-width: 4.6em !important;
    display: inline-block !important;
    text-align: center !important;
}

#header-home .homepage-secondary-brand .switch-item {
    left: 0 !important;
    transform: none !important;
    white-space: nowrap !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: #e97132 !important;
}

@media screen and (max-width: 980px) {
    #header-home .homepage-secondary-brand .brand-switcher {
        width: 4.8em !important;
        min-width: 4.8em !important;
    }
}


.aboutus-major-title {
  font-size: clamp(2rem, 5vw, 4.5rem) !important;
  font-weight: 900 !important;
}

.aboutus-page .aboutus-major-title {
  font-size: clamp(2rem, 5vw, 4.5rem) !important;
  font-weight: 900 !important;
  text-align: center !important;
  margin-top: 48px !important;
}

.aboutus-page .aboutus-subtitle {
  margin: 22px 0 12px 0 !important;
  padding-bottom: 0 !important;
  font-size: clamp(1rem, 1.5vw, 1.3rem) !important;
  font-weight: 700 !important;
  line-height: 1.2;
}

.aboutus-page hr {
  margin: 18px 0 22px 0;
}

.aboutus-page .event-card {
  margin: 14px 0 20px 0;
}
.aboutus-project-list {
  list-style-type: disc;
  padding-left: 1.4em;
  margin: 0.2em 0 1.2em 0;
}

.aboutus-project-list li {
  margin: 0 0 0.8em 0;
}


.aboutus-lecture-list {
  list-style-type: disc;
  padding-left: 1.4em;
  margin: 0.2em 0 1.2em 0;
}

.aboutus-lecture-list li {
  margin: 0 0 0.8em 0;
}




/* About us full-screen hero */
body.post .aboutus-hero, body.page-fullwidth .aboutus-hero {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: calc(100vh - var(--nav-frame-height, 80px)) !important;
  min-height: calc(100vh - var(--nav-frame-height, 80px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

body.post .aboutus-hero-title, body.page-fullwidth .aboutus-hero-title {
  position: absolute !important;
  left: 10% !important;
  top: 50% !important;
  transform: translate(0, -50%) !important;
  margin: 0 !important;
  font-size: clamp(4.86rem, 11.54vw, 10.66rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  line-height: 0.88 !important;
  white-space: nowrap !important;
  background: linear-gradient(180deg, #202020 0%, #000000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  opacity: 0;
  animation: aboutus-title-fade 1.3s ease-out 0s forwards;
}

@keyframes aboutus-title-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@media screen and (max-width: 980px) {
  body.post .aboutus-hero, body.page-fullwidth .aboutus-hero {
    height: calc(100svh - var(--nav-frame-height, 80px)) !important;
    min-height: calc(100svh - var(--nav-frame-height, 80px)) !important;
  }

  body.post .aboutus-hero-title, body.page-fullwidth .aboutus-hero-title {
    left: 10% !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
    font-size: clamp(2.2rem, 9.8vw, 4.46rem) !important;
  }
}

.aboutus-layout-article {
  margin: 0 !important;
  padding: 0 !important;
}





.aboutus-page .members-subtitle {
  font-size: 1.95em !important;
  text-align: center !important;
  width: 100%;
}


.publication-card-row {
  margin-bottom: 22px;
}

.publication-card-row:last-child {
  margin-bottom: 0;
}


.publication-card-row + .publication-card-row {
  margin-top: 10px !important;
}






body.frontpage .homepage-hero .homepage-hero-title {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

body.page-fullwidth .aboutus-hero-title {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

body.page-fullwidth .research-hero-title {
  position: absolute !important;
  left: 10% !important;
  top: 50% !important;
  transform: translate(0, -50%) !important;
  margin: 0 !important;
  font-size: clamp(4.86rem, 11.54vw, 10.66rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  line-height: 0.88 !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

@media screen and (max-width: 980px) {
  body.page-fullwidth .research-hero-title {
    font-size: clamp(2.2rem, 9.8vw, 4.46rem) !important;
  }
}

/* Join us full-screen hero */
body.post .joinus-hero, body.page-fullwidth .joinus-hero {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: calc(100vh - var(--nav-frame-height, 80px)) !important;
  min-height: calc(100vh - var(--nav-frame-height, 80px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

body.post .joinus-hero-title, body.page-fullwidth .joinus-hero-title {
  position: absolute !important;
  left: 10% !important;
  top: 50% !important;
  transform: translate(0, -50%) !important;
  margin: 0 !important;
  font-size: clamp(4.86rem, 11.54vw, 10.66rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  line-height: 0.88 !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  opacity: 0;
  animation: insai-base-appear 1.5s ease-out 0s forwards;
}

.joinus-content {
  margin-top: 44px;
}

@media screen and (max-width: 980px) {
  body.post .joinus-hero, body.page-fullwidth .joinus-hero {
    height: calc(100svh - var(--nav-frame-height, 80px)) !important;
    min-height: calc(100svh - var(--nav-frame-height, 80px)) !important;
  }

  body.post .joinus-hero-title, body.page-fullwidth .joinus-hero-title {
    left: 10% !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
    font-size: clamp(2.2rem, 9.8vw, 4.46rem) !important;
  }
}

body.page-fullwidth .joinus-hero-title {
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}
/* Homepage Recent News ticker */
.recent-news-wrap {
  padding-left: 4% !important;
  padding-right: 4% !important;
}

.recent-news-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.recent-news-ticker {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: transparent;
  cursor: ew-resize;
  padding: 0 6px;
}

.recent-news-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.recent-news-segment {
  display: inline-flex;
  align-items: center;
  padding-right: 56px;
}

.recent-news-item {
  display: inline-flex;
  align-items: center;
  margin-right: 42px;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.recent-news-date {
  font-weight: 700;
  color: #9a3f1f;
}

.recent-news-sep {
  margin: 0 10px;
  color: #888;
}

.recent-news-text {
  color: #333;
}

@media screen and (max-width: 980px) {
  .recent-news-title {
    font-size: clamp(1.2rem, 6vw, 2.2rem) !important;
  }

  .recent-news-ticker {
    height: 52px;
  }

  .recent-news-item {
    font-size: 0.94rem;
    margin-right: 30px;
  }
}
/* Recent News strict one-line override */
.recent-news-title {
  text-align: center !important;
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  width: 100% !important;
  margin: 0 0 16px 0 !important;
}

.recent-news-title {
  text-align: center !important;
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  width: 100% !important;
  margin: 0 0 12px 0 !important;
}

.recent-news-ticker {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  display: block !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: 46px !important;
  box-sizing: border-box !important;
}

.recent-news-track,
.recent-news-segment,
.recent-news-item {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
}

.recent-news-item {
  line-height: 1 !important;
}

@media screen and (max-width: 980px) {
  .recent-news-title {
    font-size: 2.2em !important;
  }

  .recent-news-ticker {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    line-height: 42px !important;
  }
}
/* Recent News single-item marquee final */
.recent-news-source {
  display: none !important;
}

.recent-news-title {
  text-align: center !important;
  font-size: 3em !important;
  font-weight: 800 !important;
  width: 100% !important;
  margin: 0 0 12px 0 !important;
}

.recent-news-ticker {
  position: relative !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 40px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  border: 1px solid #ececec !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  cursor: ew-resize !important;
}

.recent-news-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.recent-news-line .recent-news-date,
.recent-news-line .recent-news-text,
.recent-news-line .recent-news-body,
.recent-news-line .recent-news-sep {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  white-space: nowrap;
}

.recent-news-line .recent-news-date {
  font-weight: 700;
  color: #9a3f1f;
}

.recent-news-line .recent-news-sep {
  margin: 0 10px;
  color: #888;
}

.recent-news-line .recent-news-text {
  color: #222;
  font-weight: 600;
}

.recent-news-line .recent-news-body {
  color: #333;
}

.recent-news-line .recent-news-body a {
  color: #1f6fd6;
  text-decoration: underline;
}

@media screen and (max-width: 980px) {
  .recent-news-title {
    font-size: 2.2em !important;
  }

  .recent-news-ticker {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 36px !important;
  }

  .recent-news-line {
    height: 36px;
    font-size: 0.92rem;
  }
}
/* Recent News two-line large text override */
.recent-news-source-item {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.recent-news-source-item .news-date {
  float: none !important;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.recent-news-source-item .new-day-month,
.recent-news-source-item .new-year {
  margin-right: 0 !important;
}

.recent-news-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.recent-news-title-line {
  font-size: 4rem !important;
  font-weight: 800 !important;
  color: #222 !important;
  line-height: 1 !important;
}

.recent-news-body-line {
  font-size: 4rem !important;
  color: #333 !important;
  line-height: 1 !important;
}

.recent-news-body-line a {
  color: #1f6fd6 !important;
  text-decoration: underline;
}

.recent-news-ticker {
  height: 10rem !important;
  min-height: 10rem !important;
  max-height: 10rem !important;
  line-height: normal !important;
}

.recent-news-line {
  height: 10rem !important;
  align-items: center !important;
}

@media screen and (max-width: 980px) {
  .recent-news-title-line,
  .recent-news-body-line {
  font-size: clamp(1rem, 2.8vw, 2rem) !important;
  }

  .recent-news-ticker {
    height: 5.2rem !important;
    min-height: 5.2rem !important;
    max-height: 5.2rem !important;
  }

  .recent-news-line {
    height: 5.2rem !important;
  }
}
/* Recent News final tuning: centered title, 2-line, 2.5x, overlapped handoff */
.recent-news-wrap .recent-news-title {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.recent-news-copy {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.recent-news-title-line {
  display: block !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.recent-news-body-line {
  display: block !important;
  font-size: 2.5rem !important;
  line-height: 1 !important;
}

.recent-news-line {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 980px) {
  .recent-news-title-line,
  .recent-news-body-line {
    font-size: 1.4rem !important;
  }
}
/* Recent News stable continuous ticker final */
.recent-news-wrap .recent-news-title {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.recent-news-ticker {
  width: 100% !important;
  height: 7rem !important;
  min-height: 7rem !important;
  max-height: 7rem !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: normal !important;
  box-sizing: border-box !important;
}

.recent-news-track {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  will-change: transform;
}

.recent-news-segment {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding-right: 14px !important;
}

.recent-news-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-right: 14px !important;
  white-space: nowrap !important;
}

.recent-news-copy {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.recent-news-title-line {
  display: block !important;
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.recent-news-body-line {
  display: block !important;
  font-size: 2.5rem !important;
  line-height: 1 !important;
}

.recent-news-sep {
  display: none !important;
}

.recent-news-body-line a {
  color: #1f6fd6 !important;
  text-decoration: underline;
}

@media screen and (max-width: 980px) {
  .recent-news-title-line,
  .recent-news-body-line {
    font-size: 1.35rem !important;
  }

  .recent-news-ticker {
    height: 4rem !important;
    min-height: 4rem !important;
    max-height: 4rem !important;
  }
}
/* Recent News single-item mode final */
.recent-news-wrap .recent-news-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.recent-news-source {
  display: none !important;
}

.recent-news-track,
.recent-news-segment {
  display: none !important;
}

.recent-news-ticker {
  position: relative !important;
  width: 100% !important;
  height: 7rem !important;
  min-height: 7rem !important;
  max-height: 7rem !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.recent-news-line {
  position: absolute !important;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px;
  white-space: nowrap !important;
  will-change: transform;
}

.recent-news-line .recent-news-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px;
  white-space: nowrap !important;
}

.recent-news-line .recent-news-copy {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 8px !important;
}

.recent-news-line .recent-news-title-line {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.recent-news-line .recent-news-body-line {
  font-size: 2.5rem !important;
  line-height: 1 !important;
}

.recent-news-line .recent-news-sep {
  display: none !important;
}

@media screen and (max-width: 980px) {
  .recent-news-line .recent-news-title-line,
  .recent-news-line .recent-news-body-line {
    font-size: 1.35rem !important;
  }

  .recent-news-ticker {
    height: 4rem !important;
    min-height: 4rem !important;
    max-height: 4rem !important;
  }
}
/* Recent News lock: full-width ticker + true centered title */
body.frontpage .recent-news-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

body.frontpage .recent-news-wrap .recent-news-title {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: 100vw !important;
  text-align: center !important;
  margin: 0 0 12px 0 !important;
}

body.frontpage .recent-news-wrap .recent-news-ticker {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 9rem !important;
  min-height: 9rem !important;
  max-height: 9rem !important;
  border-radius: 0 !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}

body.frontpage .recent-news-wrap .recent-news-line {
  height: 9rem !important;
}

@media screen and (max-width: 980px) {
  body.frontpage .recent-news-wrap .recent-news-title {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  body.frontpage .recent-news-wrap .recent-news-ticker {
    height: 5.2rem !important;
    min-height: 5.2rem !important;
    max-height: 5.2rem !important;
  }

  body.frontpage .recent-news-wrap .recent-news-line {
    height: 5.2rem !important;
  }
}
/* Recent News viewport lock (final fix) */
body.frontpage .recent-news-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  text-align: center !important;
}

body.frontpage .recent-news-wrap .recent-news-title {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  text-align: center !important;
  left: auto !important;
  transform: none !important;
}

body.frontpage .recent-news-wrap .recent-news-ticker {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  left: auto !important;
  transform: none !important;
  border-radius: 0 !important;
  padding-left: 20vw !important;
  padding-right: 20vw !important;
  box-sizing: border-box !important;
  height: 400px !important;
  min-height: 400px !important;
  max-height: 400px !important;
  overflow: hidden !important;
}

/* recent-news vertical scrolling overrides */
body.frontpage .recent-news-wrap .recent-news-ticker {
  display: flex !important;
  align-items: stretch !important;
}

body.frontpage .recent-news-wrap .recent-news-track {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  will-change: transform;
}

body.frontpage .recent-news-wrap .recent-news-segment {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
}

.recent-news-blank {
  flex-shrink: 0 !important;
  height: 400px !important;
}

body.frontpage .recent-news-wrap .recent-news-track .recent-news-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 16px 0 !important;
  width: 100% !important;
}

body.frontpage .recent-news-wrap .recent-news-first-line {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

body.frontpage .recent-news-wrap .recent-news-first-line .recent-news-date,
body.frontpage .recent-news-wrap .recent-news-first-line .news-date {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  float: none !important;
}

body.frontpage .recent-news-wrap .recent-news-first-line .new-day-month,
body.frontpage .recent-news-wrap .recent-news-first-line .new-year {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-size: clamp(1rem, 2vw, 1.75rem) !important;
}

body.frontpage .recent-news-wrap .recent-news-line {
  height: 12rem !important;
  align-items: center !important;
}

body.frontpage .recent-news-wrap .recent-news-line .recent-news-item {
  align-items: center !important;
}

body.frontpage .recent-news-wrap .recent-news-line .recent-news-copy {
  gap: 12px !important;
}

@media screen and (max-width: 980px) {
  body.frontpage .recent-news-wrap .recent-news-title {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
  }

  body.frontpage .recent-news-wrap .recent-news-ticker {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    height: 6.6rem !important;
    min-height: 6.6rem !important;
    max-height: 6.6rem !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.frontpage .recent-news-wrap .recent-news-line {
    height: 6.6rem !important;
  }
}
/* Recent News framework unlock */
body.frontpage .main-container {
  overflow-x: visible !important;
  box-shadow: none !important;
}

body.frontpage .recent-news-row {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.frontpage .recent-news-title-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
}

body.frontpage .recent-news-title {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  left: auto !important;
  transform: none !important;
}

body.frontpage .recent-news-ticker {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  height: 14rem !important;
  min-height: 14rem !important;
  max-height: 14rem !important;
}

body.frontpage .recent-news-line {
  height: 14rem !important;
}

@media screen and (max-width: 980px) {
  body.frontpage .recent-news-row {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  body.frontpage .recent-news-title-shell {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  body.frontpage .recent-news-wrap .recent-news-ticker {
    display: flex !important;
    align-items: stretch !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 7.4rem !important;
    min-height: 7.4rem !important;
    max-height: 7.4rem !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden !important;
  }

  body.frontpage .recent-news-ticker {
    display: flex !important;
    align-items: stretch !important;
    height: 400px !important;
    overflow: hidden !important;
  }
}

body.frontpage .recent-news-track {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  will-change: transform;
}

body.frontpage .recent-news-segment {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
}

body.frontpage .recent-news-track .recent-news-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 16px 0 !important;
  width: 100% !important;
  text-align: center !important;
}

body.frontpage .recent-news-first-line {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

body.frontpage .recent-news-line {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  transform: translate(0, -50%);
  display: inline-flex !important;
  align-items: center !important;
}
/* Recent News continuous track final */
body.frontpage .recent-news-line {
  display: none !important;
}

body.frontpage .recent-news-track {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  will-change: transform;
}

body.frontpage .recent-news-segment {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

body.frontpage .recent-news-track .recent-news-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 16px 0 !important;
}

body.frontpage .recent-news-first-line {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

body.frontpage .recent-news-track .recent-news-title-line {
  font-size: clamp(1rem, 2vw, 1.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

body.frontpage .recent-news-track .recent-news-body-line {
  font-size: clamp(1rem, 2vw, 1.75rem) !important;
  line-height: 1.3 !important;
  text-align: center !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

  @media screen and (max-width: 980px) {
  body.frontpage .recent-news-track .recent-news-title-line,
  body.frontpage .recent-news-track .recent-news-body-line,
  body.frontpage .recent-news-track .new-day-month,
  body.frontpage .recent-news-track .new-year {
    font-size: clamp(0.65rem, 2.5vw, 0.95rem) !important;
  }
}
/* Recent News gradient panel */
body.frontpage .recent-news-wrap {
  background: linear-gradient(135deg, #ffdce6 0%, #ffb4ba 100%) !important;
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

body.frontpage .recent-news-title-shell,
body.frontpage .recent-news-ticker,
body.frontpage .recent-news-archive-shell {
  position: relative;
  z-index: 1;
}

body.frontpage .recent-news-archive-link {
  display: inline-block;
  font-size: 2rem !important;
  font-weight: 700;
  color: #F97316 !important;
  text-decoration: none;
}

body.frontpage .recent-news-archive-link:hover,
body.frontpage .recent-news-archive-link:focus {
  text-decoration: underline;
}
/* Recent News ticker blend into gradient panel */
body.frontpage .recent-news-ticker {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
/* Featured Research panel before Recent News */
body.frontpage .featured-research-row {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
}

body.frontpage .featured-research-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 28px 32px 20px 32px !important;
  background: linear-gradient(135deg, #f8ef9e 0%, #bfeea2 100%) !important;
  box-sizing: border-box !important;
}

body.frontpage .featured-research-title-shell {
  width: 100% !important;
  text-align: center !important;
  margin: 0 0 12px 0 !important;
}

body.frontpage .featured-research-title {
  display: inline-block !important;
  margin: 0 auto 12px auto !important;
  text-align: center !important;
  font-size: 3em !important;
  font-weight: 800 !important;
}

body.frontpage .featured-research-wrap .featured-grid {
  margin: 0 auto !important;
  max-width: 90% !important;
  gap: 36px !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 1fr !important;
}

@media screen and (max-width: 860px) {
  body.frontpage .featured-research-wrap .featured-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 560px) {
  body.frontpage .featured-research-wrap .featured-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

body.frontpage .featured-research-wrap .research-cell {
  background: rgba(255,255,255,0.36) !important;
  border: none !important;
}

body.frontpage .recent-news-row {
  margin-top: 0 !important;
}

body.frontpage .recent-news-wrap {
  margin-top: 0 !important;
}

@media screen and (max-width: 980px) {
  body.frontpage .featured-research-wrap {
    padding: 22px 16px 16px 16px !important;
  }

  body.frontpage .featured-research-title {
    font-size: clamp(1.2rem, 6vw, 2.2rem) !important;
  }
}
/* Photo Gallery page tuning */
.gallery-major-title {
  font-size: clamp(2rem, 5vw, 4.5rem) !important;
  font-weight: 900 !important;
  text-align: center !important;
  margin: 0 0 36px 0 !important;
}

.gallery-page-shell {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 1600px);
  max-width: min(96vw, 1600px);
}

.gallery-page-shell .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
}

.gallery-page-shell .photo-item {
  align-items: stretch;
}

.gallery-page-shell .photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.gallery-page-shell .photo-caption {
  margin-top: 10px;
  font-size: 1rem;
}

@media screen and (max-width: 980px) {
  .gallery-major-title {
    font-size: clamp(1.5rem, 8vw, 3rem) !important;
  }

  .gallery-page-shell {
    width: 100%;
    max-width: 100%;
  }

  .gallery-page-shell .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .gallery-page-shell .photo-grid img {
    height: 220px;
  }
}

/* Gallery filmstrip final auto-scroll override */
.gallery-filmstrip-shell {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 1600px);
  max-width: min(96vw, 1600px);
  margin: 0 auto 42px !important;
}

.gallery-filmstrip {
  position: relative !important;
  overflow: hidden !important;
  height: 286px !important;
  padding: 18px 0 !important;
  background: linear-gradient(180deg, #ededed 0%, #ffffff 48%, #ededed 100%) !important;
  border-radius: 18px !important;
}

.gallery-filmstrip::before,
.gallery-filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 9px;
  z-index: 2;
  background: #d9d9d9;
}

.gallery-filmstrip::before {
  display: none;
}

.gallery-filmstrip::after {
  display: none;
}

.gallery-filmstrip-track {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: max-content !important;
  transform: translate(0, -50%);
  will-change: transform;
}

.gallery-filmstrip-item {
  position: relative;
  width: 424px !important;
  height: 250px !important;
  padding: 0 !important;
  background: transparent !important;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.gallery-filmstrip-item::after {
  display: none;
}

.gallery-filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  display: block;
  background: transparent;
  border-radius: 0;
}

@media screen and (max-width: 980px) {
  .gallery-filmstrip-shell {
    width: 94vw;
    max-width: 94vw;
    margin-bottom: 30px !important;
  }

  .gallery-filmstrip {
    height: 188px !important;
    padding: 12px 0 !important;
  }

  .gallery-filmstrip-item {
    width: 252px !important;
    height: 146px !important;
    padding: 0 !important;
  }

  .gallery-filmstrip-item::after {
    display: none;
  }
}









/* Homepage secondary intro card final layout */
#header-home .homepage-intro-card.homepage-intro-card-secondary {
  display: grid !important;
  grid-template-columns: minmax(0, 40%) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 0 !important;
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #f5f9fe !important;
}

#header-home .homepage-intro-card-secondary .homepage-intro-card-secondary-image-wrap {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#header-home .homepage-intro-card-secondary .homepage-intro-card-secondary-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

#header-home .homepage-intro-card-secondary .homepage-intro-card-secondary-copy {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 22px 4.2vw !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

#header-home .homepage-intro-card-secondary .homepage-secondary-brand {
  align-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: -8px auto 24px auto !important;
  text-align: center !important;
  font-size: clamp(2.24rem, 4.52vw, 3.99rem) !important;
}

#header-home .homepage-intro-card-secondary .homepage-secondary-brand .brand-fixed {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
}

#header-home .homepage-intro-card-secondary .brand-switcher,
#header-home .homepage-intro-card-secondary .brand-switcher-static,
#header-home .homepage-intro-card-secondary .switch-item,
#header-home .homepage-intro-card-secondary .switch-prefix {
  color: #F97316 !important;
  -webkit-text-fill-color: #F97316 !important;
  min-width: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  background: none !important;
  background-image: none !important;
  filter: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

#header-home .homepage-intro-card-secondary .switch-kit {
  display: none !important;
}

#header-home .homepage-intro-card-secondary .homepage-secondary-logo {
  filter: none !important;
}

#header-home .homepage-intro-card-secondary .homepage-intro-text#sub-title {
  width: min(900px, 100%) !important;
  margin: 0 !important;
  color: #4B5563 !important;
  text-align: justify !important;
  font-size: clamp(1.27rem, 1.5vw, 1.5rem) !important;
  line-height: 1.68 !important;
}

@media screen and (max-width: 980px) {
  #header-home .homepage-intro-card.homepage-intro-card-secondary {
    grid-template-columns: 1fr !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-intro-card-secondary-image-wrap {
    height: 30svh !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-intro-card-secondary-copy {
    align-items: flex-start !important;
    padding: 26px 16px 30px 16px !important;
    text-align: center !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-secondary-brand {
    font-size: clamp(1.4rem, 4.9vw, 2.1rem) !important;
    margin: 0 auto 18px auto !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-intro-text#sub-title {
    width: 100% !important;
    text-align: center !important;
    font-size: clamp(1.0rem, 3.81vw, 1.2rem) !important;
  }
}



/* Featured Research final orange override */
body.frontpage .featured-research-wrap {
  background: #FFEDD5 !important;
  background-image: none !important;
}


/* Recent News final green override */
body.frontpage .recent-news-wrap {
  background: #f5f9fe !important;
  background-image: none !important;
}

body.frontpage .recent-news-ticker {
  background: transparent !important;
}


/* Navigation title case override */
#navigation {
  position: fixed !important;
  top: 8px !important;
  left: 0;
  width: 100%;
  z-index: 9990 !important;
}

.top-bar-section ul li > a {
  text-transform: none !important;
}


/* Navigation individual rounded-rectangle items */
#navigation,
.top-bar,
.top-bar.expanded,
.top-bar .title-area,
.top-bar .name,
.top-bar .name h1,
.top-bar .name h1 a,
.top-bar-section,
.top-bar-section ul,
.fixed.expanded:not(.top-bar),
.fixed.expanded:not(.top-bar) .title-area,
.fixed.expanded:not(.top-bar) .top-bar-section {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.top-bar-section ul.right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.top-bar-section ul li,
.top-bar-section ul li.divider {
  background: transparent !important;
  border: none !important;
}

.top-bar-section ul li > a {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.1 !important;
  padding: 12px 18px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
}

.top-bar-section ul li.active > a {
  background: #f8fafc !important;
}

.nav-brand-shell .nav-brand-link {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.1 !important;
  padding: 10px 18px !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
}

/* Navigation final centered row layout */
.nav-brand-shell .nav-brand-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
}

.nav-brand-shell .nav-brand-link img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
}


/* Navigation final centered row layout */
#navigation {
  top: 10px !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#navigation .top-bar {
  height: auto !important;
  min-height: 0 !important;
  line-height: normal !important;
}

#navigation .top-bar-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

#navigation .nav-brand-shell {
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
}

#navigation .top-bar-section ul.right {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  right: auto !important;
}

#navigation .top-bar-section ul.right > li,
#navigation .top-bar-section ul.right > li.divider {
  position: static !important;
  left: auto !important;
  margin: 0 !important;
}

#navigation .top-bar-section ul.right > li.divider {
  display: none !important;
}

#navigation .top-bar-section ul li > a,
#navigation .nav-brand-shell .nav-brand-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  height: 46px !important;
  padding: 0 18px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

#navigation .nav-brand-shell .nav-brand-link {
  width: 46px !important;
  padding: 0 !important;
}

#navigation .nav-brand-shell .nav-brand-link img {
  width: 24px !important;
  height: 24px !important;
}

/* Navigation structural cleanup final override */
#navigation,
#navigation::before,
#navigation::after,
#navigation .top-bar,
#navigation .top-bar::before,
#navigation .top-bar::after,
#navigation .top-bar-section,
#navigation .top-bar-section::before,
#navigation .top-bar-section::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#navigation {
  top: 16px !important;
}

#navigation .top-bar-section {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

#navigation .nav-brand-shell {
  order: 0 !important;
  position: static !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

#navigation .top-bar-section ul.right {
  order: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

#navigation .top-bar-section ul.right > li {
  position: static !important;
  left: auto !important;
  margin: 0 !important;
}

#navigation .top-bar-section ul li > a,
#navigation .nav-brand-shell .nav-brand-link {
  height: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  border: 0 !important;
}

#navigation .nav-brand-shell .nav-brand-link {
  width: 44px !important;
  padding: 0 !important;
}

#navigation .nav-brand-shell .nav-brand-link img {
  width: 24px !important;
  height: 24px !important;
}

/* Dropdown — pure CSS, no Foundation */
#navigation .top-bar-section ul.right > li.nav-dropdown-wrapper {
  position: relative !important;
  overflow: visible !important;
  height: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  background: transparent !important;
}

#navigation .nav-dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 8px 0 0 0 !important;
  min-width: 100% !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#navigation .nav-dropdown-wrapper:hover .nav-dropdown-menu {
  display: block !important;
}

#navigation .nav-dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  width: 100% !important;
  padding: 0 18px !important;
  margin: 0 0 6px 0 !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
  color: #374151 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

#navigation .nav-dropdown-menu a:last-child {
  margin-bottom: 0 !important;
}

#navigation .nav-dropdown-menu a:hover {
  background: #f3f4f6 !important;
}

@media screen and (max-width: 64.0625em) {
  #navigation .nav-dropdown-wrapper:hover .nav-dropdown-menu,
  #navigation .nav-dropdown-menu {
    display: none !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }
  #navigation .top-bar-section ul.right > li {
    height: auto !important;
    min-height: auto !important;
    line-height: normal !important;
  }
}

@media screen and (max-width: 980px) {
  .home-footer [style*="display:flex"][style*="space-between"] {
    flex-wrap: wrap !important;
    gap: 24px !important;
  }
  .home-footer [style*="display:flex"][style*="space-between"] > div {
    min-width: 120px !important;
    flex: 1 1 auto !important;
  }
}

/* Remove global top white gap after floating navbar refactor */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}
body {
  padding-top: 0 !important;
  overflow-x: hidden;
}


/* Restore full-height page hero cards after navbar gap removal */
.homepage-hero,
body.post .aboutus-hero,
body.page-fullwidth .aboutus-hero,
body.page-fullwidth .research-hero,
body.post .joinus-hero,
body.page-fullwidth .joinus-hero {
  height: 100vh !important;
  min-height: 100vh !important;
}

@media screen and (max-width: 980px) {
  .homepage-hero,
  body.post .aboutus-hero,
  body.page-fullwidth .aboutus-hero,
  body.page-fullwidth .research-hero,
  body.post .joinus-hero,
  body.page-fullwidth .joinus-hero {
    height: 100svh !important;
    min-height: 100svh !important;
  }
}


/* Gallery hero full-screen section */
body.page-fullwidth .gallery-hero,
body.post .gallery-hero,
.gallery-hero {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.page-fullwidth .gallery-hero-title,
body.post .gallery-hero-title,
.gallery-hero-title {
  position: absolute !important;
  left: 10% !important;
  top: 50% !important;
  transform: translate(0, -50%) !important;
  margin: 0 !important;
  font-size: clamp(4.86rem, 11.54vw, 10.66rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  line-height: 0.88 !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 980px) {
  body.page-fullwidth .gallery-hero,
  body.post .gallery-hero,
  .gallery-hero {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  body.page-fullwidth .gallery-hero-title,
  body.post .gallery-hero-title,
  .gallery-hero-title {
    left: 10% !important;
    top: 50% !important;
    transform: translate(0, -50%) !important;
    font-size: clamp(2.2rem, 9.8vw, 4.46rem) !important;
  }
}


/* Gallery page top-frame cleanup */
body.page .gallery-hero,
body.page-fullwidth .gallery-hero,
body.post .gallery-hero {
  margin-top: 0 !important;
  border: 0 !important;
}

body.page .main-container,
body.page-fullwidth .main-container,
body.post .main-container {
  padding-top: 0 !important;
}


/* Remove top row gap above full-screen page heroes */
body.page .row.t30,
body.post .row.t30,
body.page-fullwidth .row.t30 {
  margin-top: 0 !important;
}

body.page article > header,
body.post article > header,
body.page-fullwidth article > header {
  margin: 0 !important;
  padding: 0 !important;
}


/* Gallery hero to title spacing aligned with Research page */
.gallery-hero + .gallery-major-title {
  margin-top: 48px !important;
  margin-bottom: 36px !important;
}




/* Featured Research final palette refresh */
body.frontpage .featured-research-wrap {
  background: #fefaf5 !important;
  background-image: none !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.frontpage .featured-research-title {
  color: #111827 !important;
}

body.frontpage .featured-research-wrap .research-cell {
  background: #FFFFFF !important;
  border: 2px solid #F3DEC4 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 22rem !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

body.frontpage .featured-research-wrap .research-cell:hover {
  border-color: #F97316 !important;
  transform: scale(1.05) !important;
  z-index: 2 !important;
}

body.frontpage .featured-research-wrap .research-cell h3 {
  color: #9A3412 !important;
  margin: 16px 0 16px 0 !important;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem) !important;
}

body.frontpage .featured-research-wrap .research-img {
  width: 100% !important;
  height: 154px !important;
  object-fit: cover !important;
  margin-bottom: 8px !important;
}

body.frontpage .featured-research-wrap .research-cell ul,
body.frontpage .featured-research-wrap .research-cell li {
  color: #4B5563 !important;
}

body.frontpage .featured-research-wrap .research-cell li::marker {
  color: #C65D1E !important;
}

/* Featured Research sub-cards */
body.frontpage .featured-research-wrap .research-subcards {
  display: flex !important;
  gap: 8px !important;
  justify-content: space-between !important;
  margin-top: 8px !important;
}

body.frontpage .featured-research-wrap .research-subcard {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 6px !important;
  border: none !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-size: clamp(0.65rem, 1.1vw, 0.85rem) !important;
  background: #f5f9fe !important;
  color: #4B5563 !important;
  min-width: 0 !important;
  word-break: break-word !important;
}

@media screen and (max-width: 768px) {
  body.frontpage .featured-research-wrap .research-subcards {
    gap: 4px !important;
  }

  body.frontpage .featured-research-wrap .research-subcard {
    font-size: clamp(0.55rem, 1.8vw, 0.7rem) !important;
    padding: 6px 4px !important;
  }
}

/* Recent News final palette refresh */
body.frontpage .recent-news-wrap {
  background: #f5f9fe !important;
  background-image: none !important;
}

body.frontpage .recent-news-title {
  color: #111827 !important;
}

body.frontpage .recent-news-wrap a {
  color: #F97316 !important;
}

body.frontpage .recent-news-wrap a:hover {
  color: #C2410C !important;
}

/* Homepage Join Us final palette */
body.frontpage .join-us-home-wrap {
  background: #111827 !important;
  background-image: none !important;
}

body.frontpage .join-us-home-title {
  color: #FFFFFF !important;
}

body.frontpage .join-us-home-wrap p {
  color: #D1D5DB !important;
}

body.frontpage .join-us-home-wrap a {
  color: #FDBA74 !important;
}

body.frontpage .join-us-home-wrap a:hover {
  color: #FFFFFF !important;
}

/* Homepage Join Us final palette refresh */
body.frontpage .home-joinus-wrap {
  background: #fefaf5 !important;
  color: #D1D5DB !important;
}

body.frontpage .home-joinus-title {
  color: #111827 !important;
}

body.frontpage .home-joinus-wrap p {
  color: #111827 !important;
}

body.frontpage .home-joinus-wrap a {
  color: #F97316 !important;
}

body.frontpage .home-joinus-wrap a:hover {
  color: #C2410C !important;
}

/* Homepage Join Us alignment */
body.frontpage .home-joinus-title {
  text-align: center !important;
}

body.frontpage .home-joinus-wrap p {
  text-align: center !important;
}

/* Homepage Join Us sizing refresh */
body.frontpage .home-joinus-title {
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
}

body.frontpage .home-joinus-wrap p {
  font-size: clamp(0.9rem, 1.5vw, 1.3rem) !important;
  line-height: 1.7 !important;
}

body.frontpage .home-joinus-wrap {
  min-height: 1.5em;
  padding-top: 38px !important;
  padding-bottom: 75px !important;
}

/* Homepage Join Us top spacing aligned with Recent News */
body.frontpage .home-joinus-wrap {
  padding-top: 28px !important;
}

/* Homepage Join Us spacing and link-size fix */
body.frontpage .home-joinus-wrap {
  padding-top: 28px !important;
}

body.frontpage .home-joinus-title {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding-top: 0 !important;
}

body.frontpage .home-joinus-wrap p a {
  font-size: inherit !important;
}

/* Shared back-to-top arrow final consistency lock */
#up-to-top a.iconfont {
  font-family: iconfont !important;
  font-size: 24px !important;
  line-height: 1 !important;
  display: inline-block !important;
  padding: 5px !important;
  border-radius: 3px !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  text-align: center !important;
}

/* About us member subtitle spacing increase */
.aboutus-page .members-subtitle {
  margin-bottom: 36px !important;
}

/* Mobile navigation: single breakpoint – hamburger menu */
@media screen and (max-width: 64.0625em) {
  .welcome-brand-text {
    white-space: normal !important;
  }

  /* ---- reset EVERYTHING on #navigation to clean white bar ---- */
  #navigation,
  #navigation::before,
  #navigation::after {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: fixed !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #navigation .top-bar,
  #navigation .top-bar::before,
  #navigation .top-bar::after {
    height: 56px !important;
    min-height: 56px !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #ffffff !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 9999 !important;
    line-height: normal !important;
  }

  #navigation .top-bar.expanded {
    height: 56px !important;
    overflow: visible !important;
  }

  /* ---- title-area: InSAI brand + hamburger ---- */
  #navigation .title-area,
  #navigation .title-area::before,
  #navigation .title-area::after {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 56px !important;
    min-height: 56px !important;
    width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    background-image: none !important;
    position: relative !important;
    z-index: 9999 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #navigation .title-area .name,
  #navigation .title-area .name h1,
  #navigation .title-area .name h1 a {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1 !important;
    display: inline-flex !important;
  }

  .nav-mobile-brand-text {
    display: inline !important;
    font-size: 1.2rem !important;
    color: #111827 !important;
    font-weight: 700 !important;
  }

  .nav-mobile-logo {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
  }

  /* ---- hamburger toggle ---- */
  #navigation .toggle-topbar.menu-icon {
    display: block !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    background: transparent !important;
  }

  #navigation .toggle-topbar.menu-icon a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
  }

  /* ---- desktop brand pill: hide on mobile ---- */
  #navigation .nav-brand-shell,
  #navigation .nav-brand-shell .nav-brand-link {
    display: none !important;
  }

  /* ---- top-bar-section: hidden by default, shown when expanded ---- */
  #navigation .top-bar-section,
  #navigation .top-bar-section::before,
  #navigation .top-bar-section::after {
    display: none !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    background-image: none !important;
    z-index: 9998 !important;
    padding: 12px 16px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 16px !important;
    border: 0 !important;
    content: none !important;
  }

  #navigation .top-bar.expanded .top-bar-section,
  #navigation .top-bar.expanded .top-bar-section::before,
  #navigation .top-bar.expanded .top-bar-section::after {
    display: flex !important;
    background: #ffffff !important;
    background-image: none !important;
    content: none !important;
  }

  /* ---- menu list: stack vertically full-width ---- */
  #navigation .top-bar-section ul.right {
    display: block !important;
    flex-wrap: nowrap !important;
    flex-direction: column !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  #navigation .top-bar-section ul,
  #navigation .top-bar-section ul.left {
    display: none !important;
  }

  #navigation .top-bar.expanded .top-bar-section ul.right {
    display: block !important;
  }

  #navigation .top-bar-section ul.right > li {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    position: static !important;
    margin: 0 !important;
    left: auto !important;
    background: #ffffff !important;
    border: 0 !important;
  }

  #navigation .top-bar-section ul.right > li.divider {
    display: none !important;
  }

  /* ---- menu item links: clean tap targets ---- */
  #navigation .top-bar-section ul li > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    background: #ffffff !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    color: #111827 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    float: none !important;
  }

  #navigation .top-bar-section ul li:last-child > a {
    border-bottom: none !important;
  }
}

/* Responsive stability cleanup */
@media screen and (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
  }

  body.frontpage .main-container,
  body.page .main-container,
  body.page-fullwidth .main-container,
  body.post .main-container {
    overflow-x: hidden !important;
  }

  body.page-fullwidth .aboutus-hero,
  body.page-fullwidth .research-hero,
  body.page-fullwidth .joinus-hero,
  body.post .aboutus-hero,
  body.post .research-hero,
  body.post .joinus-hero {
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.post .gallery-hero,
  body.page-fullwidth .gallery-hero,
  .gallery-hero {
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
  }

  body.frontpage .homepage-hero {
    height: 100vh !important;
    min-height: 100vh !important;
  }

  body.frontpage .homepage-hero .homepage-hero-title {
    left: 10% !important;
    top: 50% !important;
    width: min(88vw, 32rem) !important;
    transform: translate(0, -50%) !important;
  }

  body.frontpage .homepage-hero .homepage-hero-subtitle {
    position: static !important;
    display: block !important;
    margin-top: 1rem !important;
    max-width: 100% !important;
    white-space: normal !important;
    font-size: clamp(0.95rem, 4vw, 1.25rem) !important;
    line-height: 1.35 !important;
  }

  #header-home .homepage-intro-card.homepage-intro-card-secondary {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-intro-card-secondary-image-wrap {
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    height: min(36svh, 320px) !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-intro-card-secondary-copy {
    align-items: center !important;
    padding: 24px 16px 28px 16px !important;
    text-align: left !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-secondary-brand {
    width: 100% !important;
  }

  #header-home .homepage-intro-card-secondary .homepage-intro-text#sub-title {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  #navigation .title-area {
    overflow: visible !important;
  }

  #navigation .title-area .name {
    min-width: 0 !important;
    padding-right: 56px !important;
  }

  #navigation .title-area .name h1 a {
    max-width: calc(100vw - 88px) !important;
  }

  .nav-mobile-brand-text {
    white-space: nowrap !important;
  }

  .gallery-filmstrip-shell,
  .gallery-page-shell {
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
  }

  .gallery-filmstrip-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
  }

  .gallery-filmstrip-item {
    flex: 0 0 78vw !important;
    width: 78vw !important;
    max-width: 252px !important;
  }

  .home-footer > div {
    padding: 0 16px !important;
  }

  .home-footer [style*="display:flex"][style*="space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  .home-footer [style*="display:flex"][style*="space-between"] > div {
    width: 100% !important;
    min-width: 0 !important;
  }

  .home-footer .qr-popup {
    left: 0 !important;
    right: auto !important;
    max-width: min(40vw, 140px) !important;
  }
}

@media screen and (max-width: 640px) {
  .gallery-page-shell .photo-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Second-pass responsive refinement */
@media screen and (max-width: 980px) {
  body.post .aboutus-hero-title,
  body.page-fullwidth .aboutus-hero-title,
  body.page-fullwidth .research-hero-title,
  body.post .joinus-hero-title,
  body.page-fullwidth .joinus-hero-title,
  body.page-fullwidth .gallery-hero-title,
  body.post .gallery-hero-title,
  .gallery-hero-title {
    left: 10% !important;
    top: 50% !important;
    white-space: normal !important;
    line-height: 0.95 !important;
    transform: translate(0, -50%) !important;
  }

  .row.aboutus-page,
  .joinus-content {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  .aboutus-page .aboutus-major-title,
  .joinus-content .section-title {
    margin-bottom: 20px !important;
  }

  .aboutus-page .aboutus-subtitle,
  .aboutus-page .members-subtitle {
    font-size: clamp(1.05rem, 4.6vw, 1.35rem) !important;
    line-height: 1.35 !important;
  }

  .aboutus-page p,
  .aboutus-page li,
  .joinus-content p,
  .joinus-content li {
    font-size: clamp(0.85rem, 1.5vw, 0.98rem) !important;
    line-height: 1.7 !important;
  }

  .event-card {
    max-width: 100% !important;
    padding: 20px 16px 14px 16px !important;
  }

  .event-card-title,
  .event-card-desc {
    text-align: left !important;
  }

  .publication-card-row {
    display: block !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
  }

  .publication-card-row > .column,
  .publication-card-row > [class*="small-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
  }

  .publication-card-row > .column:first-child,
  .publication-card-row > [class*="small-"]:first-child {
    margin-bottom: 14px !important;
  }

  .publication-card-row img {
    width: min(100%, 320px) !important;
    display: block !important;
    margin: 0 auto !important;
  }

  .publication-card-row p {
    margin-bottom: 0 !important;
  }

  .publication-card-row .btn {
    display: inline-block !important;
    margin-top: 6px !important;
  }

  .member {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 12px !important;
  }

  .member img {
    width: min(44vw, 160px) !important;
    height: min(44vw, 160px) !important;
  }

  .member a,
  .member span,
  .member div {
    overflow-wrap: anywhere;
  }

  .joinus-content #lang-switch {
    float: none !important;
    display: block !important;
    margin: 0 0 20px auto !important;
  }

  .joinus-content > div[style*="display: flex"][style*="gap: 24px"] {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 18px !important;
  }

  .joinus-content > div[style*="display: flex"][style*="gap: 24px"] > div {
    width: min(42vw, 160px) !important;
  }

  .joinus-content > div[style*="display: flex"][style*="gap: 24px"] img {
    width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 640px) {
  .member {
    font-size: 16px !important;
  }

  .event-card-title {
    font-size: 1.2rem !important;
  }

  .event-card-desc,
  .publication-card-row p,
  .joinus-content p,
  .joinus-content li,
  .aboutus-page p,
  .aboutus-page li {
    font-size: clamp(0.8rem, 2vw, 0.94rem) !important;
  }
}

/* Shared page cleanup */
.page-fullwidth-offset {
  margin-left: 3%;
}

.news-page-shell {
  margin-top: 90px;
  margin-left: 1%;
}

.hero-gradient-research {
  background: linear-gradient(135deg, #fecaca 0%, #fed7aa 100%);
}

.hero-gradient-people {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
}

.hero-gradient-teaching {
  background: linear-gradient(135deg, #99f6e4 0%, #bfdbfe 100%);
}

.hero-gradient-publication {
  background: linear-gradient(135deg, #fef08a 0%, #bbf7d0 100%);
}

.hero-gradient-recruitment {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.event-card-header {
  display: flex;
  align-items: flex-start;
}

.event-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-right: 18px;
  object-fit: contain;
}

.event-card-divider {
  margin: 10px 0 18px 0;
  border: 0;
  border-top: 1px solid #e3e6ea;
}

.event-card-desc {
  font-size: 1.08em;
  color: #222;
  margin-bottom: 18px;
}

.publication-page-title {
  text-align: center;
  margin: 48px 0 36px 0;
}

.publication-card-image {
  width: 100%;
  border: 1px solid #000;
}

.publication-highlight {
  color: red;
}

.member-card {
  margin-bottom: 32px;
}

.member-photo {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  object-fit: cover;
}

/* Stable frames for people, publication, and research cards */
.event-card-logo {
  border-radius: 18px !important;
  border: 1px solid #d9dee5 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
}

.publication-card-image {
  border: 1px solid #d9dee5 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  object-fit: cover !important;
}

.member-photo {
  display: block !important;
  margin: 0 auto !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  object-fit: cover !important;
}

/* Final alignment for V2 section titles across content pages */
.aboutus-page .aboutus-major-title,
.aboutus-page .aboutus-subtitle,
.joinus-content .section-title {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.aboutus-page .aboutus-subtitle,
.joinus-content .section-title {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Final event logo constraints */
.aboutus-page .event-card-header {
  align-items: flex-start !important;
}

.aboutus-page .event-card-logo {
  display: block !important;
  flex: 0 0 72px !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 72px !important;
  max-height: 72px !important;
  margin-right: 18px !important;
  object-fit: contain !important;
  padding: 8px !important;
}

@media screen and (max-width: 980px) {
  .aboutus-page .event-card-logo {
    flex-basis: 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    max-height: 60px !important;
    margin-right: 12px !important;
    padding: 6px !important;
  }
}

/* Final homepage Join Us override to avoid layout drift */
body.frontpage .home-joinus-wrap {
  background: #fefaf5 !important;
  color: #111827 !important;
  max-width: 100% !important;
  min-height: auto !important;
  box-sizing: border-box !important;
  padding: 28px 5% 56px 5% !important;
}

body.frontpage .home-joinus-title {
  color: #111827 !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: clamp(1.5rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding-top: 0 !important;
}

body.frontpage .home-joinus-wrap p {
  color: #111827 !important;
  text-align: center !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  font-size: clamp(0.9rem, 1.5vw, 1.3rem) !important;
  line-height: 1.7 !important;
  overflow-wrap: anywhere !important;
}

body.frontpage .home-joinus-wrap a {
  color: #F97316 !important;
}

body.frontpage .home-joinus-wrap a:hover {
  color: #C2410C !important;
}

body.frontpage .home-joinus-wrap p a {
  font-size: inherit !important;
}

.member-link {
  color: #2F72A8;
}

.member-meta-link {
  font-size: 20px;
  color: #2F72A8;
}

.member-note {
  color: gray;
}

.joinus-section-title {
  color: orange;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.joinus-section-title-zh {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.joinus-list-spaced > li {
  margin-bottom: 20px;
}

.joinus-qr-grid {
  display: flex;
  gap: 24px;
  margin: 24px 0;
}

.joinus-list-spaced > li {
  margin-bottom: 20px;
}

.joinus-qr-item {
  text-align: center;
}

.joinus-qr-image {
  width: 140px;
  height: 140px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.joinus-qr-label {
  margin-top: 8px;
  font-weight: 500;
}

.muted-update {
  color: gray;
}

@media screen and (max-width: 980px) {
  .event-card-logo {
    margin-right: 12px;
  }

  .joinus-qr-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .joinus-qr-item {
    width: min(42vw, 160px);
  }

  .joinus-qr-image {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 640px) {
  .joinus-section-title-zh {
    font-size: clamp(1.5rem, 4vw, 3rem);
  }
}

/* Final homepage mobile safety net */
@media screen and (max-width: 980px) {
  body.frontpage .featured-research-row,
  body.frontpage .recent-news-row {
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.frontpage .featured-research-wrap,
  body.frontpage .recent-news-wrap,
  body.frontpage .home-joinus-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    transform: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.frontpage .featured-research-title-shell,
  body.frontpage .recent-news-title-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.frontpage .featured-research-title,
  body.frontpage .recent-news-title,
  body.frontpage .home-joinus-title {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
  }

  body.frontpage .featured-research-wrap .featured-grid {
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body.frontpage .featured-research-wrap .research-cell {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.frontpage .featured-research-wrap .research-img {
    height: 198px !important;
  }

  body.frontpage .featured-research-wrap .research-subcards {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  body.frontpage .featured-research-wrap .research-subcard {
    flex: 1 1 100% !important;
  }

  body.frontpage .recent-news-ticker,
  body.frontpage .recent-news-wrap .recent-news-ticker {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 15rem !important;
    min-height: 15rem !important;
    max-height: 15rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: auto !important;
    transform: none !important;
    overflow: hidden !important;
  }

  body.frontpage .recent-news-track {
    align-items: stretch !important;
    width: 100% !important;
  }

  body.frontpage .recent-news-segment {
    width: 100% !important;
  }

  body.frontpage .recent-news-track .recent-news-item {
    width: 100% !important;
    align-items: flex-start !important;
    padding: 12px 0 !important;
  }

  body.frontpage .recent-news-first-line,
  body.frontpage .recent-news-track .recent-news-item,
  body.frontpage .recent-news-track .recent-news-copy {
    white-space: normal !important;
  }

  body.frontpage .recent-news-first-line {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body.frontpage .recent-news-track .recent-news-title-line {
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  body.frontpage .recent-news-track .recent-news-body-line,
  body.frontpage .recent-news-track .new-day-month,
  body.frontpage .recent-news-track .new-year {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }

  body.frontpage .recent-news-blank {
    height: 15rem !important;
  }

  body.frontpage .home-joinus-wrap p {
    max-width: 100% !important;
    font-size: 1rem !important;
  }

  body.frontpage .home-footer > div {
    padding: 0 16px !important;
  }

  body.frontpage .home-footer [style*="display:flex"][style*="space-between"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  body.frontpage .home-footer [style*="display:flex"][style*="space-between"] > div {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media screen and (max-width: 700px) {
  body.frontpage .recent-news-first-line {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  body.frontpage .recent-news-track .recent-news-title-line {
    font-size: clamp(0.7rem, 3.5vw, 0.9rem) !important;
    line-height: 1.25 !important;
  }

  body.frontpage .recent-news-track .new-day-month,
  body.frontpage .recent-news-track .new-year {
    font-size: 0.72rem !important;
  }
}

@media screen and (max-width: 640px) {
  body.frontpage .homepage-hero .homepage-hero-title {
    width: min(86vw, 18rem) !important;
  }

  body.frontpage .homepage-hero .homepage-hero-subtitle {
    font-size: 0.92rem !important;
  }

  body.frontpage .recent-news-ticker,
  body.frontpage .recent-news-wrap .recent-news-ticker {
    height: 13rem !important;
    min-height: 13rem !important;
    max-height: 13rem !important;
  }

  body.frontpage .recent-news-blank {
    height: 13rem !important;
  }
}
