@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/**
 * LS-TEE Elementor Addons - Frontend Stylesheet
 * Scoped, modern, lightweight, and hardware-accelerated.
 */

:root {
    --ls-tee-primary: #9333ea;
    --ls-tee-primary-hover: #7e22ce;
    --ls-tee-accent: #ec4899;
    --ls-tee-text: #0f172a;
    --ls-tee-text-muted: #64748b;
    --ls-tee-card-bg: #ffffff;
    --ls-tee-border: rgba(226, 232, 240, 0.8);
    --ls-tee-radius: 16px;
    --ls-tee-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --ls-tee-shadow-hover: 0 20px 35px -5px rgba(147, 51, 234, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

/* Card Container */
.ls-tee-card {
    position: relative;
    background: var(--ls-tee-card-bg);
    border: 1px solid var(--ls-tee-border);
    border-radius: var(--ls-tee-radius);
    padding: 32px 28px;
    box-shadow: var(--ls-tee-shadow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ls-tee-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ls-tee-shadow-hover);
    border-color: rgba(147, 51, 234, 0.3);
}

/* Badge */
.ls-tee-card-badge-wrap {
    margin-bottom: 16px;
}

.ls-tee-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--ls-tee-primary) 0%, var(--ls-tee-accent) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* Card Header */
.ls-tee-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ls-tee-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(147, 51, 234, 0.08);
    color: var(--ls-tee-primary);
    font-size: 22px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ls-tee-card:hover .ls-tee-card-icon {
    transform: scale(1.08) rotate(3deg);
    background: rgba(147, 51, 234, 0.14);
}

.ls-tee-card-titles {
    display: flex;
    flex-direction: column;
}

.ls-tee-card-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ls-tee-text);
}

.ls-tee-card-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-tee-primary);
    letter-spacing: 0.02em;
}

/* Card Body */
.ls-tee-card-body {
    margin-bottom: 24px;
    flex-grow: 1;
}

.ls-tee-card-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ls-tee-text-muted);
}

/* Card Footer & Button */
.ls-tee-card-footer {
    margin-top: auto;
}

.ls-tee-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ls-tee-primary) 0%, var(--ls-tee-accent) 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

.ls-tee-card-btn:hover {
    background: linear-gradient(135deg, var(--ls-tee-primary-hover) 0%, var(--ls-tee-primary) 100%);
    box-shadow: 0 6px 18px rgba(147, 51, 234, 0.35);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .ls-tee-card {
        padding: 24px 20px;
    }
    .ls-tee-card-title {
        font-size: 18px;
    }
}


/* ==========================================================================
   LS-TEE PDF Certificate Showcase Styles (4 Lists/Row, Auto-Center if 3)
   ========================================================================== */

.ls-tee-certificates-wrapper {
    width: 100%;
    margin: 0 auto;
}

.ls-tee-certificates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Auto-centers row when items count is 3 or remainder is 3 */
    gap: 20px;
    width: 100%;
}

/* 4 Items per row on Desktop */
.ls-tee-cert-card {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    min-height: 340px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.ls-tee-cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
}

/* PDF Tag Badge */
.ls-tee-cert-pdf-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
}

.ls-tee-pdf-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}

/* Certificate Preview Container */
.ls-tee-cert-preview-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 4px;
    background: #f8fafc;
    overflow: hidden;
}

/* Native Image or Custom Thumbnail */
.ls-tee-cert-thumb-img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.ls-tee-cert-card:hover .ls-tee-cert-thumb-img {
    transform: scale(1.02);
}

/* Canvas Auto-Renderer for Page 1 */
.ls-tee-pdf-canvas-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ls-tee-pdf-canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 360px;
    display: block;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.3s ease;
}

.ls-tee-cert-card:hover .ls-tee-pdf-canvas {
    transform: scale(1.02);
}

/* Loading Shimmer Animation */
.ls-tee-pdf-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: lsTeeShimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

@keyframes lsTeeShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ls-tee-pdf-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(2, 132, 199, 0.2);
    border-top-color: #0284c7;
    border-radius: 50%;
    animation: lsTeeSpin 0.8s linear infinite;
}

