/*
Theme Name: Filpac Theme EN
Author: Filpac
Description: Custom theme for Filpac
Version: 1.0
*/

/* Accessibility - Skip Link */
.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999999;
}

.skip-link:focus {
	position: fixed;
	left: 6px;
	top: 7px;
	background: #1D5B2D;
	color: #fff;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 4px;
}

/* WordPress Content Section */
.wp-content-section {
	background-color: #fff;
}

.wp-content-section .edit-link {
	margin-top: 2rem;
	text-align: center;
}

.wp-content-section .edit-link a {
	color: #1D5B2D;
	text-decoration: none;
	font-size: 0.9rem;
}

.wp-content-section .edit-link a:hover {
	text-decoration: underline;
}

/* Screen Reader Text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Import Fonts */
body {
    font-family: 'Noto Sans Thai', sans-serif;
    background-color: #fff;
	font-size: 0.7rem;
}

/* Font */
.branding-text {
	font-family: 'Noto Sans Thai', sans-serif;
}
.logo {
	width: 42px;
}
/* Navbar */
.navbar {
    background-color: transparent !important;
    transition: background-color 0.3s ease-in-out;
}
.navbar-nav {
	font-size: 0.8rem;
}
.nav-link {
    color: #000;
}
.nav-link:hover {
	color: #1D5B2D;
}
.green-nav {
	background: #1D5B2D;
	background: linear-gradient(90deg,rgba(29, 91, 45, 1) 0%, rgba(83, 168, 37, 1) 100%);
	font-size: 0.6rem;
}
.green-nav .nav-link {
	color: #fff;
}
.green-nav .nav-link.disabled, .nav-link.disabled,
.green-nav .disabled .nav-link, .disabled .nav-link {
	color: #ccc!important;
}
.disabled .nav-link, .nav-link:disabled {
    color: var(--bs-nav-link-disabled-color);
    pointer-events: none;
    cursor: default;
}
.navbar-toggler {
	border-color: #1d5b2d;
}
.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(29, 41, 45, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler:focus {
	box-shadow: 0 0 0 0.1rem;
}

/* Animated Hamburger Icon - matches Bootstrap's navbar-toggler-icon size */
.hamburger-icon {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	position: relative;
}

.hamburger-line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: rgba(29, 41, 45, 1);
	border-radius: 1px;
	position: absolute;
	left: 0;
	transition: all 0.3s ease-in-out;
	transform-origin: center;
}

/* Default hamburger state (closed) */
.hamburger-line:nth-child(1) {
	top: 0.4em;
	transform: translateY(0) rotate(0deg);
}

.hamburger-line:nth-child(2) {
	top: 50%;
	margin-top: -1px;
	opacity: 1;
	transform: translateY(0) scaleX(1);
}

.hamburger-line:nth-child(3) {
	bottom: 0.4em;
	transform: translateY(0) rotate(0deg);
}

