/**
 * Shortcode component styles.
 *
 * Extracted from the inline <style> blocks that each shortcode used to print
 * (once per instance). Enqueued by pf_enqueue_components() when any component
 * shortcode renders.
 */

/* =========================================================================
 * Shared
 * ====================================================================== */

.pf-component-empty {
	padding: 24px;
	text-align: center;
	color: #666;
}

/* =========================================================================
 * [post_slider]
 * ====================================================================== */

.pf-post-slider {
	position: relative;
	overflow: hidden;
}

.pf-post-slider__viewport {
	overflow: hidden;
}

.pf-post-slider__track {
	display: flex;
	will-change: transform;
	transition: transform 0.4s ease;
}

.pf-post-slider__item {
	box-sizing: border-box;
	flex: 0 0 100%;
	padding: 0 10px;
}

@media (min-width: 768px) {
	.pf-post-slider__item { flex-basis: 50%; }
}

@media (min-width: 1024px) {
	.pf-post-slider__item { flex-basis: 33.3333%; }
}

.pf-post-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.pf-post-card__media img {
	width: 100%;
	height: auto;
	display: block;
}

.pf-post-card__title {
	margin: 12px 0 8px;
	font-family: Teko, sans-serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.1;
}

.pf-post-card__title a {
	color: #000;
	text-decoration: none;
}

.pf-post-card__excerpt {
	margin: 0 0 12px;
	font-size: 17px;
	line-height: 1.5;
	color: #222;
}

.pf-post-card__more {
	margin-top: auto;
	font-weight: 700;
	color: #000;
	text-decoration: none;
}

.pf-post-card__more:hover {
	color: #ffcd04;
}

/* =========================================================================
 * [announcement_slider]
 * ====================================================================== */

.pf-announcements {
	position: relative;
	overflow: hidden;
	padding: 20px 0;
}

.pf-announcements__track {
	display: flex;
	gap: 20px;
	transition: transform 0.5s ease-in-out;
	will-change: transform;
}

.pf-announcement {
	flex: 0 0 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.pf-announcement { flex-basis: calc(50% - 10px); }
}

@media (min-width: 1024px) {
	.pf-announcement { flex-basis: calc(33.3333% - 14px); }
}

.pf-announcement__cover img {
	width: 100%;
	height: auto;
	display: block;
}

.pf-announcement__body {
	padding: 20px;
}

.pf-announcement__meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	font-family: Arial, sans-serif;
	font-size: 20px;
	line-height: 26px;
	color: #000;
}

.pf-announcement__meta strong { font-weight: 700; }

.pf-announcement__logo img {
	max-width: 64px;
	height: auto;
}

.pf-announcement__title {
	margin: 24px 0 10px;
	font-family: Teko, sans-serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
	color: #000;
}

.pf-announcement__excerpt {
	font-family: Arial, sans-serif;
	font-size: 20px;
	line-height: 26px;
	color: #000;
}

.pf-announcement__link {
	display: inline-block;
	margin-top: 24px;
	font-family: Arial, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 26px;
	color: #000;
	text-decoration: none;
}

.pf-announcement__link:hover { color: #ffcd04; }

.pf-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #e0e0e0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: #000;
	font-size: 20px;
	cursor: pointer;
	z-index: 2;
}

.pf-slider-nav:hover {
	background: #ffcd04;
	border-color: #ffcd04;
}

.pf-slider-nav[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

.pf-slider-nav--prev { left: 4px; }
.pf-slider-nav--next { right: 4px; }

@media (max-width: 480px) {
	.pf-slider-nav { display: none; }
}

.pf-slider-dots {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
	padding: 0;
	list-style: none;
}

.pf-slider-dots button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #e0e0e0;
	cursor: pointer;
}

.pf-slider-dots button[aria-current="true"] {
	background: #ffcd04;
	transform: scale(1.25);
}

/* =========================================================================
 * [our_history_timeline]
 * ====================================================================== */

.history-timeline {
	position: relative;
	width: 100%;
	padding: 20px;
	box-sizing: border-box;
}

.timeline-events {
	display: flex;
	gap: 25px;
	overflow: hidden;
	padding-bottom: 60px;
	scroll-behavior: smooth;
}

