/**
 * Theme Name: Social Sanatate - Blocksy
 * Description: A Blocksy Child theme for social-sanatate.ro
 * Author: Respect Media
 * Template: blocksy
 * Text Domain: blocksy
 */



/* ### site wide */

#offcanvas .ct-panel-content {
    position: relative;
}

#offcanvas .ct-panel-content:before {
    content: '';
    background-image: url(/wp-content/uploads/logo_dpssiasi_header_mobile.webp);
    width: 195px;
    height: 195px;
    position: absolute;
    bottom: 1em;
    right: 1em;
    opacity: .16;
    pointer-events: none;
    background-size: cover;
}

button.ct-button.ct-cookies-decline-button {
    display: none;
}

.logo_row_a {
    display: flex;
    align-items: center;
}

.logos_row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10%;
}

div#bottom_logos {
    gap: 2.5vw;
}

.hero-section header.entry-header.ct-container-narrow h1.page-title {
    text-shadow: 0px 2px 3px rgb(0 0 0 / 40%);
}

/* *
.logo_row_a img.row_logo {
    transition: filter 0.5s, opacity 0.5s;
    filter: grayscale(1);
    opacity: 0.7;
}

.logo_row_a:hover img.row_logo {
    filter: grayscale(0);
    opacity: 1;
}
/* */

h5.bottom_poca_text {
	font-family: system-ui;
    font-weight: 500;
    font-style: italic;
    font-size: 1.05em;
    color: #01329d;
	margin-top: 12px !important;
	line-height: 1.2;
}

[data-footer*="type-1"] .ct-footer [data-row*="top"] > div {
    padding: 16px 0 20px;
}

article .entry-content blockquote {
    background: #bbe3f7;
    color: #000;
    padding: 1.1em 1.25em !important;
    border-left: solid 5px #8ccff1 !important;
}

article .entry-content blockquote p {
    font-size: 1.075em;
}

article .entry-content blockquote p:last-of-type {
    margin-bottom: 0;
}

article .entry-content h2:after {
    content: '';
    width: 100%;
    position: absolute;
    border-bottom: solid .55em #fafbfc;
    bottom: 0;
    margin-left: -8%;
    z-index: -1;
}

article .entry-content h2:before {
    content: '';
    width: 100%;
    position: absolute;
    border-bottom: solid 0.55em hsl(33deg 80% 75%);
    bottom: 0;
    left: 0;
    z-index: -1;
}

article .entry-content h2 {
    position: relative;
    overflow: hidden;
	line-height: 1.25;
}

article .entry-content ol {
  list-style: none;
}
article .entry-content ol li {
  position: relative;
  counter-increment: inst;
}
article .entry-content ol li:before {
  content: counter(inst);
  position: absolute;
  background: rgb(187 227 247);
  text-align: center;
  font-size:0.75em;
  line-height:1.8em;
  width:1.8em;
  left:-2.5em;
  top:0.25em;
  border-radius: 50%;
}

article .entry-content ul li::marker {
    color: #6e9ed5;
}

.height_100 {
	height: 100% !important;
}

div[data-sticky^="yes:"] {
	box-shadow: 0px 5px 7px rgb(0 0 0 / 9%);
}

nav#header-menu-1 .menu li.menu-item, .menu li.page_item {
    margin-left: 4px;
}

.card-wide a {
	text-decoration: none;
}

.card-wide p {
    margin-top: 0;
	line-height: 1.25;
}

.card-wide h3 {
    margin-bottom: 0 !important;
	margin-top: -8px;
}

.har_items_wrap {
	margin-right: -6px;
	margin-left: -6px;
}

.har_item_wrap {
	display: inline-block;
	vertical-align: text-top;
	background-color: #fff;
	border: solid 1px #e1e8ed;
	border-radius: 2px;
	margin: 0 6px 12px;
}

.har_footer {
	position: relative;
    text-align: right;
    padding: 0 16px 10px;
}

a.har_more_link.button {
    min-height: auto;
	padding: 4px 20px;
}

