/*
 Theme Name:   chipsc2-superstar
 Theme URI:    https://chipsc2.lt/
 Description:  chipsc2-superstar – Astra child theme for ChipSC2. Customize and extend Astra with your own styles and functionality.
 Author:       ChipSC2
 Author URI:   https://chipsc2.lt/
 Template:     astra
 Version:      1.0.0
 Requires at least: 5.3
 Tested up to: 6.9
 Requires PHP: 5.3
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  chipsc2-superstar
*/

/* ==========================================================================
   Footer - 4-column mockup layout (navy + gold brand)
   ========================================================================== */

#colophon.chipsc2-footer,
#colophon.chipsc2-footer * {
	font-family: inherit;
}

#colophon.chipsc2-footer {
	background-color: #022541 !important;
	color: #b7c8d6;
	padding: 70px 0 36px;
	border-radius: 0;
	font-size: 14px;
}

#colophon.chipsc2-footer a {
	color: #b7c8d6;
	text-decoration: none;
	transition: color 0.18s ease;
}

#colophon.chipsc2-footer a:hover,
#colophon.chipsc2-footer a:focus {
	color: #d9a23c;
}

.chipsc2-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 28px;
}

/* 4-column grid */
.chipsc2-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 44px;
	margin-bottom: 48px;
}

@media (max-width: 900px) {
	.chipsc2-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 540px) {
	.chipsc2-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.chipsc2-footer-col-title {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	line-height: 1.3;
}

.chipsc2-footer-desc {
	margin: 0;
	max-width: 300px;
	font-size: 14px;
	line-height: 1.6;
	color: #b7c8d6;
}

.chipsc2-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.chipsc2-footer-menu li {
	margin: 0 0 10px;
	padding: 0;
}

.chipsc2-footer-menu li:last-child {
	margin-bottom: 0;
}

.chipsc2-footer-menu a {
	display: inline-block;
}

/* EU funding row */
.chipsc2-footer-eurow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px 28px;
	padding-top: 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chipsc2-footer-funding {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.chipsc2-footer-fund-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 8px 12px;
	border-radius: 0;
	height: 52px;
	min-width: 100px;
	max-width: 180px;
	flex-shrink: 0;
}

.chipsc2-footer-fund-logo img {
	max-width: 100%;
	max-height: 36px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.chipsc2-footer-legal {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin-left: auto;
	font-size: 12.5px;
	color: #7e96a9;
}

.chipsc2-footer-copyright {
	color: #7e96a9;
}

.chipsc2-footer-legal a {
	color: #7e96a9;
}

.chipsc2-footer-legal a:hover,
.chipsc2-footer-legal a:focus {
	color: #d9a23c;
}

.chipsc2-footer-legal-sep {
	color: #5a6b7a;
	user-select: none;
}

@media (max-width: 768px) {
	.chipsc2-footer-legal {
		margin-left: 0;
		width: 100%;
	}

	#colophon.chipsc2-footer {
		padding: 56px 0 28px;
	}
}

/* Scroll to top button */
#ast-scroll-top {
	background-color: #02355d !important;
	color: #ffffff !important;
	border-color: #02355d !important;
}

#ast-scroll-top:hover,
#ast-scroll-top:focus {
	background-color: #0a4a7a !important;
	border-color: #0a4a7a !important;
}

/* ==========================================================================
   Latest News (homepage EAEL post grid) – equal cards, brand styling
   ========================================================================== */

.elementor-post__title a,
.elementor-widget-posts .elementor-post__title a,
.wp-block-latest-posts > li > a,
.eael-post-grid .eael-entry-title a,
.uagb-post-grid .uagb-post__title a {
	text-decoration: none !important;
}

.elementor-post__title a:hover,
.elementor-widget-posts .elementor-post__title a:hover,
.wp-block-latest-posts > li > a:hover,
.eael-post-grid .eael-entry-title a:hover,
.uagb-post-grid .uagb-post__title a:hover {
	text-decoration: none !important;
}

/* Equal-height grid – override EAEL float layout */
.eael-post-grid-style-two.eael-post-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 0 !important;
}

.eael-post-grid-style-two .eael-grid-post {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	height: 100%;
	display: flex;
}

.eael-post-grid-style-two .eael-grid-post-holder {
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid #e3e9ee !important;
	border-radius: 0 !important;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.eael-post-grid-style-two .eael-grid-post:hover .eael-grid-post-holder {
	border-color: #d9a23c !important;
}

.eael-post-grid-style-two .eael-grid-post-holder-inner {
	flex: 1;
	height: 100%;
}

.eael-post-grid-style-two .eael-entry-media {
	flex-shrink: 0;
}

.eael-post-grid-style-two .eael-entry-thumbnail {
	height: 180px;
	overflow: hidden;
}

.eael-post-grid-style-two .eael-entry-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eael-post-grid-style-two .eael-entry-overlay {
	display: none !important;
}

.eael-post-grid-style-two .eael-entry-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 22px 24px 24px;
}

