/*
Theme Name: ITC NTP Theme
Theme URI: https://ntp.rs
Author: ITC
Author URI: https://itcgroup.rs
Description: Custom theme for Naučno-tehnološki park Niš
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itc-ntp
*/

:root {
	--ntp-navy: #121f49;
	--ntp-green: #50b848;
	--ntp-blue: #17aeec;
	--ntp-background: #f7f7f5;
	--ntp-foreground: #0f1535;
	--ntp-primary-foreground: #f7f7f5;
	--ntp-secondary: #edede9;
	--ntp-muted-foreground: #6b7280;
	--ntp-border: #e5e5e0;
	--ntp-black: #000000;
	--ntp-white: #ffffff;
}

.section-padding-no_padding {
	padding: 0 !important;
}

.section-padding-small {
	padding: 50px 0 !important;
}

.section-padding-medium {
	padding: 125px 0 !important;
}

.section-padding-medium.pb-0 {
	padding-bottom: 0 !important;
}

.section-padding-medium.pt-0 {
	padding-top: 0 !important;
}

.section-padding-medium.pt-5 {
	padding-top: 50px !important;
}

.section-padding-medium.pt-3 {
	padding-top: 25px !important;
}

.section-padding-medium.pt-7 {
	padding-top: 70px !important;
}

.section-padding-large {
	padding: 120px 0 !important;
}

.section-black {
	background-color: var(--ntp-foreground) !important;
	color: var(--ntp-white) !important;
}

.section-white {
	background-color: var(--ntp-white) !important;
}

.section-gray {
	background-color: var(--ntp-secondary) !important;
}

.section-primary {
	background-color: var(--ntp-navy) !important;
	color: var(--ntp-white) !important;
}

.section-secondary {
	background-color: var(--ntp-green) !important;
	color: var(--ntp-white) !important;
}

.section-secondary .main-title {
	color: var(--ntp-white);
}

.section-secondary a {
	color: var(--ntp-white) !important;
	border-color: var(--ntp-white);
}

.section-secondary a:hover {
	color: var(--ntp-navy);
}

.section-secondary a:hover::after {
	background-color: var(--ntp-navy) !important;
}

section .text-muted-foreground a {
	color: var(--ntp-green) !important;
}

section .text-muted-foreground a:hover {
	text-decoration: underline;
}

.section-font-white {
	color: var(--ntp-white) !important;
}

#default-page h2 {
	font-size: 48px; 
	line-height: 130%;
    margin: 24px 0 12px;
	font-weight: 600;
	color: rgb(15, 21, 53);
}
#default-page h3 {
	font-size: 28px; 
	line-height: 130%;
	font-weight: 600;
    margin: 24px 0 12px;
	color: rgb(15, 21, 53);
}


#default-page h4 {
	font-size: 24px; 
	line-height: 130%;
	margin: 24px 0 12px;
	color: rgb(15, 21, 53);
}


.program-dodatno p:first-child {
	color: #6b7094;
	font-size: 1.25rem;
	;
	line-height: var(1.625, calc(1.75 / 1.25));
	margin-bottom: 40px;
}

.program-dodatno p:nth-child(2) {
	color: #6b7094;
	font-size: .875rem;
	line-height: var(1.625, calc(1.75 / 1.25));
	margin-bottom: 20px;
	letter-spacing: .1em;
	font-weight: 500;
	text-transform: uppercase;
}
 

article ul {
	margin: 12px 0;
}

section ul:not(nav ul) {
	margin-bottom: 16px;
}

.program-dodatno ul li,
article ul li,
section ul:not(nav ul) li {
	position: relative;
	margin: 0;
	padding-left: 1.4rem;
	font-size: 1.05rem;
	line-height: 1.65;
	list-style: none;
}

.program-dodatno ul li::before,
article ul li::before,
section ul:not(nav ul) li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 9999px;
	background: rgb(80 184 72 / var(--tw-text-opacity, 1));
	transform: translateY(-50%);
}

.program-dodatno ul li ul,
article ul li ul,
section ul:not(nav ul) li ul {
	margin: 1.5rem 0 0;
	padding: 0;
}

.space-y-3 li::before,
nav ul li::before {
	display: none;
}

.space-y-3 li {
	padding-left: 0;
}

.program-dodatno ul li {
	margin: 6px 0;
}



.section-font-white h1,
.section-font-white h2,
.section-font-white h3,
.section-font-white h4,
.section-font-white h5,
.section-font-white h6 {
	color: var(--ntp-white) !important;
}

.section-font-black {
	color: var(--ntp-black) !important;
}

.section-font-primary {
	color: var(--ntp-navy) !important;
}

.section-font-secondary {
	color: var(--ntp-green) !important;
}

.block_text_image.bg-secondary-section .ntp-text-image-panel {
	background-color: var(--ntp-secondary);
}



#kontakt a.inline-flex {
	justify-content: center;
	padding: 16px 32px;
	font-size: 16px;
}

/* .section-font-size-normal p {
	font-size: 18px !important;
}

.section-font-size-large p {
	font-size: 22px !important;
} */

