/* ================================================
   Elementor Widgets - CSS Styling
   ================================================ */

/* ================================================
   IMAGE GALLERY WIDGET
   ================================================ */
.gallery-container {
	width: 100%;
	margin: 0 auto;
}

.gallery-container.gallery-grid {
	display: grid;
}

.gallery-container.gallery-masonry {
	display: grid;
	grid-auto-rows: auto;
}

.gallery-image-item {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 5px;
}

.gallery-image-item img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-image-item:hover img {
	transform: scale(1.05);
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-image-item:hover .gallery-overlay {
	opacity: 1;
}

.overlay-icon {
	font-size: 40px;
	color: #ffffff;
}

.overlay-title {
	font-size: 18px;
	color: #ffffff;
	text-align: center;
	padding: 20px;
}

/* ================================================
   BLOG CAROUSEL WIDGET
   ================================================ */
.blog-carousel {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.carousel-inner {
	display: flex;
	overflow: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}

.blog-card {
	flex: 0 0 100%;
	min-width: 100%;
	scroll-snap-align: start;
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
	margin-right: 20px;
}

.blog-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-thumbnail {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
}

.blog-card-content {
	padding: 20px;
}

.blog-date {
	display: block;
	font-size: 12px;
	color: #999999;
	margin-bottom: 10px;
}

.blog-card-title {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 600;
}

.blog-card-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.blog-card-title a:hover {
	color: #0066cc;
}

.blog-excerpt {
	margin: 0 0 15px 0;
	font-size: 14px;
	color: #666666;
	line-height: 1.6;
}

.blog-read-more {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: opacity 0.3s ease;
}

.blog-read-more:hover {
	opacity: 0.7;
}

.carousel-prev,
.carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	transition: background 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
	background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
	left: 20px;
}

.carousel-next {
	right: 20px;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
	padding-bottom: 20px;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #cccccc;
	cursor: pointer;
	transition: background 0.3s ease;
}

.dot.active {
	background: #0066cc;
}

/* ================================================
   SLIDER WIDGET
   ================================================ */
.slider-wrapper {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
	border-radius: 8px;
}

.slider-container {
	position: relative;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	animation: fadeOut 0.8s ease;
}

.slide.active {
	animation: fadeIn 0.8s ease;
	z-index: 1;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
}

.slide-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	color: #ffffff;
	width: 80%;
	max-width: 600px;
	z-index: 2;
}

.slide-title {
	margin: 0 0 20px 0;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.2;
}

.slide-subtitle {
	margin: 0 0 30px 0;
	font-size: 20px;
	line-height: 1.5;
}

.slide-button {
	display: inline-block;
	padding: 12px 30px;
	background-color: #0066cc;
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.slide-button:hover {
	background-color: #004da3;
}

.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.3);
	color: #ffffff;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 4px;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	transition: background 0.3s ease;
}

.slider-arrow:hover {
	background: rgba(255, 255, 255, 0.5);
}

.slider-prev {
	left: 30px;
}

.slider-next {
	right: 30px;
}

.slider-dots {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.slider-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.3s ease;
}

.slider-dots .dot.active {
	background: #ffffff;
}

/* ================================================
   PROGRESS BAR WIDGET
   ================================================ */
.progress-bars-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--skill-spacing, 30px);
}

.skill-item {
	width: 100%;
}

.skill-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.skill-name {
	font-weight: 600;
	font-size: 14px;
}

.skill-percentage-text {
	font-size: 12px;
	font-weight: 600;
}

.progress-background {
	width: 100%;
	height: var(--bar-height, 10px);
	background-color: #e8e8e8;
	border-radius: 5px;
	overflow: hidden;
	position: relative;
}

.progress-fill {
	height: 100%;
	background-color: #0066cc;
	width: 0;
	border-radius: 5px;
	transition: width 0.6s ease;
}

.progress-fill.gradient {
	background: linear-gradient(90deg, #0066cc, #00d4ff);
}

/* ================================================
   COUNTDOWN WIDGET
   ================================================ */
.countdown-wrapper {
	display: flex;
	gap: var(--icon-spacing, 10px);
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.countdown-wrapper.countdown-inline {
	flex-direction: row;
}

.countdown-wrapper.countdown-boxed {
	flex-direction: row;
}

.countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-width: 60px;
}

.countdown-item.boxed {
	background-color: #f5f5f5;
	padding: 15px 20px;
	border-radius: 4px;
	border: 1px solid #e8e8e8;
}

.countdown-number {
	font-size: var(--number-size, 48px);
	font-weight: 700;
	color: #0066cc;
	line-height: 1;
	margin-bottom: 5px;
}

.countdown-label {
	font-size: var(--label-size, 14px);
	color: #666666;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

.countdown-separator {
	font-size: 32px;
	color: #cccccc;
	margin: 0 5px;
	align-self: flex-end;
	padding-bottom: 8px;
}

.countdown-expired {
	font-size: 18px;
	font-weight: 600;
	color: #333333;
	text-align: center;
	width: 100%;
}

/* ================================================
   SOCIAL ICONS WIDGET
   ================================================ */
.social-icons-wrapper {
	display: flex;
	gap: var(--icon-spacing, 10px);
	flex-wrap: wrap;
}

.social-icons-wrapper.social-layout-horizontal {
	flex-direction: row;
	justify-content: flex-start;
}

.social-icons-wrapper.social-layout-vertical {
	flex-direction: column;
	align-items: flex-start;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--container-size, 50px);
	height: var(--container-size, 50px);
	font-size: var(--icon-size, 20px);
	color: #ffffff;
	background-color: #0066cc;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.social-icon.social-shape-circle {
	border-radius: 50%;
}

.social-icon.social-shape-square {
	border-radius: 0;
}

.social-icon.social-shape-rounded {
	border-radius: 8px;
}

.social-icon.social-hover-bounce:hover {
	animation: bounce 0.6s ease;
}

@keyframes bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.social-icon.social-hover-scale:hover {
	transform: scale(1.15);
}

.social-icon.social-hover-color-change:hover {
	background-color: #004da3;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
	.slide-title {
		font-size: 32px;
	}

	.slide-subtitle {
		font-size: 16px;
	}

	.blog-card {
		margin-right: 15px;
	}

	.carousel-prev,
	.carousel-next {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.carousel-prev {
		left: 10px;
	}

	.carousel-next {
		right: 10px;
	}

	.slider-prev,
	.slider-next {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.slider-prev {
		left: 15px;
	}

	.slider-next {
		right: 15px;
	}

	.countdown-number {
		font-size: 32px;
	}

	.countdown-separator {
		font-size: 24px;
	}

	.social-icons-wrapper.social-layout-horizontal {
		justify-content: center;
	}

	.social-icons-wrapper.social-layout-vertical {
		align-items: center;
	}
}

@media (max-width: 480px) {
	.slide-title {
		font-size: 24px;
	}

	.slide-subtitle {
		font-size: 14px;
	}

	.slide-content {
		width: 90%;
	}

	.countdown-number {
		font-size: 24px;
	}

	.countdown-label {
		font-size: 12px;
	}

	.social-icon {
		width: calc(var(--container-size, 50px) * 0.8);
		height: calc(var(--container-size, 50px) * 0.8);
		font-size: calc(var(--icon-size, 20px) * 0.8);
	}
}