/* X Icon State (when menu is open) */
.navbar-toggler[aria-expanded="true"] .hamburger-icon .hamburger-line:nth-child(1) {
	top: 50%;
	margin-top: -1px;
	transform: translateY(0) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon .hamburger-line:nth-child(2) {
	opacity: 0;
	transform: translateY(0) scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon .hamburger-line:nth-child(3) {
	bottom: auto;
	top: 50%;
	margin-top: -1px;
	transform: translateY(0) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    background: url('../images/home-welcome.png') no-repeat left bottom/cover;
}

/* Language Bar */
.lang-toggle {
	background-color: #1D5B2D;
}
.lang-toggle .btn {
	font-size: 0.6rem;
	color: #939393;
	border-radius: 1rem;
}
.lang-toggle .btn.active {
	color: #fff;
	border-color: #1D5B2D;
}
.lang-toggle.btn-group {
	border-radius: 1rem;
}
.lang-toggle .sep {
	color: #598765;
}
.lang-toggle .btn a {
	text-decoration: none;
}

/* Footer */
.footer-green {
	background: #1D5B2D;
	background: linear-gradient(90deg,rgba(29, 91, 45, 1) 0%, rgba(83, 168, 37, 1) 100%);
	font-size: 0.6rem;
}
.footer-section {
	font-size: 0.85rem;
}
.footer-social h6 {
	font-size: 0.7rem;
}
.footer-social ul li:last-child .nav-link {
	padding-right: 0;
}
.footer-social .social-holder {
	width: 24px;
	height: 24px;
	background-position: center;
    background-repeat: no-repeat;
}
.social-youtube .social-holder {
	background-image: url('images/icon/icon_youtube.svg');
}
.social-youtube .social-holder:hover {
	background-image: url('images/icon/icon_youtube-h.svg');
}
.social-line .social-holder {
	background-image: url('images/icon/icon_line.svg');
}
.social-line .social-holder:hover {
	background-image: url('images/icon/icon_line-h.svg');
}
.social-facebook .social-holder {
	background-image: url('images/icon/icon_facebook.svg');
	
}
.social-facebook .social-holder:hover {
	background-image: url('images/icon/icon_facebook-h.svg');
}


/* Home Carousel Start */
/* Base Styles for the Slider (Custom Geometry) */
	/*.slider-container {
		width: 100%;
		max-width: 1100px;
		margin: 0 auto;
		background-color: white;
		padding: 1.5rem 0;
	}

	.viewport-wrapper {
		overflow: hidden;
		position: relative;
	}

	.slide-track {
		display: flex;
		transition: transform 0.5s ease-in-out;
	}

	.slide-item {
		flex-shrink: 0;
		width: 80vw;
		max-width: 880px;
		padding: 0 0.5rem; 
		cursor: grab;
	}

	.slide-item img {
		width: 100%;
		height: 400px;
		object-fit: cover;
		border-radius: 0.75rem;
	}

	.control-button {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 10;
		background-color: #fff;
		color: #000;
		border: 1px solid #ccc;
		padding: 0.2rem 1rem;
		border-radius: 50%; 
		transition: background-color 0.3s;
	}
	.control-button:hover {
		background-color: rgba(0, 0, 0, 0.5);
		color: #fff;
	}
	.prev-button { left: 1rem; }
	.next-button { right: 1rem; }

	.indicator-button {
		width: 10px;
		height: 12px;
		border-radius: 50%;
		background-color: #828282;
		cursor: pointer;
		transition: background-color 0.3s, transform 0.3s;
		margin: 0 0.3rem;
		border: none;
	}
	.indicator-button.active {
		background-color: #1D1D1D;
		transform: scale(1.2);
	}*/
/* Home Carousel End */
/* Home CarouselOps Start */

	#homeOperationCarousel .carousel-control-prev-icon,
	#homeHighlightMachine .carousel-control-prev-icon,
	#serviceCarousel-1 .carousel-control-prev-icon,
	#serviceCarousel-2 .carousel-control-prev-icon {
		background-image: url("data:image/svg+xml;charset=utf8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23444'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
	}
	#homeOperationCarousel .carousel-control-next-icon,
	#homeHighlightMachine .carousel-control-next-icon,
	#serviceCarousel-1 .carousel-control-next-icon,
	#serviceCarousel-2 .carousel-control-next-icon {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23444'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	}
	#homeOperationCarousel .carousel-control-wrapper,
	#homeHighlightMachine .carousel-control-wrapper,
	#serviceCarousel-1 .carousel-control-wrapper,
	#serviceCarousel-2 .carousel-control-wrapper {
		background-color: #fff;
		background-position: 50%;
		padding: 5px;
		border-radius: 50%;
		width: 3rem;
		height: 3rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		border: 1px solid #ccc;
	}
	.carousel-indicators [data-bs-target] {
		width: 1rem;
		height: 1rem;
		background-color: #1D1D1D;
		border-radius: 50%;
	}
	.carousel-indicators {
		bottom: -50px;
	}
	.carousel-control-next, .carousel-control-prev {
		opacity: 0.7;
	}
	#homeHighlightMachine .carousel-item a {
		text-decoration: none;
	}
	#homeHighlightMachine .carousel-item a p {
		color: #212529;
	}
		
	
/* Home CarouselOps End */


/* Carousel Machine Start */
#homeHighlightMachine .card {
	background-color: #F4F4F4;
    border: none;
    padding: 20px;
	min-height: 460px;
}
#homeHighlightMachine h4 {
	color: #000;
    font-size: 1.3rem;
}
#homeHighlightMachine p.card-text {
	font-size: 1rem;
}
/* Carousel Machine End */

/* Home About Start */
.home-about-heading {
	font-size: 2.4rem;
	font-weight: 700;
	color: #1D5B2D;
	line-height: 3rem;
}
.home-about-services {
	background-color: #F4F4F4;
    border-radius: 20px;
	height: -webkit-fill-available;
	transition: background-color 0.3s;
}
.home-about-services:hover {
	color: #fff;
	background: #1D5B2D;
	background: linear-gradient(60deg,rgba(29, 91, 45, 1) 0%, rgba(83, 168, 37, 1) 100%);
}
.home-about-services .service-point {
	font-size: 5rem;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #1D5B2D;
    font-family: 'Inter';
    font-weight: 700;
}
.home-about-services:hover .service-point {
	-webkit-text-stroke-color: #fff;
}
.benefits {
	background-color: #F4F4F4;
	border-radius: 20px;
}
.benefits-heading p {
	font-size: 1.5rem;
    font-weight: 500;
}
.benefits-heading h3 {
	color: #1D5B2D;
	font-size: 3rem;
}
.benefits .icon img {
	width: 100%;
}
.highlight-machine h4 {
	color: #1D5B2D;
    font-size: 3rem;
    font-weight: 600;
}
.highlight-machine p {
    font-size: 1.3rem;
}
/* Home About End */