@media (max-width: 1440px) {
	.section-padding-small {
		padding: 30px 0 !important;
	}

	.section-padding-medium {
		padding: 75px 0 !important;
	}

	.section-padding-large {
		padding: 90px 0 !important;
	}

	/* .section-font-size-normal p {
		font-size: 17px !important;
	} */

	/* .section-font-size-large p {
		font-size: 20px !important;
	} */
}

@media (max-width: 1280px) {
	.section-padding-small {
		padding: 30px 0 !important;
	}

	.section-padding-medium {
		padding: 70px 0 !important;
	}

	.section-padding-large {
		padding: 80px 0 !important;
	}

	/* .section-font-size-normal p {
		font-size: 15px !important;
	}

	.section-font-size-large p {
		font-size: 19px !important;
	} */
}

@media (max-width: 767px) {

	#kontakt a.inline-flex {
		padding: 14px 32px;
		font-size: 14px;
	}

	#header-image h1 br {
		display: none;
	}

	.section-padding-small {
		padding: 40px 0 !important;
	}

	.section-padding-medium {
		padding: 50px 0 !important;
	}

	.section-padding-large {
		padding: 60px 0 !important;
	}

	.section-font-size-normal p {
		/* font-size: 16px !important; */
	}

	.section-font-size-large p {
		font-size: 17px !important;
	}
}

body.ntp-lightbox-open {
	overflow: hidden;
}

#header {
	z-index: 20000;
}

.gallery {
	--ntp-gallery-gap: clamp(0.9rem, 2vw, 1.4rem);
	display: grid;
	gap: var(--ntp-gallery-gap);
	margin: 2rem 0;
}

.gallery.gallery-columns-1 {
	grid-template-columns: minmax(0, 1fr);
}

.gallery.gallery-columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery.gallery-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery.gallery-columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery .gallery-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

.gallery .gallery-icon,
.gallery .gallery-icon a {
	display: block;
	height: 100%;
}

.gallery .gallery-icon a {
	position: relative;
	overflow: hidden;
	background: #dfe4f0;
	box-shadow: 0 20px 45px rgba(18, 31, 73, 0.08);
	cursor: zoom-in;
}

.gallery .gallery-icon a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 31, 73, 0) 45%, rgba(18, 31, 73, 0.18) 100%);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.gallery .gallery-icon img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery .gallery-icon a:hover::after,
.gallery .gallery-icon a:focus-visible::after {
	opacity: 1;
}

.gallery .gallery-icon a:hover img,
.gallery .gallery-icon a:focus-visible img {
	transform: scale(1.04);
	filter: saturate(1.05);
}

.gallery .gallery-caption {
	margin-top: 0.85rem;
	color: #6b7280;
	font-size: 0.95rem;
	line-height: 1.55;
	text-align: left;
}

#office-space-page .office-space-highlights-grid {
	display: grid;
	grid-template-columns: repeat(var(--office-highlights-mobile-columns, 2), minmax(0, 1fr));
}

@media (min-width: 1024px) {
	#office-space-page .office-space-highlights-grid {
		grid-template-columns: repeat(var(--office-highlights-tablet-columns, 3), minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	#office-space-page .office-space-highlights-grid {
		grid-template-columns: repeat(var(--office-highlights-desktop-columns, 6), minmax(0, 1fr));
	}
}

.ntp1-level-content {
	max-width: none;
	color: #121f49;
	font-size: 15px;
	line-height: 1.75;
}

.ntp1-level-content p {
	margin: 0 0 1.25rem;
	color: #98a1c2;
	font-size: 1rem;
	line-height: 1.7;
}

.ntp1-level-content p:last-child {
	margin-bottom: 0;
}

.ntp1-level-content ul,
.ntp1-level-content ol {
	margin: 1.5rem 0 0;
	padding: 0;
}

.ntp1-level-content li {
	position: relative;
	margin: 0;
	padding-left: 1.4rem;
	color: #121f49;
	font-size: 1.05rem;
	line-height: 1.65;
	list-style: none;
}

.ntp1-level-content li:last-child {
	margin-bottom: 0;
}

.ntp1-level-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 9999px;
	background: #17aeec;
	transform: translateY(-50%);
}

.ntp-masonry-gallery {
	column-gap: 1.25rem;
}

.ntp-masonry-gallery__item {
	break-inside: avoid;
}

.ntp-gallery-marquee {
	width: max-content;
	animation: ntp-gallery-marquee-scroll 50s linear infinite;
	will-change: transform;
}

.ntp-gallery-marquee:hover {
	animation-play-state: paused;
}

@keyframes ntp-gallery-marquee-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

.ntp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.ntp-lightbox[hidden] {
	display: none;
}

.ntp-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 21, 53, 0.88);
	backdrop-filter: blur(6px);
}

.ntp-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	width: min(100%, 1280px);
}

.ntp-lightbox__figure {
	margin: 0;
}

.ntp-lightbox__image {
	display: block;
	width: 100%;
	max-height: 82vh;
	object-fit: contain;
	background: #0b1028;
}

.ntp-lightbox__caption {
	margin-top: 1rem;
	color: rgba(247, 247, 245, 0.72);
	font-size: 0.95rem;
	line-height: 1.6;
	text-align: center;
}