@keyframes lsTeeSpin {
    to { transform: rotate(360deg); }
}

/* Clean Empty Placeholder */
.ls-tee-cert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 16px;
    color: #94a3b8;
}

.ls-tee-placeholder-doc {
    width: 80px;
    height: 110px;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.ls-tee-ph-line {
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}
.ls-tee-ph-line.w-60 { width: 60%; }
.ls-tee-ph-line.w-80 { width: 80%; }
.ls-tee-ph-line.w-40 { width: 40%; }

.ls-tee-ph-seal {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    margin: auto auto 0 auto;
}

.ls-tee-ph-label {
    font-size: 12px;
    font-weight: 500;
}

/* Full-Card Centered Hover Overlay */
.ls-tee-cert-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center; /* Center Vertically */
    justify-content: center; /* Center Horizontally */
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    z-index: 6;
    border-radius: inherit;
}

.ls-tee-cert-card:hover .ls-tee-cert-hover-overlay {
    opacity: 1;
    visibility: visible;
}

.ls-tee-cert-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    background: #0284c7;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
    transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ls-tee-cert-card:hover .ls-tee-cert-open-btn {
    transform: scale(1);
}

.ls-tee-cert-open-btn:hover {
    background: #0369a1;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.ls-tee-icon-arrow {
    transition: transform 0.2s ease;
}

.ls-tee-cert-open-btn:hover .ls-tee-icon-arrow {
    transform: translate(2px, -2px);
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
    .ls-tee-cert-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        min-height: 280px;
    }
}

/* Mobile: 1 per row */
@media (max-width: 640px) {
    .ls-tee-cert-card {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 240px;
        padding: 10px;
    }
}


/* ==========================================================================
   LKC Custom Styles (Menu, Triangles, Forminator & LKC Buttons)
   ========================================================================== */

.menu-hover nav ul li a {
	transition: all .3s ease;
}

.menu-hover nav ul li:hover a {
	font-weight: 700 !important;
	transition: all .3s ease;
}

.relative {
	position: relative;
}

.triangle-rb::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-bottom: 15px solid transparent;
	border-top: 15px solid transparent;
	border-left: 15px solid #333132;
	position: absolute;
	top: 30px;
	right: -15px;
	z-index: 1;
}

.triangle-lb::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-bottom: 15px solid transparent;
	border-top: 15px solid transparent;
	border-right: 15px solid #333132;
	position: absolute;
	top: 30px;
	left: -15px;
	z-index: 1;
}

.triangle-rbl::after {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-bottom: 15px solid transparent;
	border-top: 15px solid transparent;
	border-left: 15px solid #1F386B;
	position: absolute;
	top: 30px;
	right: -15px;
	z-index: 1;
}

.forminator-row {
	display: flex;
	gap: 10px;
}

.forminator-col-12 {
	width: 100%;
}

.forminator-row div:nth-of-type(1) {
	padding-right: 0 !important;
}

.forminator-row div:nth-of-type(2) {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.forminator-custom-form-1143 input {
	font-family: 'kanit' !important;
	font-weight: 400 !important;
}

.forminator-custom-form-1143 button {
	background-color: #1f386b !important;
	color: #fff !important;
	font-family: 'Kanit' !important;
	font-weight: 400 !important;
}

.forminator-custom-form-1143 button:hover {
	background-color: #333132 !important;
}

.LKC-button a {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: center;
}

.LKC-button a::after {
	content: url('http://lkcindustry.com/wp-content/uploads/2026/11/strok-2.png');
	display: block;
	flex-shrink: 0;
}

@media only screen and (max-width: 767px) {
	.triangle-rb::after,
	.triangle-rbl::after {
		bottom: -22px;
		right: 50%;
		left: 50%;
		top: auto;
		transform: rotate(90deg);
	}
	.triangle-lb::after {
		top: -22px;
		right: 50%;
		left: 50%;
		transform: rotate(90deg);
	}
}


/* ==========================================================================
   LS-TEE Project Gallery Grid & Lightbox Popup Slider
   ========================================================================== */

.ls-tee-project-gallery-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.ls-tee-project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.ls-tee-project-card {
    position: relative;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.ls-tee-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.ls-tee-project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.ls-tee-project-card:hover .ls-tee-project-bg {
    transform: scale(1.05);
}

.ls-tee-project-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    --ls-tee-overlay-top: rgba(0, 0, 0, 0.08);
    --ls-tee-overlay-bottom: rgba(0, 0, 0, 0.88);
    background: linear-gradient(to top, var(--ls-tee-overlay-bottom) 0%, rgba(0, 0, 0, 0.45) 50%, var(--ls-tee-overlay-top) 100%);
    transition: opacity 0.3s ease;
}

.ls-tee-project-card-content {
    position: relative;
    z-index: 3;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

.ls-tee-project-title {
    font-family: 'Kanit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
}

.ls-tee-project-subtitle {
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 16px 0;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.ls-tee-project-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #16a34a;
    color: #ffffff;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 50px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
    line-height: 1.2 !important;
}

.ls-tee-project-btn:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4) !important;
    border: none !important;
}