a.har_feature_image_link {
    aspect-ratio: 6;
    display: block;
    background: center no-repeat;
    background-size: cover;
}

span.har_date {
    font-size: 0.7em;
    position: absolute;
    left: 16px;
    bottom: 6px;
}

@media (min-width: 782px) {
	.har_item_wrap {
		width: calc(50% - 12px);
		overflow: hidden;
    	position: relative;
		aspect-ratio: 1.6;
	}

	.har_footer {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
	}

	.har_footer {
		background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 45%, rgba(255,255,255,1) 100%);
		padding: 32px 16px 10px;
	}

	a.har_feature_image_link {
    	aspect-ratio: 6;
	}
}

@media (min-width: 1000px) {
	.har_item_wrap {
		width: calc(25% - 12px);
		aspect-ratio: 0.9;
	}

	a.har_feature_image_link {
    	aspect-ratio: 3;
	}
}

h5.har_title {
    margin: 0 16px 10px !important;
    line-height: 1.25;
}

h5.har_title a {
	display: block;
	padding-top: 14px;
}

p.har_excerpt {
    margin: 10px 16px;
    line-height: 1.35;
	font-size: 0.95em;
}

p.har_view_all_link_wrap {
    text-align: center;
}

a.har_view_all_link {
    display: inline-block;
    border: solid 1px;
    padding: 3px 20px;
    border-radius: 3px;
    text-decoration: none;
}

.search-results a.ct-image-container {
    aspect-ratio: 3;
}



/* 5 columns gallery - hide more then 5 */
.columns-5.wp-block-gallery.has-nested-images figure.wp-block-image {
    display: none;
}

.columns-5.wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(1),
.columns-5.wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(2),
.columns-5.wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(3),
.columns-5.wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(4),
.columns-5.wp-block-gallery.has-nested-images figure.wp-block-image:nth-child(5) {
    display: flex;
}

a.more-then-5:before {
    content: '';
    position: absolute;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

a.more-then-5:after {
    content: '+' attr(data-more);
    position: absolute;
    color:  #fff;
    font-weight: 600;
    font-size: 2em;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



/* ### homepage */

.home .hero-section {
	display: none;
}

.home #main .ct-container-full {
    padding-top: 1.5em;
}

.home .homepage_blocksy_flexy_slider a.ct-image-container {
	pointer-events: none;	
}

h3.homepage_slider_companion_headline {
    line-height: 1.25;
    line-height: 1.16;
	letter-spacing: -0.04em;
}

@media (min-width: 1000px) {
	h3.homepage_slider_companion_headline {
		font-size: 3.3vw;
	}
}
@media (min-width: 1600px) {
	h3.homepage_slider_companion_headline {
		font-size: 53px;
	}
}

.homepage_slider_companion_column {
    border-left: solid 0.7em #eec592;
    padding-left: .75em;
	align-self: auto !important;
}



/* ### lightbox */

.nivo-lightbox-wrap {
    top: 1%;
    bottom: 1%;
    left: 1%;
    right: 1%;
}

.nivo-lightbox-theme-default.nivo-lightbox-overlay {
    background: rgba(0,0,0,0.85);
}

.nivo-lightbox-theme-default .nivo-lightbox-nav {
    top: 25%;
	height: 50%;
}

.nivo-lightbox-theme-default .nivo-lightbox-close {
    _background: url(close.png) no-repeat 5px 5px;
    width: 26px;
	height: 26px;
}

.nivo-lightbox-theme-default .nivo-lightbox-title-wrap {
    bottom: 1%;
}

.nivo-lightbox-theme-default .nivo-lightbox-title {
	color: #a6a6a6;
}



/* ### search page */

[data-prefix="search"] .entry-header .page-title span {
    font-weight: 400;
}



/* #### timeline */

.story-time p {
    display: inline-block !important;
    position: relative;
}

.story-time p:before {
    content: '';
    width: 72%;
    position: absolute;
    border-bottom: solid 0.55em #a7d8f1;
    bottom: -0.15em;
    left: 14%;
    z-index: -1;
}

.story-image {
    margin-bottom: .75em;
}