.ntp-lightbox__close,
.ntp-lightbox__nav {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(247, 247, 245, 0.2);
	background: rgba(247, 247, 245, 0.04);
	color: #f7f7f5;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ntp-lightbox__close:hover,
.ntp-lightbox__nav:hover {
	border-color: rgba(247, 247, 245, 0.45);
	background: rgba(247, 247, 245, 0.12);
}

.ntp-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

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

	.ntp-lightbox {
		padding: 1rem;
	}

	.ntp-lightbox__dialog {
		grid-template-columns: 1fr;
	}

	.ntp-lightbox__figure {
		order: 1;
	}

	.ntp-lightbox__nav {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.ntp-lightbox__nav--prev {
		left: 0.75rem;
	}

	.ntp-lightbox__nav--next {
		right: 0.75rem;
	}
}

@media (max-width: 767px) {
	.gallery.gallery-columns-2,
	.gallery.gallery-columns-3,
	.gallery.gallery-columns-4 {
		grid-template-columns: minmax(0, 1fr);
	}

	#za-koga {
		height: auto !important;
		padding: 2.5rem 0;
	}

	#za-koga .ta-sticky-wrap {
		position: relative !important;
		top: auto !important;
		height: auto !important;
		overflow: visible !important;
		padding-top: 50px;
		padding-bottom: 50px;
	}

	#za-koga .ta-section-header {
		position: relative !important;
		inset: auto !important;
		padding-top: 0 !important;
	}

	#za-koga .ta-orbit-top,
	#za-koga .ta-orbit-bottom,
	#za-koga .ta-background-title {
		display: none !important;
	}

	#za-koga .ta-cards-viewport {
		position: relative !important;
		inset: auto !important;
		display: block !important;
		overflow: visible !important;
		margin-top: 2rem;
	}

	#za-koga .ta-cards-inner {
		height: auto !important;
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	#za-koga .ta-card {
		position: relative !important;
		inset: auto !important;
		margin-bottom: 1rem;
		opacity: 1 !important;
		transform: none !important;
	}

	#za-koga .ta-card:last-child {
		margin-bottom: 0;
	}

	#za-koga .ta-card-shell {
		height: auto !important;
	}

	#za-koga .ta-card-footer {
		justify-content: center !important;
	}

	#za-koga .ta-card-footer-label {
		display: none !important;
	}

	#za-koga .ta-card-footer-dots {
		justify-content: center;
		width: 100%;
	}

	#default-page h2 {
	font-size: 30px;  
}
#default-page h3 {
	font-size: 21px;  
}


#default-page h4 {
	font-size: 18px;  
}



	.ntp-masonry-gallery {
		column-count: 1 !important;
	}

	.ntp-gallery-marquee {
		animation-duration: 38s;
	}

	.ntp-lightbox__image {
		max-height: 70vh;
	}

	.ntp-lightbox__close,
	.ntp-lightbox__nav {
		width: 2.75rem;
		height: 2.75rem;
	}
}


/* NAV */
.header__nav {
	display: none;
}

@media (min-width: 1190px) {
	.header__nav {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

/* NAV ITEM */
.header__nav-item {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.05em;
	transition: color 0.2s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: var(--ntp-muted-foreground);
}

/* HEADER STATES */
.header--transparent-dark .header__nav-item {
	color: rgba(255, 255, 255, 0.72);
}

.header--transparent-dark .header__nav-item:hover {
	color: var(--ntp-primary-foreground);
}

.header--transparent-light .header__nav-item,
.header--transparent:not(.header--transparent-dark) .header__nav-item {
	color: var(--ntp-muted-foreground);
}

.header--transparent-light .header__nav-item:hover,
.header--transparent:not(.header--transparent-dark) .header__nav-item:hover {
	color: var(--ntp-foreground);
}

.header--solid .header__nav-item {
	color: var(--ntp-muted-foreground);
}

.header--solid .header__nav-item:hover {
	color: var(--ntp-foreground);
}

.header__cta {
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

/* DROPDOWN WRAPPER */
.header__nav-dropdown {
	position: relative;
}

/* DROPDOWN PANEL */
.header__dropdown-panel {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	padding-top: 10px;

	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s ease;
	z-index: 50;
}

/* INNER BOX */
.header__dropdown-inner {
	background: white;
	border: 1px solid var(--ntp-border);
	padding: 12px 0;
	display: flex;
	flex-direction: column;
}

/* DROPDOWN LINK */
.header__dropdown-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	font-size: 14px;
	color: var(--ntp-muted-foreground);
	transition: all 0.2s;
}

.header__dropdown-link:hover {
	background: var(--ntp-secondary);
	color: var(--ntp-foreground);
}

/* SHOW DROPDOWN (hover) */
.header__nav-dropdown:hover .header__dropdown-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@keyframes logo-scroll-left {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-50% - 0.75rem));
	}
}

@keyframes logo-scroll-right {
	from {
		transform: translateX(calc(-50% - 0.75rem));
	}

	to {
		transform: translateX(0);
	}
}