.ls-tee-project-btn-text {
    line-height: 1;
}

.ls-tee-project-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.ls-tee-project-btn-icon svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
}

.ls-tee-project-btn:hover .ls-tee-project-btn-icon {
    transform: translateX(3px);
}

/* Lightbox Modal Structure */
.ls-tee-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.ls-tee-lightbox-modal.ls-tee-modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ls-tee-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.ls-tee-lightbox-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92vw;
    max-width: 1100px;
    height: 85vh;
    max-height: 820px;
    padding: 0 60px;
    box-sizing: border-box;
}

.ls-tee-lightbox-close {
    position: absolute;
    top: -24px;
    right: 20px;
    z-index: 10;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff;
    cursor: pointer;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ls-tee-lightbox-close svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
}

.ls-tee-lightbox-close:hover {
    transform: scale(1.15);
    color: #ef4444;
    border: none !important;
}

.ls-tee-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.ls-tee-lightbox-nav svg {
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-shrink: 0;
}

.ls-tee-lightbox-prev svg {
    transform: translateX(-1px);
}

.ls-tee-lightbox-next svg {
    transform: translateX(1px);
}

.ls-tee-lightbox-nav:hover {
    background-color: rgba(22, 163, 74, 0.85);
    border-color: #16a34a !important;
    transform: translateY(-50%) scale(1.08);
}

.ls-tee-lightbox-prev {
    left: 0;
}

.ls-tee-lightbox-next {
    right: 0;
}