/* Products Start */
.products-list {
}
.products-list h5 {
	border-bottom: 1px solid #ABABAB;
}
.products-list .form-check-label:has(.form-check-input:checked) {
    color: #1D5B2D;
}
.products-list .form-check-input:checked {
    background-color: #1D5B2D;
    border-color: #1D5B2D;
}
.products-list h5 a {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1D1D1D;
	text-decoration: none;
}
.products-list p {
    font-size: 0.75rem;
	color: #999A9D;
}
.product-catalog .card {
	border: none;
	background-color: #F4F4F4;
}
.product-catalog .card h6 {
	font-size: 0.9rem;
    font-weight: 600;
}
.product-catalog .card p {
	font-size: 0.8rem;
    color: #000;
}
.breadcrumb-item {
	font-size: 0.9rem;
}
.breadcrumb-item a {
    color: #8B8C8F;
	text-decoration: none;
}
.breadcrumb-item a:hover {
	color: #1D5B2D;
}
.breadcrumb-item+.breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, ">");
}
.breadcrumb-item.active {
	color: #1D5B2D;
	font-weight: 600;
}
.products-description {
	background-color: #F4F4F4
}
.product-wrapper {
	background-color: #fff;
	border-radius: 20px;
}
.product-detail p {
	font-size: 0.9rem;
}

.filterable-item {
  transition: 
    opacity 0.4s ease-in-out, /* Fade duration */
    max-height 0.4s ease-in-out; /* Height duration */
    
  max-height: 500px; /* Adjust this value if your content is taller */
  opacity: 1;
  overflow: hidden; /* Crucial for clipping content when max-height shrinks */
}
.fade-out {
	opacity: 0;
}
/* Hidden state */
.filterable-item.hidden {
	opacity: 0;
	max-height: 0; /* Shrink height to hide completely */
	margin-top: 24px; 
	margin-bottom: 0; 
	width: 0;
	padding: 0;
}
.active>.page-link, .page-link.active {
	background-color: #1D5B2D;
	border-color: #1D5B2D;
}
.page-link {
	color: #1D5B2D;
}
.product-type-list .form-check-input[type=radio] {
	border-radius: 0;
}
/* Produccts End */
/* Quotes */
.quote-information h5,
.quote-information h3 {
	color: #1D5B2D;
}
.quote-information h3 {
	font-weight: 600;
}
.quote-information p.info {
	font-size: 1rem;
	color: #828282;
}
.quote-information .instructions p {
	margin: 0;
	color: #828282;
	font-size: 0.7rem;
}
.get-a-quote, .get-a-quote-container .privacy-notice {
	background-color: #fff;
	border-radius: 10px;
}
.get-a-quote h6 {
	font-size: 0.9rem;
    font-weight: 600;
	color: #1D5B2D;
}
.get-a-quote p.info {
	font-size: 0.6rem;
    color: #828282;
}
.get-a-quote em {
	color:#C00;
}
.get-a-quote-container .privacy-notice h6 {
	font-size: 0.8rem;
	font-weight: 600;
}
.get-a-quote-container .privacy-notice p {
	color: #828282;
}
.quote-form label {
	margin-bottom: 0.2rem;
	font-size: 0.8rem;
}
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"] {
	font-size: 0.7rem;
	height: 30px;
}
.quote-form textarea {
	font-size: 0.7rem;
}
/* Quotes */

/* Services Start */
.services-page h4 {
	font-size: 0.9rem;
}
.services-page h4,
.services-page p {
	text-align: left;
}
.services-page .nav-link {
	border-top: 2px solid #999A9D;
}
.services-page .nav-link {
	color: #999A9D;
	cursor: pointer;
	padding: 8px 0;
}
.services-page .nav-link.active {
	border-top-color: #000;
}
.services-page .nav-link.active,
.services-page .nav-link:hover {
	color: #000;
}
/* Services End */


