/* IBICT News Widget — Splide Card Styles */

/* No News Message */
.ein-no-news {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 16px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
}

/* Card */
.ein-news-card {
	background: #fbfbfb;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	position: relative;
}

.ein-news-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-4px);
}

/* Image */
.ein-news-card__image {
	width: 100%;
	height: 280px;
	overflow: hidden;
	background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
	position: relative;
}

.ein-news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ein-news-card:hover .ein-news-card__image img {
	transform: scale(1.08);
}

/* Body */
.ein-news-card__body {
	padding: 30px 30px 20px 30px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Title — typography controlled by Elementor */
.ein-news-card__title {
	color: #18355d;
	margin: 0 0 15px 0;
}

/* Description — typography controlled by Elementor */
.ein-news-card__description {
	color: #18355d;
	margin: 0 0 20px 0;
	flex: 1;
}

/* CTA Bar — full-width coral bar at bottom */
.ein-news-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ef7c6a;
	color: #fbfbfb;
	padding: 10px 20px;
	text-decoration: none;
	transition: background 0.3s ease;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
}

.ein-news-card__cta:hover {
	background: #d96b59;
	color: #fff;
}

.ein-news-card__cta svg {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.ein-news-card__cta:hover svg {
	transform: translateX(4px);
}

/* Date Badge */
.ein-news-card__date {
	position: absolute;
	top: 17px;
	left: 22px;
	background: #ef7c6a;
	color: #fbfbfb;
	padding: 4px 12px;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

/* Responsive: tablets */
@media (max-width: 1200px) {
	.ein-news-card__body {
		padding: 25px;
	}
}

/* Responsive: mobile */
@media (max-width: 768px) {
	.ein-news-card__body {
		padding: 20px;
	}

	.ein-news-card__image {
		height: 200px;
	}

	.ein-news-card__title {
		margin-bottom: 12px;
	}

	.ein-news-card__description {
		margin-bottom: 15px;
	}

	.ein-news-card__date {
		top: 12px;
		left: 15px;
		font-size: 12px;
		padding: 3px 10px;
	}
}

@media (max-width: 480px) {
	.ein-news-card__body {
		padding: 15px;
	}

	.ein-news-card__image {
		height: 150px;
	}

	.ein-news-card__title {
		margin-bottom: 10px;
	}

	.ein-news-card__description {
		margin-bottom: 12px;
	}

	.ein-news-card__cta {
		padding: 8px 15px;
	}
}

/* Essential Splide layout fallbacks */
.ein-splide-slider-container {
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}
.splide {
    visibility: visible;
}
.splide__arrows {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.splide__arrow {
    background-color: #ef7c6a;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.splide__arrow:hover {
    background-color: #18355d;
    transform: scale(1.1);
}
.splide__arrow svg {
    width: 20px;
    height: 20px;
    fill: #fbfbfb;
}
.splide__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    list-style: none;
    padding: 0;
}
.splide__pagination__page {
    width: 10px;
    height: 10px;
    background-color: #cbcbcb;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease;
    border: none;
    padding: 0;
}
.splide__pagination__page.is-active {
    background-color: #ef7c6a;
    width: 30px;
    border-radius: 5px;
}

/* Grid Layout Fallbacks (in case Tailwind isn't active or fails to compile dynamic classes) */
.ecc-grid-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) {
    .ecc-grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .ecc-grid-container.lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .ecc-grid-container.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ecc-grid-container.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ecc-grid-container.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ecc-grid-container.lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .ecc-grid-container.lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Grid item flex fallbacks */
.ecc-grid-container .ein-news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ecc-grid-container .ein-news-card__body {
    flex: 1 1 auto;
}
.ecc-grid-container .ein-news-card__cta {
    margin-top: auto;
}

/* Grid Toolbar Styles */
.ecc-grid-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .ecc-grid-toolbar {
        flex-direction: row;
        align-items: center;
    }
}
.ecc-search-wrapper, .ecc-filter-wrapper {
    position: relative;
    flex: 1;
}
.ecc-search-input, .ecc-area-filter {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #ffffff;
    font-size: 1rem;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.ecc-search-input:focus, .ecc-area-filter:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.ecc-search-input {
    padding-left: 2.5rem;
}
.ecc-search-wrapper svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}

/* GLightbox Responsive Iframe Overrides */
.gslide-media.gslide-iframe {
    width: min(1280px, 92%) !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

.gslide-media.gslide-iframe iframe {
    width: 100% !important;
    height: 100% !important;
}