.ls-tee-lightbox-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ls-tee-lightbox-slide {
    position: relative;
    width: 100%;
    height: calc(100% - 42px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-tee-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-tee-lightbox-img.ls-tee-img-loaded {
    opacity: 1;
    transform: scale(1);
}

.ls-tee-lightbox-counter {
    margin-top: 14px;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 16px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    user-select: none;
}

/* Responsive Breakpoints */
@media screen and (max-width: 991px) {
    .ls-tee-lightbox-dialog {
        padding: 0 45px;
    }
    .ls-tee-lightbox-nav {
        width: 44px;
        height: 44px;
    }
}

@media screen and (max-width: 767px) {
    .ls-tee-project-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
    .ls-tee-project-card {
        min-height: 260px;
    }
    .ls-tee-lightbox-dialog {
        padding: 0 36px;
        width: 96vw;
        height: 80vh;
    }
    .ls-tee-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .ls-tee-lightbox-nav svg {
        width: 20px !important;
        height: 20px !important;
    }
    .ls-tee-lightbox-close {
        top: -36px;
        right: 0;
        width: 40px;
        height: 40px;
        border: none !important;
        outline: none !important;
        background: transparent !important;
    }
    .ls-tee-lightbox-close svg {
        width: 20px !important;
        height: 20px !important;
    }
}


/* ==========================================================================
   LS-TEE Elementor Standard Container Link
   ========================================================================== */

.ls-tee-clickable-container {
    cursor: pointer !important;
}

body.elementor-editor-active .ls-tee-clickable-container {
    cursor: default !important;
}

.ls-tee-clickable-container input,
.ls-tee-clickable-container textarea,
.ls-tee-clickable-container select {
    cursor: text;
}

.ls-tee-clickable-container button,
.ls-tee-clickable-container a {
    cursor: pointer;
}


/* ==========================================================================
   LS-TEE Post Grid Showcase Widget (Reference Layout)
   ========================================================================== */

.ls-tee-post-grid-wrapper {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.ls-tee-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

.ls-tee-post-card {
    position: relative;
    background-color: #ffffff;
    border: 2px solid transparent !important;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.ls-tee-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #16a34a !important;
}

.ls-tee-post-card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit;
    outline: none;
}

/* Top Image Container */
.ls-tee-post-image-box {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: #edf1f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.ls-tee-post-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-tee-post-card:hover .ls-tee-post-img {
    transform: scale(1.04);
}

.ls-tee-post-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Bottom Content Container */
.ls-tee-post-content-box {
    background-color: #ffffff;
    padding: 20px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.ls-tee-post-code {
    font-family: 'Kanit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1F386B;
    line-height: 1.2;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
}

.ls-tee-post-title {
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1F386B;
    line-height: 1.4;
    margin: 0 0 8px 0;
    transition: color 0.25s ease;
}

.ls-tee-post-short-desc {
    font-family: 'Kanit', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px 0;
    transition: color 0.25s ease;
}

.ls-tee-post-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.ls-tee-post-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    line-height: 1;
}

.ls-tee-post-arrow-img {
    display: block;
    width: 22px;
    height: auto;
    max-height: 11px;
    aspect-ratio: 28 / 11;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.ls-tee-post-link-arrow svg {
    display: block;
    width: 22px;
    height: auto;
    stroke: currentColor;
}

.ls-tee-post-card:hover .ls-tee-post-link-arrow {
    transform: translateX(4px);
}

/* Responsive Grid */
@media screen and (max-width: 991px) {
    .ls-tee-post-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 24px;
    }
    .ls-tee-post-image-box {
        height: 200px;
    }
}

@media screen and (max-width: 767px) {
    .ls-tee-post-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
    .ls-tee-post-image-box {
        height: 180px;
    }
    .ls-tee-post-content-box {
        padding: 18px 20px 20px 20px;
    }
}

/* ==========================================================================
   LS-TEE Product Gallery Slider Styles (Clean Gallery Image Showcase)
   ========================================================================== */

.ls-tee-gallery-slider-frame {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

.ls-tee-gallery-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.ls-tee-gallery-track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--gallery-gap, 20px);
    width: max-content;
    min-width: 100%;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.ls-tee-gallery-slide {
    flex: 0 0 calc((100% - (var(--gallery-gap, 20px) * (var(--slides-to-show, 1) - 1))) / var(--slides-to-show, 1));
    width: calc((100% - (var(--gallery-gap, 20px) * (var(--slides-to-show, 1) - 1))) / var(--slides-to-show, 1));
    max-width: none;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.ls-tee-gallery-slide.is-active {
    opacity: 1;
}

.ls-tee-gallery-slide-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 520px;
    background-color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.ls-tee-gallery-slide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.45);
}

.ls-tee-gallery-slide-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-tee-gallery-slide-card:hover .ls-tee-gallery-slide-img {
    transform: scale(1.02);
}

.ls-tee-gallery-slide-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ls-tee-gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    z-index: 10;
}

.ls-tee-gallery-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    outline: none;
    transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-tee-gallery-dot:hover {
    background-color: rgba(255, 255, 255, 0.75) !important;
}

.ls-tee-gallery-dot.is-active {
    background-color: #ffffff !important;
    border-radius: 50% !important;
    transform: scale(1.25);
}

@media screen and (max-width: 767px) {
    .ls-tee-gallery-slider-frame {
        padding: 24px 16px 20px 16px;
    }
    .ls-tee-gallery-slide-card {
        height: 380px;
        padding: 20px;
        max-width: 100%;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    }
    .ls-tee-gallery-dots {
        margin-top: 18px;
        gap: 8px;
    }
}