.timeline-event {
	flex: 0 0 280px;
	padding: 10px;
	background: #fff;
	border-top: 4px solid #ffca28;
	border-radius: 10px;
}

.timeline-event .thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
}

.timeline-event h3 {
	margin: 5px 0 10px;
	font-family: Teko, sans-serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1 !important;
	color: #000;
}

.timeline-event p,
.timeline-event .date {
	font-family: Arial, sans-serif;
	font-size: 20px;
	line-height: 26px;
	color: #000;
}

.timeline-line {
	position: absolute;
	right: 0;
	bottom: 46px;
	left: 0;
	height: 2px;
	background: #ddd;
}

.timeline-years {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: space-between;
	padding-top: 10px;
	font-size: 14px;
}

.timeline-years button {
	position: relative;
	border: none;
	background: none;
	color: #333;
	font-weight: 500;
	cursor: pointer;
}

.timeline-years button.has-posts::before {
	content: "";
	position: absolute;
	top: -18px;
	left: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ffca28;
	transform: translateX(-50%);
}

.timeline-years button.has-posts.active { color: #ff9800; font-weight: 700; }
.timeline-years button.has-posts.active::before { background: #ff9800; }
.timeline-years button:not(.has-posts) { opacity: 0.7; }
.timeline-years button:not(.has-posts):hover { opacity: 1; }

@media (max-width: 768px) {
	.timeline-event { flex-basis: 80%; }

	.timeline-years {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		white-space: nowrap;
		scrollbar-width: thin;
	}

	.timeline-years::-webkit-scrollbar { height: 6px; }
	.timeline-years::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
	.timeline-years::-webkit-scrollbar-track { background: transparent; }
	.timeline-years button { flex-shrink: 0; }
}

@media (max-width: 480px) {
	.timeline-event { flex-basis: 95%; }
}

/* =========================================================================
 * [blog_posts_grid]
 * ====================================================================== */

.blog-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}

.blog-post-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-post-media {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.blog-post-media img,
.blog-post-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-post-content { padding: 25px; }

.blog-post-meta {
	margin-bottom: 15px;
	font-size: 18px;
	color: #000;
}

.blog-post-title {
	margin: 0 0 15px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.blog-post-title a {
	color: #000;
	text-decoration: none;
}

.blog-post-read-more {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: #000;
	text-decoration: none;
}

.blog-post-read-more::after {
	content: "→";
	margin-left: 8px;
}

.load-more-container {
	margin-top: 40px;
	text-align: center;
}

.load-more-btn {
	position: relative;
	padding: 15px 40px;
	border: none;
	background: #ffcd04;
	color: #000;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

.load-more-btn:hover { background: #e6b800; }

.load-more-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.no-posts-message {
	grid-column: 1 / -1;
	padding: 40px;
	text-align: center;
	font-size: 18px;
	color: #666;
}

@media (max-width: 1024px) {
	.blog-posts-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media (max-width: 768px) {
	.blog-posts-grid { grid-template-columns: 1fr; gap: 20px; }
	.blog-post-media { height: 200px; }
	.blog-post-content { padding: 20px; }
	.blog-post-title { font-size: 18px; }
}

@media (max-width: 480px) {
	.blog-post-content { padding: 15px; }
	.blog-post-title { font-size: 16px; }
	.load-more-btn { padding: 12px 30px; font-size: 14px; }
}

/* =========================================================================
 * [product_grid]
 * ====================================================================== */

.custom-product-grid-wrapper .products-grid {
	display: grid;
	grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
	gap: 30px;
}

@media (max-width: 1024px) {
	.custom-product-grid-wrapper .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.custom-product-grid-wrapper .products-grid { grid-template-columns: 1fr; }
}

.custom-product-grid-wrapper .product-image { position: relative; }

.custom-product-grid-wrapper .product-actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.custom-product-grid-wrapper .product-item:hover .product-actions,
.custom-product-grid-wrapper .product-item:focus-within .product-actions {
	opacity: 1;
}

.custom-product-grid-wrapper .product-title {
	margin: 12px 0 8px;
	font-size: 20px;
}

.custom-product-grid-wrapper .product-pagination {
	margin-top: 32px;
	text-align: center;
}