/*!
Theme Name: Sau Po Centre on Ageing
Theme URI: https://them.es/starter
Author: Sau Po Centre on Ageing, HKU
Author URI: https://them.es/
Description: 
Version: 3.6.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: saupo
*/
main{
	overflow: hidden;
}
#tab-spinner {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
}
header {
  position: sticky;
  top: 0;
  z-index: 3;
}
.scholarships .wp-block-group.is-nowrap.is-layout-flex {
	    justify-content: space-between;
}

.scholarships figure img{
	min-width: 37px;
}
	
.kb-image412_500896-1c{
 max-width: unset !important;	
}
.wp-block-kadence-tab.kt-tab-inner-content td {
    vertical-align:middle !important;	
}
.wp-block-kadence-tabs .kt-tabs-id412_3fc4bf-d2 > .kt-tabs-title-list li {
	width : 100% !important;
}
table.kb-table412_e206af-76{
	width: auto;
}
.kt-inner-tab412_eb97cb-fc .kb-image412_b54a49-79{
	    width: 37px;
}
.type-event .post-thumbnail {
	align-items: center !important;
}
.wp-theme-saupo .wp-block-group.wp-block-group-is-layout-flex  .wp-block-kadence-image {
  	margin-bottom: 1em;
}

min-width: 30px !important;
    width: 30px;

.entry-title a {
	color: black !important;
}
/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */
.header-social-media {
	padding: 0px 1rem;
    margin-left: 1rem;
    border-left: 1px solid white;
}
.header-social-media  svg {
	margin-right: 1rem;
}
.publication-content-container {
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	
}
.publication-content-container .more-link-wrap {
margin-bottom: 0px;
}
.publication-content-container > div {
 max-width: calc(100% - 80px);
}
/* From http://codex.wordpress.org/CSS */
#assetment_tools {
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
}
.assetment-card .card-text  {
	font-size: 0.7rem;
}
#assetment_tools .bee3D--before-1,
#assetment_tools .bee3D--before-2,
#assetment_tools .bee3D--before-3,
#assetment_tools .bee3D--before-4,
#assetment_tools .bee3D--before-5
{opacity:0 !important}


#assetment_tools .bee3D--before-1 {transform:translate3d(-140px, 0, 0);}
#assetment_tools .bee3D--after-1 {transform:translate3d(140px, 0, 0);}
#assetment_tools .bee3D--after-2 {transform:translate3d(200px, 0, 0);}
#assetment_tools .bee3D--after-2 {transform:translate3d(250px, 0, 0);}
#assetment_tools .bee3D--after-2 {transform:translate3d(300px, 0, 0);}
#assetment_tools .bee3D--after-2 {transform:translate3d(350px, 0, 0);}
.wp-block-kadence-posts a.post-more-link {
    font-weight: bold;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    font-size: 80%;
}
.wp-block-kadence-posts a.post-more-link .kadence-svg-iconset {
    margin-left: .5em;
    display: inline-flex
;
    align-self: center;
}
.wp-block-kadence-posts a.post-more-link .kadence-svg-iconset svg {
    height: 1em;
    width: 1em;
    top: .125em;
    position: relative;
}
.single-row-item {
	display: flex;
	margin-bottom: 2rem;
}
.single-row-item .entry-title {
	font-size: 1.2rem;
	font-weight: 700;
	
}
.single-row-item .post-thumbnail {
	width: 100%;
	padding: 1rem;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.single-row-item .post-thumbnail img {
    max-width: unset;
	width: auto;
	max-height: 160px;
	    max-width: 100%;
}
.single-row-item .tag {
	background: #F5F5F5;
	padding: 5px 10px;
	font-size: 0.8rem;
	color: black;
	width: fit-content;
	
}
.single-row-item .more-link-wrap {
		width: fit-content;
    background: #EF515A;
    padding: 0.4rem 1rem;	
}
.single-row-item .more-link-wrap  a {
    color: white !important;	
}
.single-row-item a .kadence-svg-iconset {
	margin-left: .5em;
    display: inline-flex;
    align-self: center;
}
.single-row-item a .kadence-svg-iconset svg {
	height: 1em;
    width: 1em;
    top: .125em;
    position: relative;
}
.bee-3d-prev, .bee-3d-next,
.owl-prev, .owl-next {
	width: 45px !important;
	height: 45px !important;
	border: 1px solid #EF515A !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 2rem !important;
	color: #EF515A !important;
	border-radius: 25px !important;
}
.bee-3d-next,
.owl-next {
	margin-left: 3rem !important;

}
.owl-nav {
	display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}
.header-notice {
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 400;
	line-height: 24px; /* 150% */
	letter-spacing: 0.4px;
}
.subpage-menu {
	display: flex;
    padding: 12px 16px !important;
    flex-direction: column;
    align-items: flex-start;
    background: #FFF;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
	max-width: 250px;
}

.subpage-menu li a {
color: #5C5C5C !important;

/* P - Description */
font-style: normal;
	text-transform: none;
font-weight: 400  !important;
line-height: 24px !important; /* 150% */
letter-spacing: 0.4px  !important;
}
.subpage-menu .nav-link.active  {
	border-bottom: 2px solid #EF515A !important;
	color: #EF515A !important;
}
.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}