/* Contact Start */
.contact-office .contact-address h2 {
	border-bottom: 1px solid #000;
	font-weight: 600;
}
.contact-office .contact-address h4 {
	font-size: 1.2rem;
    font-weight: 600;
}
.contact-office .contact-address p {
	margin-bottom: 0;
}
.btn-filpac, .btn-filpac:hover {
	background: #1D5B2D;
	background: linear-gradient(90deg,rgba(29, 91, 45, 1) 0%, rgba(83, 168, 37, 1) 100%);
	border: none;
}
.form-label {
	font-size: 0.8rem;
    font-weight: 600;
}
.form-label em {
	color: #C00;
}
/* Contact End */

/* Industries Start */
.industries-list .title {
	position: absolute;
    bottom: 0px;
    left: 10px;
    font-size: 1.5rem;
    font-weight: 400;
}
.industries-list .item-wrapper {
	
}
.industries-list a {
	color: #000;
}
.industries-list .item {
	background-color: #f4f4f4;
	border-radius: 10px;
	position: relative
}
/* Industries End */

/* Careers Start */
.job-list {
	background-color: #F4F4F4;
	border-radius: 20px;
}
.careers-detail {
	background-color: #F4F4F4;
}
.job-information h2 {
	font-size: 2.5rem;
	color: #575757;
	font-weight: 600;
}
.job-information h5 {
    color: #1D5B2D;
	font-weight: bold;
}
.job-information p {
	font-size: 1rem;
    color: #828282;
}
.job-form, .job-form-container .privacy-notice {
    background-color: #fff;
    border-radius: 10px;
}
.job-form h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1D5B2D;
}
.job-form p.info {
    font-size: 0.6rem;
    color: #828282;
}
/* Careers End */

/* News & Media Start */
.news-highlight img {
	border-radius: 10px;
}
.news-list .card {
	border: 0;
	border-radius: 10px;
	background-color: #F4F4F4;
}
.news-list .card-body {
}
.news-list .card-body h4 {
	font-size: 0.9rem;
	font-weight: 600;
}
.news-highlight {
	position: relative;
}
.news-excerpt {
	position: absolute;
	bottom: 0;
    padding: 10px;
    width: calc(100% - 20px);
}
.news-excerpt h4,
.news-excerpt p {
	color: #fff;
}
.news-excerpt h4 {
	font-size: 1.2rem;
    font-weight: 400;
}
.news-excerpt p {
	font-size: 0.9rem;
}
.news-content .news-title h1 {
	font-size: 2.5rem;
    font-weight: 600;
    color: #575757;
}
.news-content .news-title h5 {
	font-size: 1.1rem;
    font-weight: 300;
    color: #575757;
}
.news-content .news-content-body p {
	color: #575757;
	font-weight: 300;
	font-size: 1rem;
	margin-bottom: 2.4rem;
}
.news-content .news-content-body h5 {
    color: #575757;
	font-size: 1.4rem;
	font-weight: 600;
}
.article_thumbnail {
	aspect-ratio: 16 / 9;
    object-fit: cover;
}
a.news-link {
	color: #000;
	text-decoration: none;
}
.nav-previous a,
.nav-next a {
	color: #1D5B2D;
}
.nav-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
}


/* News & Media End */

/* Page Loader */
.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	background-color: #fff;
	z-index: 99999;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
	overflow: hidden;
	box-sizing: border-box;
}

.page-loader.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	display: none !important;
}

.loader-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin: 0;
	padding: 0;
	position: relative;
}

.loader-spinner {
	position: relative;
	width: 80px;
	height: 80px;
}

.spinner-ring {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 4px solid transparent;
	border-top-color: #1D5B2D;
	border-right-color: #53A825;
	border-radius: 50%;
	animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
	animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
	animation-delay: -0.3s;
	border-top-color: #53A825;
	border-right-color: #1D5B2D;
	width: 70%;
	height: 70%;
	top: 15%;
	left: 15%;
}

.spinner-ring:nth-child(3) {
	animation-delay: -0.15s;
	width: 50%;
	height: 50%;
	top: 25%;
	left: 25%;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.loader-logo {
	width: 60px;
	height: 60px;
	opacity: 0.8;
	animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@keyframes pulse {
	0%, 100% {
		opacity: 0.6;
		transform: scale(1);
	}
	50% {
		opacity: 1;
		transform: scale(1.05);
	}
}

.page-content {
	transition: opacity 0.6s ease-in;
}

.page-content.fade-in {
	opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    
}
@media (max-width: 991.98px) {
	.hero-section {
		height: 60vh;
	}
	.industries-list .title {
		font-size: 1rem;
	}
}
@media (max-width: 767px) {
	
	.footer-section .nav.footer-menu li {
		width: 100%;
		text-align: right;
	}
}