.eael-post-grid-style-two .eael-entry-header {
	margin: 0;
}

.eael-post-grid-style-two .eael-entry-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.eael-post-grid-style-two .eael-entry-title a {
	color: #02355d !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eael-post-grid-style-two .eael-entry-title a:hover {
	color: #0a4a7a !important;
}

.eael-post-grid-style-two .eael-entry-meta .eael-meta-posted-on,
.eael-post-grid-style-two .eael-entry-meta .eael-meta-posted-on i {
	color: #5a6b7a !important;
	font-size: 12.5px;
}

.eael-post-grid-style-two .eael-entry-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.eael-post-grid-style-two .eael-grid-post-excerpt {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.eael-post-grid-style-two .eael-grid-post-excerpt p {
	color: #5a6b7a;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eael-post-grid-style-two .eael-post-elements-readmore-btn {
	margin-top: auto;
	align-self: flex-start;
	color: #02355d !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	border-radius: 0;
}

.eael-post-grid-style-two .eael-post-elements-readmore-btn:hover {
	color: #d9a23c !important;
	text-decoration: none !important;
}

@media (max-width: 960px) {
	.eael-post-grid-style-two.eael-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.eael-post-grid-style-two.eael-post-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Partners – Institutional + Industrial (static logo rows)
   ========================================================================== */

.chipsc2-partners-wrap {
	padding: 0 0 1.5rem;
}

.chipsc2-partners-block + .chipsc2-partners-block {
	margin-top: 1.75rem;
	padding-top: 1.75rem;
	border-top: 1px solid #e3e9ee;
}

.chipsc2-partners-wrap .chipsc2-partners-heading {
	margin: 0 0 0.875rem;
	font-size: clamp(15px, 1.6vw, 18px) !important;
	font-weight: 600 !important;
	color: #02355d !important;
	line-height: 1.3;
	letter-spacing: 0.01em;
}

.chipsc2-partners-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 2rem;
}

.chipsc2-partners-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.chipsc2-partners-logo a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.chipsc2-partners-grid--institutional .chipsc2-partners-logo img {
	max-height: 80px;
	max-width: 240px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.chipsc2-partners-grid--industrial .chipsc2-partners-logo img {
	max-height: 60px;
	max-width: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0.9;
}

.chipsc2-partners-logo a:hover img,
.chipsc2-partners-logo a:focus img {
	opacity: 1;
}

@media (max-width: 560px) {
	.chipsc2-partners-grid {
		gap: 1rem 1.25rem;
	}

	.chipsc2-partners-grid--institutional .chipsc2-partners-logo img {
		max-height: 64px;
		max-width: 200px;
	}

	.chipsc2-partners-grid--industrial .chipsc2-partners-logo img {
		max-height: 50px;
		max-width: 150px;
	}
}

/* Hide legacy Elementor heading directly above the partners shortcode (titles are in shortcode). */
.elementor-widget-heading:has(+ .elementor-widget-shortcode .chipsc2-partners-wrap) {
	display: none;
}

/* ==========================================================================
   Training page – section titles (bigger, cleaner)
   ========================================================================== */

body.page-slug-training .elementor-widget-heading .elementor-heading-title {
	font-size: clamp(2rem, 5vw, 3rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.025em;
	line-height: 1.15 !important;
	color: #0f172a !important;
	animation: none !important;
	opacity: 1 !important;
	transform: none !important;
}

/* ==========================================================================
   Complianz cookie banner – sharp corners (no radius)
   ========================================================================== */

.cmplz-cookiebanner,
.cmplz-cookiebanner .cmplz-header,
.cmplz-cookiebanner .cmplz-body,
.cmplz-cookiebanner .cmplz-footer,
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
.cmplz-cookiebanner .cmplz-category,
.cmplz-cookiebanner .cmplz-close {
	border-radius: 0 !important;
}

/* ==========================================================================
   Header social icons – smaller, no boxes (see also functions.php override)
   ========================================================================== */

.ast-header-social-1-wrap .ast-builder-social-element,
.ast-header-social-1-wrap .social-show-label-true .ast-builder-social-element {
	width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	margin: 0 0 0 8px !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #02355d !important;
}

.ast-header-social-1-wrap .ast-builder-social-element svg {
	width: 18px !important;
	height: 18px !important;
	fill: #02355d !important;
}

.ast-header-social-1-wrap .ast-builder-social-element:hover,
.ast-header-social-1-wrap .ast-builder-social-element:focus {
	background: transparent !important;
	color: #d9a23c !important;
}

.ast-header-social-1-wrap .ast-builder-social-element:hover svg,
.ast-header-social-1-wrap .ast-builder-social-element:focus svg {
	fill: #d9a23c !important;
}

/* ==========================================================================
   Above header bar – breathing room at top
   ========================================================================== */

.ast-above-header-bar,
.site-above-header-wrap[data-section="section-above-header-builder"] {
	padding-top: 10px !important;
	padding-bottom: 8px !important;
}

.ast-above-header-bar .site-above-header-wrap {
	min-height: 0 !important;
}