/*! Custom code !*/
.navbar-brand img {
	height: 75px !important;
}
.section-header {
	border-left: 7px solid;
	padding-left: 1rem;
	font-weight: 900;
	margin-bottom: 3rem;
	color: #1A1A1A;
	&.orange {
		border-color: #E03A00;
	}
	&.blue {
		border-color: #4097DB;
	}
	&.green {
		border-color: #4EBD88;
	}
	
	&.yellow {
		border-color: #FFE800;
	}
}


.owl-prev, .owl-next {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EF515A;
}
.latest-achievement-container .entry-title a, .type-updates .entry-title a {
		font-weight: bold;
		font-size: var(--global-kb-font-size-md, 1.25rem);
		color: black !important;	
	}
}
.project-box .entry-title a {
		font-weight: bold;
		color: black !important;	
	}
.project-box  .more-link-wrap {
		width: fit-content;
    background: #EF515A;
    color: white !important;
    padding: 0.4rem 1rem;	
	
}
.project.entry{
	height: 200px !important;
	grid-template-columns: minmax(0, 300px) minmax(0, 2fr) !important;
	img {
		width: 300px !important;
		height: 200px !important;
	}
}
.section-inner {
	.kt-inside-inner-col {
		    margin-right: var(--global-kb-spacing-xs, 1rem);
    margin-left: var(--global-kb-spacing-xs, 1rem);

	}
}
.wp-block-group {
    box-sizing: border-box;
    margin-bottom: 1.5rem;
}
.wp-block-kadence-column {
	margin-bottom: 0.5rem;
}
#footer ul {
	    box-shadow: unset;
    	background: transparent;
	}
#footer	.footer-header {
		font-style: normal;
		font-weight: 600;
		line-height: normal;
	}
#footer {
	background: #F6F9FA !important;
    padding-top: 3rem;
}

.full-container-width {
	width: 100vw;
    margin-left: calc(-50vw + 50%);
	padding: 0px !important;
}
.home-banner {
	margin-top: -1rem !important;
}
.home-banner .kb-gallery-figure {
		max-height: 400px;
	
}
.entry.type-publication .entry-date {
		background: #4EBD88;
		color: white;
		padding: 4px 12px;
	
}
.type-project:nth-child(even) .card { 
	background-color: #f7fffa;
}

.type-project:nth-child(odd) .card { 
	background-color: #FFFAF7;
}
.grid-lg-col-1 .type-publication .entry-title {
	color: black !important;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2rem;
}
.grid-lg-col-1 .type-publication .entry-title a {
    color: black !important;
}

.type-event .entry-title {
	font-size: 1rem;
    font-weight: 600;
    line-height: 1.2rem;
}
.wp-block-image img.wp-image-254, .wp-block-kadence-image img.wp-image-254 {
	min-width: 37px !important;
}
.type-publication .more-link-wrap, .type-event .more-link-wrap, .type-updates .more-link-wrap {
	width: fit-content;
    border: 1px solid #EF9351;
    background: #FFF9F5;
    padding: 5px 12px;
    align-items: center;
    color: #EF9351;
	min-width: 100px;
}
.page-header {
	background-size: cover;
    background-position: center;
    margin-top: -1em;
}
.page-header h1 {
		font-weight: 900;
		line-height: normal;
		text-transform: uppercase;
		font-size: 2rem;
		font-weight: 600;
		border-left: 10px solid #EF5E5A;
		padding-left: 20px;
	
}
.entry.type-media-cover .entry-content-wrap, .entry.type-event .entry-content-wrap {
		padding: 1rem !important;
}
.entry.type-media-cover .entry-title {
	    font-size: 1rem;
}
.entry.type-media-cover	a {
		    color: black;
		
	}
.entry.type-media-cover	.more-link-wrap {
	    background: #EF515A;
		padding: 8px 12px;
		color: white;
		width: fit-content;
	}

	.wp-block-kadence-tabs .kt-tabs-title-list{
			
		flex-wrap: nowrap!important;
		overflow: auto;
	}
.kb-table412_8528e5-cf td:nth-of-type(3), .kb-table412_8528e5-cf th:nth-of-type(3){
	    width: 170px;
}
@media (max-width: 768px) {
	#latest_achievement .owl-item,
	#assetment_mobile .owl-item {
		padding: 0px 40px !important;
	}
	.owl-prev, .owl-next {
		width: 35px !important;
		height: 35px !important;
	}

	.owl-nav {
		top: calc(50% - 50px);
		z-index: 999;
		position: absolute;
		justify-content: space-between !important;
		padding: 0px 5px;
	}
	.owl-dots {
		display: none !important;
	}

	article .card  p{
		display: -webkit-box; /* Required for -webkit-line-clamp */
		-webkit-box-orient: vertical; /* Required for -webkit-line-clamp */
		-webkit-line-clamp: 6; /* Sets the maximum number of lines to 3 */
		overflow: hidden; /* Hides any content exceeding the line limit */
		text-overflow: ellipsis; 
	}
	.kadence-column403_74c219-98 .wp-block-kadence-column > .kt-inside-inner-col{
		flex-wrap: nowrap!important;
	}
	.kadence-column403_74c219-98 .wp-block-kadence-column > .kt-inside-inner-col>.wp-block-image{
		flex: 0 0 34px;
	}
	.row:has(> .row) {
	  display: block;
	}
	.row>.row{
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}
	
	.wp-block-kadence-tabs.alignnone{
		margin: 0;
	}
	.wp-block-column:empty{
		display: none;
	}
	.navbar-brand img {
		height: 40px !important
	}
	#navbar > div {
		align-items: start !important;
	}
	
	#navbar > div > div {
		width: 100% !important;
	}
	.header-notice {
		flex-direction: column;
		width: 100%;
		}
	.header-social-media {
		    margin-left: 0;
    padding: 0;
    border: 0;
	}
	
	.publication-content-container {
		flex-direction: row;
		align-items: start;
		justify-content: start;
	}
	.publication-content-container > div {
 		max-width: 100%;
	}
	.publication-content-container  .more-link-wrap {
		margin-top: 1rem;
	}
	.wp-block-kadence-advancedheading a{
		word-break: break-all;
	}
	.wp-block-kadence-advancedheading{
		overflow: hidden;
	}
	.kb-image359_88edf3-b9{
		max-width: unset;
	}
	.wp-block-group figure.wp-block-image{
 		 flex: 0 0 34px;
	}
	.kadence-column216_411529-05 > .kt-inside-inner-col, .kadence-column216_fd4056-71 > .kt-inside-inner-col{
		   padding-left: 0px !important;
	}
}

.more-link-wrap.btn-link-arrow::after {
    
    content: url("data:image/svg+xml, %3Csvg fill='white' version='1.1' xmlns='http://www.w3.org/2000/svg' width='27' height='28' viewBox='0 0 27 28'%3E%3Ctitle%3EContinue%3C/title%3E%3Cpath d='M27 13.953c0 0.141-0.063 0.281-0.156 0.375l-6 5.531c-0.156 0.141-0.359 0.172-0.547 0.094-0.172-0.078-0.297-0.25-0.297-0.453v-3.5h-19.5c-0.281 0-0.5-0.219-0.5-0.5v-3c0-0.281 0.219-0.5 0.5-0.5h19.5v-3.5c0-0.203 0.109-0.375 0.297-0.453s0.391-0.047 0.547 0.078l6 5.469c0.094 0.094 0.156 0.219 0.156 0.359v0z'%3E%3C/path%3E%3C/svg%3E");
    color: white;
    display: inline-block;
    position: relative;
    margin-left: 0.5rem;
    transform: scale(0.6) translateY(30%);
    margin-top: -24px;
    width: 1rem;

        
}