/* Additional styles beyond what is in style.css */

/* Contact form specific styles */
.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--k51comm-primary);
}

/* Hero section animation */
.hero-slide.active .hero-content {
    animation: slideInUp 1s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.no-animation {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Product card hover effect */
.product-overlay a {
    transform: scale(0);
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay a {
    transform: scale(1);
}

.product-card:hover .product-overlay a:nth-child(2) {
    transition-delay: 0.1s;
}

/* Team card social icons */
.team-social a {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-social a {
    transform: translateY(0);
    opacity: 1;
}

.team-card:hover .team-social a:nth-child(2) {
    transition-delay: 0.1s;
}

.team-card:hover .team-social a:nth-child(3) {
    transition-delay: 0.2s;
}

/* Partner logo hover */
.partner-item img {
    transition: all 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.1);
}

/* Form validation styles */

/* Fix homepage contact form select dropdown visibility */
.contact-section .form-group select {
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    appearance: auto;
    -webkit-appearance: auto;
}

.contact-section .form-group select option {
    background: #fff;
    color: #333;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545 !important;
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #28a745 !important;
}

/* Page transitions */
.page-content {
    animation: fadeIn 0.5s ease;
}

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

/* Single post featured image */
.post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Single post header elements */
.page-header .post-category {
    margin-bottom: 1rem;
}
.page-header .post-category a {
    display: inline-block;
    background: var(--k51comm-primary);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.page-header .post-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--k51comm-heading);
}
.page-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    color: var(--k51comm-text-light);
    font-size: 0.9rem;
}
.page-header .post-meta a {
    color: var(--k51comm-primary);
}
.page-header .post-meta i {
    margin-right: 4px;
}

/* Related posts card content matching .post-item .post-content */
.post-item .entry-content {
    padding: 1.5rem;
}

/* Post navigation */
.post-navigation {
    padding: 2rem 0;
    border-top: 1px solid var(--k51comm-border);
    border-bottom: 1px solid var(--k51comm-border);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    max-width: 45%;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex;
    flex-direction: column;
}

.post-navigation .nav-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--k51comm-text-light);
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    font-weight: 600;
}

/* Related posts */
.related-posts {
    padding: 4rem 0;
    background: var(--k51comm-bg-light);
}

.related-posts-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Author bio */
.author-bio {
    padding: 3rem 0;
    border-top: 1px solid var(--k51comm-border);
}

.author-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-info img {
    border-radius: 50%;
}

.author-details {
    flex: 1;
}

.author-name {
    margin-bottom: 0.5rem;
}

.author-description {
    color: var(--k51comm-text-light);
    margin: 0;
}

/* Page links */
.page-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--k51comm-border);
}

.page-links a {
    padding: 0.25rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 4px;
}

.page-links a:hover {
    background: var(--k51comm-primary);
    border-color: var(--k51comm-primary);
    color: #fff;
}

/* Comments */
.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--k51comm-border);
}

.comment-author {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-style: normal;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--k51comm-text-light);
}

.comment-content {
    margin-top: 1rem;
}

.reply {
    margin-top: 0.5rem;
}

.reply a {
    font-size: 0.875rem;
    color: var(--k51comm-primary);
}

/* Comment form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 4px;
    font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--k51comm-primary);
}

/* 404 page */
.error-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-search {
    margin: 2rem 0;
}

.error-search form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.error-search input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--k51comm-border);
    border-radius: 4px;
}

.error-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--k51comm-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--k51comm-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--k51comm-text-light);
}

/* Selection styling */
::selection {
    background: var(--k51comm-primary);
    color: #fff;
}

/* RTL specific adjustments */
[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .post-navigation .nav-previous {
    text-align: right;
}

[dir="rtl"] .post-navigation .nav-next {
    text-align: left;
}

/* Placeholder fallback for empty image src */
.product-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.product-image img[src=""],
.product-image img:not([src]) {
    visibility: hidden;
}

.team-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.team-image img[src=""],
.team-image img:not([src]) {
    visibility: hidden;
}

.about-image img[src=""],
.about-image img:not([src]) {
    display: none;
}

.news-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.news-image img[src=""],
.news-image img:not([src]) {
    display: none;
}

.partner-item {
    background: var(--k51comm-bg-light);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-placeholder {
    color: var(--k51comm-text-light);
    font-size: 0.875rem;
    opacity: 0.5;
}

/* Hero slide without background image - show gradient */
.hero-slide.no-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 600px;
}

/* Hero dots - prevent overlap with controls */
.hero-controls {
    bottom: 4rem;
}

.hero-dots {
    bottom: 1.5rem;
}

/* Print styles */
@media print {
    .site-header,
    .floating-bar,
    .back-to-top,
    .hero-controls,
    .hero-dots,
    .post-navigation,
    .related-posts,
    .author-bio {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    .page-content {
        padding: 0;
    }
}

/* Enterprise content refinements */
.enterprise-content-area {
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.section-header.compact {
    max-width: 820px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.enterprise-list-section {
    margin-top: 0;
}

.product-center-layout {
    margin-top: 0;
}

.product-center-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 4rem;
    overflow: hidden;
    width: 100vw;
    margin: -3rem 0 0 calc(50% - 50vw);
    padding: 6rem max(40px, calc((100vw - 1480px) / 2)) 6.5rem;
    border-radius: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(212, 166, 74, 0.26), transparent 30%),
        linear-gradient(135deg, #07170e 0%, #12321f 46%, #2d7046 100%);
    color: #fff;
}

.product-center-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border: 42px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.product-center-copy {
    position: relative;
    z-index: 1;
}

.product-center-copy .section-title {
    color: #f4d28a;
}

.product-center-copy h2 {
    max-width: 900px;
    margin: 0.5rem 0 1rem;
    color: #fff;
    font-size: clamp(3rem, 5vw, 5.8rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.product-center-copy p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.18rem;
    line-height: 1.8;
}

.product-center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.product-center-hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.product-center-hero .btn-outline:hover {
    background: #fff;
    color: var(--k51comm-primary);
}

.product-center-stats {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.25rem;
}

.product-center-stats div {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.product-center-stats strong {
    display: block;
    color: #fff;
    font-size: 3.4rem;
    line-height: 1;
}

.product-center-stats span {
    display: block;
    margin-top: 0.55rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.product-center-block {
    max-width: 1480px;
    margin: 4.5rem auto 0;
}

.product-center-block-title {
    max-width: 820px;
    margin: 0 auto 2rem;
    text-align: center;
}

.product-center-block-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    color: var(--k51comm-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-center-block-title h3 {
    margin: 0;
    color: var(--k51comm-heading);
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.04em;
}

.product-center-block-title p {
    margin: 0.8rem auto 0;
    color: var(--k51comm-text-light);
    line-height: 1.75;
}

.product-category-card-grid {
    margin-top: 0;
}

.product-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 2.5rem;
}

.product-category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    border: 1px solid var(--k51comm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--k51comm-heading);
    font-weight: 700;
    padding: 0.55rem 1rem;
}

.product-category-nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--k51comm-bg-light);
    color: var(--k51comm-primary);
    font-size: 0.78rem;
    padding: 0 0.35rem;
}

.product-category-nav a:hover,
.product-category-nav a.active {
    border-color: var(--k51comm-primary);
    background: var(--k51comm-primary);
    color: #fff;
}

.product-category-nav a:hover span,
.product-category-nav a.active span {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.all-product-items-wrap {
    width: 100vw;
    margin: 5rem 0 0 calc(50% - 50vw);
    padding: 5rem max(40px, calc((100vw - 1480px) / 2));
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(35, 91, 56, 0.07), rgba(212, 166, 74, 0.08)),
        #f7f5ef;
}

.all-product-items-wrap .source-product-section {
    margin-top: 3.5rem;
}

.all-product-items-wrap .source-product-section:first-of-type {
    margin-top: 2rem;
}

.categorized-product-wrap .source-product-section {
    padding: 3rem;
    background: #fff;
    box-shadow: 0 20px 70px rgba(15, 39, 24, 0.08);
}

.product-filter-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 2.5rem;
    max-width: 1280px;
}

.product-filter-nav button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 52px;
    border: 1px solid var(--k51comm-border);
    background: #fff;
    color: var(--k51comm-heading);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0 1.2rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.product-filter-nav button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--k51comm-bg-light);
    color: var(--k51comm-primary);
    font-size: 0.78rem;
    padding: 0 0.35rem;
}

.product-filter-nav button:hover,
.product-filter-nav button.active {
    border-color: var(--k51comm-primary);
    background: var(--k51comm-primary);
    color: #fff;
}

.product-filter-nav button:hover span,
.product-filter-nav button.active span {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.filterable-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.filterable-product-card[hidden] {
    display: none;
}

.filterable-product-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.75rem;
    color: var(--k51comm-primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.product-traditional-layout .xyj-reference-banner {
    min-height: var(--k51comm-banner-height, 450px);
}

.product-plain-banner {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #1a1a2e;
}

.product-plain-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.product-plain-banner::after {
    content: none;
}

.product-traditional-layout .xyj-reference-banner-layer {
    align-items: center;
    min-height: var(--k51comm-banner-height, 450px);
    justify-content: center;
    padding: 5rem 0 6rem;
    text-align: center;
}

.product-traditional-layout .xyj-reference-banner-layer strong {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    background: transparent;
    color: #fff;
    font-size: clamp(3.4rem, 7vw, 6.8rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.96;
    padding: 0;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    box-shadow: none;
}

.product-traditional-layout .xyj-reference-banner-layer span {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    color: #f4d28a;
    font-size: 0.9rem;
    letter-spacing: 0.28em;
    padding: 0.65rem 1.1rem;
    backdrop-filter: blur(8px);
}

.product-traditional-layout .xyj-reference-banner::after {
    background:
        linear-gradient(180deg, rgba(10, 15, 28, 0.24), rgba(10, 15, 28, 0.78)),
        linear-gradient(90deg, rgba(10, 15, 28, 0.56), rgba(10, 15, 28, 0.18), rgba(10, 15, 28, 0.56));
}

.product-traditional-layout .all-product-items-wrap {
    margin-top: 0;
    padding-top: 6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 245, 239, 0.96)),
        #f7f5ef;
}

.product-filter-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1480px;
    margin: 0 auto 1rem;
    padding: 0;
    border-bottom: 0;
}

.product-filter-toolbar span {
    display: block;
    color: var(--k51comm-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-filter-toolbar strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--k51comm-heading);
    font-size: clamp(1.2rem, 1.7vw, 1.6rem);
    letter-spacing: -0.03em;
}

.product-filter-toolbar p {
    margin: 0;
    color: var(--k51comm-text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

.product-traditional-layout .product-filter-toolbar {
    transform: translateY(-2rem);
    margin-bottom: -1rem;
}

.product-traditional-layout .product-filter-nav {
    position: relative;
    z-index: 2;
    max-width: 1480px;
    margin: -118px auto 4rem;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 30px 90px rgba(15, 39, 24, 0.18);
}

.product-traditional-layout .product-filter-nav button {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 96px;
    border: 0;
    border-right: 1px solid var(--k51comm-border);
    background: #fff;
    color: var(--k51comm-heading);
    font-size: 1.02rem;
    padding: 0 1rem;
}

.product-traditional-layout .product-filter-nav button:last-child {
    border-right: 0;
}

.product-traditional-layout .product-filter-nav button:hover,
.product-traditional-layout .product-filter-nav button.active {
    background: var(--k51comm-primary);
    color: #fff;
}

.product-traditional-layout .filterable-product-grid {
    max-width: 1480px;
    margin: 0 auto;
}

.product-traditional-layout .filterable-product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-traditional-layout .filterable-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 90px rgba(15, 39, 24, 0.15);
}

.product-traditional-layout .source-product-image {
    aspect-ratio: 4 / 3;
    padding: 0.75rem;
}

.product-traditional-layout .source-product-content h3 {
    min-height: 3.1em;
    font-size: 1.22rem;
    line-height: 1.42;
}

.source-category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--k51comm-border);
}

.source-category-heading span {
    display: block;
    color: var(--k51comm-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.source-category-heading h2 {
    margin: 0.35rem 0 0.5rem;
    color: var(--k51comm-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -0.04em;
}

.source-category-heading p {
    margin: 0;
    color: var(--k51comm-text-light);
    line-height: 1.7;
}

.source-category-heading > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 1.25rem;
    background: var(--k51comm-primary);
    color: #fff;
    font-weight: 800;
}

.source-category-heading > a:hover {
    background: var(--k51comm-secondary);
    color: #fff;
}

.enterprise-products-grid,
.enterprise-news-grid {
    align-items: stretch;
}

.product-list-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-list-card .product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-list-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-list-card:hover .product-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--k51comm-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
}

.product-summary,
.news-excerpt {
    color: var(--k51comm-text-light);
    line-height: 1.7;
}

.product-list-card .read-more,
.news-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    color: var(--k51comm-primary);
    font-weight: 700;
}

.product-detail-cta,
.post-detail-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(35, 91, 56, 0.1), rgba(212, 166, 74, 0.16));
    border: 1px solid rgba(35, 91, 56, 0.12);
}

.product-detail-cta span,
.post-detail-cta strong {
    display: block;
    color: var(--k51comm-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-detail-cta p,
.post-detail-cta p {
    margin: 0;
    color: var(--k51comm-text-light);
}

.related-products-section {
    padding-top: 1rem;
}

.related-products-grid .product-list-card:nth-child(n+4) {
    display: none;
}

.source-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.source-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 39, 24, 0.09);
}

.source-product-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f1e8;
}

.source-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.source-product-card:hover .source-product-image img {
    transform: scale(1.06);
}

.source-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.65rem;
}

.source-product-content h3 {
    font-size: 1.18rem;
    margin-bottom: 0.6rem;
}

.source-product-content p {
    color: var(--k51comm-text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

.source-product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.source-link {
    color: var(--k51comm-text-light);
    font-size: 0.85rem;
}

.enterprise-news-grid .news-card,
.enterprise-products-grid .product-list-card {
    height: 100%;
}

.enterprise-news-grid .news-content,
.enterprise-products-grid .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (max-width: 768px) {
    .product-center-hero {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        border-radius: 22px;
    }

    .product-center-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .product-center-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-center-stats div {
        padding: 1rem 0.75rem;
    }

    .product-center-stats strong {
        font-size: 1.65rem;
    }

    .product-center-stats span {
        font-size: 0.78rem;
    }

    .all-product-items-wrap {
        padding: 2.5rem 1rem 1rem;
        border-radius: 20px;
    }

    .categorized-product-wrap .source-product-section {
        padding: 1.25rem;
    }

    .product-filter-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: visible;
        padding-bottom: 0;
        margin: 0 auto 1.5rem;
    }

    .product-filter-nav button {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0.4rem 0.85rem;
        border-radius: 20px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .product-traditional-layout .product-filter-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: visible;
        margin: 0 auto 1.5rem;
        background: transparent;
        box-shadow: none;
    }

    .product-traditional-layout .product-filter-nav button {
        min-height: 36px;
    }

    .filterable-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .product-traditional-layout .xyj-reference-banner,
    .product-traditional-layout .xyj-reference-banner-layer {
        min-height: auto;
    }

    .product-traditional-layout .xyj-reference-banner-layer {
        min-height: auto;
        padding: 2rem 1.25rem;
    }

    .product-filter-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-filter-toolbar strong {
        display: none;
    }

    .source-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .source-category-heading > a {
        width: 100%;
    }

    .product-category-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: visible;
        padding-bottom: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .product-category-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0.4rem 0.85rem;
        border: 1px solid var(--k51comm-border);
        border-radius: 20px;
        background: #fff;
        color: var(--k51comm-heading);
        font-size: 0.82rem;
        font-weight: 500;
        white-space: nowrap;
        text-decoration: none;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .product-category-nav a.active,
    .product-category-nav a:hover {
        background: var(--k51comm-primary);
        color: #fff;
        border-color: var(--k51comm-primary);
    }

    .source-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .product-detail-cta,
    .post-detail-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.5rem;
    }

    .product-detail-cta .btn,
    .post-detail-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .source-product-grid {
        grid-template-columns: 1fr;
    }

    .filterable-product-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   News Page Layouts (self-contained, no 100vw tricks)
   ===================================================== */

/* Override .has-sidebar body grid - enterprise pages have their own internal sidebar */
 body.has-sidebar:has(.enterprise-content-area) {
     display: block;
 }

/* Remove top padding when enterprise page, keep bottom spacing */
.site-content:has(.enterprise-content-area) {
    padding-top: var(--k51comm-header-h, 60px);
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .site-content:has(.enterprise-content-area) {
        padding-top: var(--k51comm-header-h, 60px);
        padding-bottom: 2.5rem;
    }
}

/* ========== Banner (full-width, centered safe) ========== */
.xyj-reference-banner {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    min-height: var(--k51comm-banner-height, 450px);
    background: #1a1a2e;
}

.xyj-reference-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xyj-reference-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 15, 28, 0.88), rgba(15, 30, 50, 0.45) 54%, rgba(15, 30, 50, 0.16));
}

.xyj-reference-banner-layer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    min-height: var(--k51comm-banner-height, 450px);
    margin: 0 auto;
    padding: 4rem 1rem;
    color: #fff;
}

.xyj-reference-banner-layer strong {
    max-width: 820px;
    font-size: clamp(3rem, 5.8vw, 6.25rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.xyj-reference-banner-layer span {
    margin-top: 1.35rem;
    color: #f4d28a;
    font-size: clamp(1rem, 1.4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

/* ========== Breadcrumb ========== */
.xyj-reference-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 1.5rem;
    font-size: 0.85rem;
    color: var(--k51comm-text-light);
}

.xyj-reference-breadcrumb a {
    color: var(--k51comm-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.xyj-reference-breadcrumb a:hover {
    color: var(--k51comm-primary);
}

.xyj-reference-breadcrumb span:last-child {
    color: var(--k51comm-heading);
    font-weight: 600;
}

/* ========== Category Nav ========== */
.xyj-reference-nav,
.xyj-reference-page + .product-category-nav,
.xyj-reference-banner + .product-category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 auto 2rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.xyj-reference-nav a,
.xyj-reference-banner + .product-category-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-right: 1px solid var(--k51comm-border);
    border-radius: 0;
    background: #fff;
    color: var(--k51comm-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0 1.4rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.xyj-reference-nav a:last-child,
.xyj-reference-banner + .product-category-nav a:last-child {
    border-right: 0;
}

.xyj-reference-nav a:hover,
.xyj-reference-nav a.active,
.xyj-reference-banner + .product-category-nav a:hover,
.xyj-reference-banner + .product-category-nav a.active {
    background: var(--k51comm-primary);
    color: #fff;
}

/* ========== News Grid Layout ========== */
.xyj-reference-news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

.xyj-reference-news-main {
    min-width: 0;
}

/* Article count */
.xyj-reference-news-counter {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--k51comm-primary);
}

.xyj-reference-news-counter span {
    color: var(--k51comm-text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* News list */
.xyj-reference-news-list {
    display: grid;
    gap: 1.75rem;
}

/* News card */
.xyj-reference-news-item {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--k51comm-border);
    border-radius: 8px;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xyj-reference-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.xyj-reference-news-image {
    position: relative;
    display: block;
    min-height: 220px;
    overflow: hidden;
    background: var(--k51comm-bg-light);
}

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

.xyj-reference-news-item:hover .xyj-reference-news-image img {
    transform: scale(1.06);
}

.xyj-reference-news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background: var(--k51comm-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    z-index: 1;
}

.xyj-reference-news-content {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.75rem;
}

.xyj-reference-news-meta-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: var(--k51comm-text-light);
}

.xyj-reference-news-meta-top i {
    margin-right: 0.3rem;
    color: var(--k51comm-primary);
}

.xyj-reference-news-cat {
    color: var(--k51comm-primary);
    font-weight: 600;
    text-decoration: none;
}

.xyj-reference-news-cat:hover {
    color: var(--k51comm-primary-dark);
}

.xyj-reference-news-content h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    line-height: 1.45;
}

.xyj-reference-news-content h3 a {
    color: var(--k51comm-heading);
    text-decoration: none;
    transition: color 0.2s;
}

.xyj-reference-news-content h3 a:hover {
    color: var(--k51comm-primary);
}

.xyj-reference-news-content > p {
    flex: 1;
    margin: 0;
    color: var(--k51comm-text-light);
    font-size: 0.92rem;
    line-height: 1.7;
}

.xyj-reference-news-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--k51comm-border);
}

.xyj-news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--k51comm-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.xyj-news-read-more:hover {
    gap: 0.75rem;
    color: var(--k51comm-primary-dark);
}

/* ========== Pagination ========== */
.xyj-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--k51comm-border);
    text-align: center;
}

.xyj-pagination .page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.xyj-pagination .page-numbers li {
    display: inline-block;
}

.xyj-pagination .page-numbers > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.65rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 6px;
    background: #fff;
    color: var(--k51comm-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.xyj-pagination .page-numbers .current {
    border-color: var(--k51comm-primary);
    background: var(--k51comm-primary);
    color: #fff;
}

.xyj-pagination .page-numbers a:hover {
    border-color: var(--k51comm-primary);
    color: var(--k51comm-primary);
}

.xyj-pagination .page-numbers .dots {
    border-color: transparent;
    background: transparent;
}

.xyj-pagination .page-numbers .prev,
.xyj-pagination .page-numbers .next {
    font-size: 1rem;
}

/* ========== Sidebar ========== */
.xyj-news-sidebar {
    position: sticky;
    top: 100px;
}

.xyj-sidebar-widget {
    margin-bottom: 1.75rem;
    padding: 1.5rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 8px;
    background: #fff;
}

.xyj-sidebar-widget:last-child {
    margin-bottom: 0;
}

.xyj-sidebar-title {
    position: relative;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--k51comm-heading);
    border-bottom: 2px solid var(--k51comm-bg-light);
}

.xyj-sidebar-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: var(--k51comm-primary);
}

/* Sidebar search */
.xyj-sidebar-search {
    display: flex;
    border: 1px solid var(--k51comm-border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.xyj-sidebar-search:focus-within {
    border-color: var(--k51comm-primary);
}

.xyj-sidebar-search input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 0;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
}

.xyj-sidebar-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    border: 0;
    background: var(--k51comm-primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.xyj-sidebar-search button:hover {
    background: var(--k51comm-primary-dark);
}

/* Sidebar category & recent lists */
.xyj-sidebar-cat-list,
.xyj-sidebar-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xyj-sidebar-cat-list li,
.xyj-sidebar-recent-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--k51comm-border);
}

.xyj-sidebar-cat-list li:last-child,
.xyj-sidebar-recent-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.xyj-sidebar-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--k51comm-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.xyj-sidebar-cat-list a:hover {
    color: var(--k51comm-primary);
}

.xyj-sidebar-cat-list a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    border-radius: 11px;
    background: var(--k51comm-bg-light);
    color: var(--k51comm-primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.xyj-sidebar-recent-list a {
    display: block;
    color: var(--k51comm-text);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.2s;
}

.xyj-sidebar-recent-list a:hover {
    color: var(--k51comm-primary);
}

.xyj-sidebar-recent-list time {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: var(--k51comm-text-light);
}

/* Sidebar company info card */
.xyj-sidebar-company-card {
    border: 0;
    padding: 0;
    background: transparent;
}

.xyj-company-card-inner {
    padding: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #173822 0%, #235b38 100%);
    color: #fff;
}

.xyj-company-card-inner h4 {
    margin: 0 0 1rem;
    color: #f4d28a;
    font-size: 1.1rem;
    font-weight: 700;
}

.xyj-company-card-inner p {
    margin: 0 0 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.9;
}

.xyj-sidebar-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    background: #f4d28a;
    color: #173822;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.xyj-sidebar-contact-btn:hover {
    background: #fff;
}

.xyj-company-contact-info {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.xyj-company-contact-info p {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.xyj-company-contact-info p:last-child {
    margin-bottom: 0;
}

.xyj-company-contact-info i {
    margin-right: 0.4rem;
    width: 16px;
    text-align: center;
}

.no-data {
    color: var(--k51comm-text-light);
    font-size: 0.88rem;
}

/* =====================================================
   News Detail Page
   ===================================================== */

/* ----- Hero: tall image background with gradient overlay ----- */
.nd-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: var(--k51comm-banner-height, 450px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1a1a2e;
}

.nd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nd-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.nd-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        0deg,
        rgba(10, 10, 20, 0.88) 0%,
        rgba(10, 10, 20, 0.45) 50%,
        rgba(10, 10, 20, 0.15) 100%
    );
}

.nd-hero-plain {
    min-height: 220px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.nd-hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 4rem 0 3.5rem;
    color: #fff;
}

.nd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    opacity: 0.75;
}

.nd-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nd-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.nd-cat {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.28rem 0.85rem;
    border: 1px solid rgba(244, 210, 138, 0.6);
    border-radius: 3px;
    color: #f4d28a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.nd-cat:hover {
    background: rgba(244, 210, 138, 0.15);
    border-color: #f4d28a;
}

.nd-title {
    margin: 0 0 1rem;
    max-width: 860px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.22;
    color: #fff;
}

.nd-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.88rem;
    opacity: 0.7;
}

.nd-meta i {
    margin-right: 0.4rem;
}

/* ----- Content layout: main + sidebar ----- */
.nd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
    align-items: start;
}

.nd-main {
    min-width: 0;
}

.nd-body {
    color: #333;
    font-size: 1.02rem;
    line-height: 1.9;
}

.nd-body > p {
    margin-bottom: 1.3rem;
}

.nd-body h2,
.nd-body h3,
.nd-body h4 {
    margin: 2rem 0 0.8rem;
    color: var(--k51comm-heading);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.nd-body h2 { font-size: 1.5rem; }
.nd-body h3 { font-size: 1.25rem; }
.nd-body h4 { font-size: 1.1rem; }

.nd-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.nd-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--k51comm-primary);
    background: var(--k51comm-bg-light);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}

.nd-body ul,
.nd-body ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.nd-body li {
    margin-bottom: 0.5rem;
}

/* ----- Tags ----- */
.nd-tags {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nd-tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--k51comm-heading);
    margin-right: 0.25rem;
}

.nd-tags a {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    background: var(--k51comm-bg-light);
    color: var(--k51comm-text);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nd-tags a:hover {
    background: rgba(212, 166, 74, 0.15);
    color: #b8861e;
}

/* ----- Prev / Next pager ----- */
.nd-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.nd-pager-prev,
.nd-pager-next {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #eee;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s;
    background: #fff;
}

.nd-pager-prev:hover,
.nd-pager-next:hover {
    border-color: var(--k51comm-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.nd-pager-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--k51comm-bg-light);
    color: var(--k51comm-primary);
    font-size: 1.1rem;
    transition: background 0.2s;
}

.nd-pager-prev:hover .nd-pager-arrow,
.nd-pager-next:hover .nd-pager-arrow {
    background: var(--k51comm-primary);
    color: #fff;
}

.nd-pager-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.nd-pager-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--k51comm-text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nd-pager-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--k51comm-heading);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-pager-next {
    text-align: right;
    justify-content: flex-end;
}

.nd-pager-empty {
    visibility: hidden;
}

/* ----- Sidebar ----- */
.nd-sidebar {
    position: sticky;
    top: 100px;
}

.nd-sidebar-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 8px;
    color: var(--k51comm-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nd-sidebar-back:hover {
    border-color: var(--k51comm-primary);
    color: var(--k51comm-primary);
    background: rgba(212, 166, 74, 0.04);
}

.nd-sidebar-block {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.nd-sidebar-heading {
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--k51comm-bg-light);
    font-size: 1rem;
    font-weight: 800;
    color: var(--k51comm-heading);
    letter-spacing: -0.01em;
}

/* Related list */
.nd-related-list {
    display: flex;
    flex-direction: column;
}

.nd-related-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: gap 0.2s;
}

.nd-related-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.nd-related-item:hover .nd-related-title {
    color: var(--k51comm-primary);
}

.nd-related-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.nd-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nd-related-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.nd-related-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--k51comm-heading);
    line-height: 1.45;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-related-date {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--k51comm-text-light);
}

/* ----- CTA ----- */
.nd-cta {
    padding: 3rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.nd-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nd-cta-text strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #f4d28a;
}

.nd-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 520px;
}

.nd-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    background: #f4d28a;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.nd-cta-btn:hover {
    background: #fff;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* =====================================================
   Product Detail Page - Enterprise Redesign
   ===================================================== */

/* ----- Hero Banner with product image background ----- */
.product-hero {
    position: relative;
    width: 100vw;
    margin: 0 calc(-50vw + 50%);
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0f2718;
}

.product-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.product-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(7, 23, 14, 0.4) 0%,
        rgba(9, 33, 20, 0.7) 50%,
        rgba(7, 23, 14, 0.92) 100%
    );
}

.product-hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
    color: #fff;
}

.product-hero-cat {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(244, 210, 138, 0.5);
    border-radius: 3px;
    background: rgba(244, 210, 138, 0.12);
    color: #f4d28a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-hero-title {
    margin: 0 0 1rem;
    max-width: 800px;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.product-hero-bread {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.product-hero-bread a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.product-hero-bread a:hover {
    color: #f4d28a;
}

/* ----- Info Section ----- */
.product-info-section {
    padding: 3rem 0 5rem;
    background: #fff;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Main image */
.product-main-img-wrap {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: var(--k51comm-bg-light);
}

.product-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Details column */
.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.product-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    background: var(--k51comm-bg-light);
    color: var(--k51comm-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.product-meta-tag:hover {
    background: var(--k51comm-primary);
    color: #fff;
}

.product-info-title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--k51comm-heading);
}

.product-description {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-left: 4px solid var(--k51comm-primary);
    background: var(--k51comm-bg-light);
    border-radius: 0 8px 8px 0;
}

.product-description p {
    margin: 0 0 0.75rem;
    color: var(--k51comm-text);
    font-size: 0.95rem;
    line-height: 1.8;
}

.product-description p:last-child {
    margin-bottom: 0;
}

/* Specs */
.product-specs {
    margin-bottom: 2rem;
    padding: 1.75rem;
    border: 1px solid var(--k51comm-border);
    border-radius: 10px;
    background: #fafafa;
}

.product-specs h4 {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--k51comm-heading);
}

.specs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem;
}

.spec-item i {
    flex: 0 0 auto;
    width: 20px;
    margin-top: 2px;
    color: var(--k51comm-primary);
    font-size: 0.95rem;
    text-align: center;
}

.spec-item span {
    color: var(--k51comm-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* CTA Bar */
.product-action-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    border: 0;
    border-radius: 6px;
    background: var(--k51comm-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.25);
}

.btn-product-cta:hover {
    background: var(--k51comm-primary-dark);
    transform: translateY(-1px);
    color: #fff;
}

.btn-product-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.5rem;
    border: 2px solid var(--k51comm-border);
    border-radius: 6px;
    background: #fff;
    color: var(--k51comm-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s;
}

.btn-product-call:hover {
    border-color: var(--k51comm-primary);
    color: var(--k51comm-primary);
}

/* ----- Gallery Section (vertical stitched product images) ----- */
.product-gallery-section {
    padding: 5rem 0;
    background: var(--k51comm-bg-light);
}

.gallery-section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-section-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 1rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--k51comm-heading);
    letter-spacing: -0.02em;
}

.gallery-section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--k51comm-primary);
    border-radius: 2px;
}

.product-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 860px;
    margin: 2rem auto 0;
}

.gallery-item {
    display: block;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    line-height: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Responsive ----- */
@media (max-width: 992px) {
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-main-img-wrap {
        position: relative;
        top: auto;
    }

    .specs-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-hero-title {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }

    .product-info-section {
        padding: 2rem 0 3rem;
    }

    .product-action-bar {
        flex-direction: column;
    }

    .btn-product-cta,
    .btn-product-call {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
}

/* ========== Product section (kept for compatibility) ========== */
.xyj-reference-banner + .product-category-nav + .source-product-section {
    margin-top: 0;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

.xyj-reference-banner + .product-category-nav + .source-product-section .section-header.compact {
    margin-bottom: 2rem;
}

.product-detail-description {
    max-width: 1480px;
    margin: 5rem auto 0;
    padding: 4rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 39, 24, 0.1);
}

.product-detail-description .wp-block-image,
.product-detail-description figure {
    margin: 1.5rem 0;
}

.product-detail-description img {
    border-radius: 14px;
}

@media (max-width: 992px) {
    .xyj-reference-news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .xyj-news-sidebar {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .product-center-hero {
        width: auto;
        margin: -2rem -1rem 0;
        padding: 3.5rem 1.25rem 4rem;
    }

    .xyj-reference-nav,
    .xyj-reference-banner + .product-category-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: visible;
        margin: 0 0 1.5rem;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .xyj-reference-nav a,
    .xyj-reference-banner + .product-category-nav a {
        display: inline-flex;
        align-items: center;
        min-height: 36px;
        padding: 0.4rem 0.85rem;
        border: 1px solid var(--k51comm-border);
        border-right: 1px solid var(--k51comm-border);
        border-radius: 20px;
        background: #fff;
        color: var(--k51comm-heading);
        font-size: 0.82rem;
        font-weight: 500;
        white-space: nowrap;
        text-decoration: none;
    }

    .xyj-reference-nav a:last-child,
    .xyj-reference-banner + .product-category-nav a:last-child {
        border-right: 1px solid var(--k51comm-border);
    }

    .xyj-reference-nav a:hover,
    .xyj-reference-nav a.active,
    .xyj-reference-banner + .product-category-nav a:hover,
    .xyj-reference-banner + .product-category-nav a.active {
        background: var(--k51comm-primary);
        color: #fff;
        border-color: var(--k51comm-primary);
    }

    .xyj-reference-news-item {
        grid-template-columns: 1fr;
    }

    .xyj-reference-news-image {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .xyj-reference-news-content {
        padding: 1.25rem;
    }

    .product-detail-description {
        padding: 1.25rem;
        border-radius: 18px;
    }
}

/* ========== News Detail responsive ========== */
@media (max-width: 992px) {
    .nd-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nd-sidebar {
        position: static;
    }

    .nd-hero {
        min-height: 280px;
    }

    .nd-hero-body {
        padding: 3rem 0 2.5rem;
    }
}

@media (max-width: 768px) {
    .nd-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    .nd-breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .nd-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .nd-layout {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .nd-body {
        font-size: 0.95rem;
    }

    .nd-pager {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .nd-pager-prev,
    .nd-pager-next {
        padding: 1rem;
    }

    .nd-pager-arrow {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .nd-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .nd-related-thumb {
        width: 48px;
        height: 48px;
    }
}

/* =====================================================
   About Page
   ===================================================== */

/* ----- Hero ----- */
.ab-hero {
    position: relative;
    width: 100vw;
    margin: 0 calc(-50vw + 50%);
    min-height: var(--k51comm-banner-height, 450px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 80%);
}

.ab-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ab-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

.ab-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 15, 28, 0.85) 0%,
        rgba(15, 30, 50, 0.5) 50%,
        rgba(10, 15, 28, 0.3) 100%
    );
}

.ab-hero-body {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem;
}

.ab-hero-sub {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(244, 210, 138, 0.9);
}

.ab-hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.ab-hero-desc {
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    opacity: 0.8;
    font-weight: 400;
}

/* ----- Intro Section ----- */
.ab-intro {
    padding: 5rem 0;
    background: #fff;
}

.ab-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ab-section-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.2rem 0.75rem;
    border-radius: 3px;
    background: rgba(212, 166, 74, 0.12);
    color: #b8861e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ab-intro-text h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--k51comm-heading);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ab-intro-body {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.85;
}

.ab-intro-body p {
    margin-bottom: 1rem;
}

.ab-brief-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ab-brief-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--k51comm-primary);
    border-radius: 8px;
    background: #f8f4ea;
    color: #444;
}

.ab-brief-row strong {
    color: var(--k51comm-heading);
}

.ab-brief-row span {
    white-space: nowrap;
}

.ab-intro-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    line-height: 0;
}

.ab-intro-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ab-intro-image-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--k51comm-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ab-intro-image-badge strong {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.ab-intro-image-badge span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* ----- Stats ----- */
.ab-stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #173822 0%, #1f4d2e 100%);
}

.ab-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.ab-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ab-stat-num {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #f4d28a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ab-stat-unit {
    font-size: 0.5em;
    font-weight: 700;
}

.ab-stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* ----- Values ----- */
.ab-values {
    padding: 5rem 0;
    background: var(--k51comm-bg-light);
}

.ab-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ab-section-header .ab-section-label {
    margin-bottom: 1rem;
}

.ab-section-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: var(--k51comm-heading);
    letter-spacing: -0.02em;
}

.ab-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.ab-value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.ab-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ab-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 166, 74, 0.15), rgba(212, 166, 74, 0.06));
    color: var(--k51comm-primary);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.ab-value-card h4 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--k51comm-heading);
}

.ab-value-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--k51comm-text-light);
    line-height: 1.7;
}

/* ----- CTA ----- */
.ab-cta {
    padding: 3.5rem 0;
    background: #fff;
}

.ab-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.ab-cta-text h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f4d28a;
}

.ab-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 520px;
}

.ab-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    background: #f4d28a;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.ab-cta-btn:hover {
    background: #fff;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* ========== About page responsive ========== */
@media (max-width: 992px) {
    .ab-intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ab-intro-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .ab-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ab-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .ab-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .ab-hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }

    .ab-intro {
        padding: 3rem 0;
    }

    .ab-values {
        padding: 3rem 0;
    }

    .ab-values-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .ab-stats {
        padding: 2.5rem 0;
    }

    .ab-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .ab-stat-num {
        font-size: 1.8rem;
    }

    .ab-cta-inner {
        padding: 1.5rem;
    }
}

/* =====================================================
   Contact Page
   ===================================================== */

/* ----- Hero ----- */
.ct-hero {
    position: relative;
    width: 100vw;
    margin: 0 calc(-50vw + 50%);
    min-height: var(--k51comm-banner-height, 450px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 15, 28, 0.85) 0%,
        rgba(15, 30, 50, 0.5) 50%,
        rgba(10, 15, 28, 0.3) 100%
    );
}

.ct-hero-body {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem;
}

.ct-hero-sub {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 210, 138, 0.85);
}

.ct-hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.ct-hero-desc {
    margin: 0;
    font-size: 1.05rem;
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto;
}

/* ----- Sidebar contact list ----- */
.ct-side-contact-list {
    padding: 0 !important;
    overflow: hidden;
}

.ct-side-contact-list .ct-info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0 0.85rem 0.5rem;
}

.ct-side-contact-list .ct-info-row + .ct-info-row {
    border-top: 1px solid #f5f5f5;
}

.ct-side-contact-list .ct-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(9, 48, 40, 0.06);
    color: #093028;
    font-size: 0.9rem;
    margin-top: 2px;
}

.ct-side-contact-list .ct-info-text {
    min-width: 0;
}

.ct-side-contact-list .ct-info-text h4 {
    margin: 0 0 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--k51comm-text-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ct-side-contact-list .ct-info-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--k51comm-heading);
    font-weight: 600;
    line-height: 1.5;
}

.ct-side-contact-list .ct-info-text p a {
    color: var(--k51comm-heading);
    text-decoration: none;
}

.ct-side-contact-list .ct-info-text p a:hover {
    color: var(--k51comm-primary);
}

.ct-side-contact-list .ct-text-block {
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, rgba(9, 48, 40, 0.04), rgba(196, 136, 43, 0.06));
    border-left: 3px solid var(--k51comm-primary);
}

.ct-side-contact-list .ct-text-block p {
    position: relative;
    margin: 0;
    padding: 0.85rem 0 0.85rem 2.65rem;
    color: var(--k51comm-heading);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.65;
    word-break: break-word;
}

.ct-side-contact-list .ct-text-block p + p {
    border-top: 1px solid rgba(9, 48, 40, 0.08);
}

.ct-side-contact-list .ct-text-block p::before {
    content: "\f05a";
    position: absolute;
    top: 0.85rem;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(9, 48, 40, 0.08);
    color: #093028;
    font-family: "Font Awesome 5 Free";
    font-size: 0.85rem;
    font-weight: 900;
}

.ct-side-contact-list .ct-text-block p:nth-child(1)::before {
    content: "\f095";
}

.ct-side-contact-list .ct-text-block p:nth-child(2)::before {
    content: "\f0e0";
}

.ct-side-contact-list .ct-text-block p:nth-child(3)::before {
    content: "\f3c5";
}

.ct-side-contact-list .ct-text-block p:nth-child(4)::before {
    content: "\f017";
}

.ct-info-sep {
    display: inline-block;
    margin: 0 0.5rem;
    color: #ddd;
    font-weight: 300;
}

/* ----- Main content with form ----- */
.ct-main {
    padding: 4rem 0;
    background: var(--k51comm-bg-light);
}

.ct-main-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
}

.ct-form-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.ct-form-header {
    margin-bottom: 2rem;
}

.ct-form-header h2 {
    margin: 0.5rem 0 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--k51comm-heading);
}

/* Native form styles */
.ct-native-form .ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

.ct-form-group {
    margin-bottom: 1.25rem;
}

.ct-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--k51comm-heading);
    margin-bottom: 0.3rem;
    display: block;
}

.ct-native-form input[type="text"],
.ct-native-form input[type="email"],
.ct-native-form input[type="tel"],
.ct-native-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    font-family: inherit;
    box-sizing: border-box;
}

.ct-native-form input:focus,
.ct-native-form textarea:focus {
    outline: none;
    border-color: var(--k51comm-primary);
    box-shadow: 0 0 0 3px rgba(212, 166, 74, 0.12);
    background: #fff;
}

.ct-native-form textarea {
    min-height: 140px;
    resize: vertical;
}

.ct-native-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.92rem;
    background: #fafafa;
    color: var(--k51comm-text);
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23666'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.ct-native-form select:focus {
    outline: none;
    border-color: var(--k51comm-primary);
    box-shadow: 0 0 0 3px rgba(212, 166, 74, 0.12);
    background-color: #fff;
}

/* Checkboxes */
.ct-form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ct-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--k51comm-text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.ct-checkbox:hover {
    border-color: var(--k51comm-primary);
}

.ct-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--k51comm-primary);
    cursor: pointer;
}

.ct-checkbox:has(input:checked) {
    border-color: var(--k51comm-primary);
    background: rgba(212, 166, 74, 0.08);
}

/* Captcha */
.ct-captcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ct-captcha input[type="text"] {
    flex: 1;
    min-width: 0;
}

.ct-captcha-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eee, #f5f5f5);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--k51comm-heading);
    user-select: none;
    flex-shrink: 0;
}

.ct-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #093028 0%, #1a5c3e 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ct-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 48, 40, 0.3);
}

.ct-form-success {
    text-align: center;
    padding: 2rem;
    color: #093028;
}

.ct-form-success i {
    display: block;
    font-size: 3rem;
    color: #1a5c3e;
    margin-bottom: 1rem;
}

.ct-form-success strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ----- Side cards ----- */
.ct-side-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
}

.ct-side-card h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--k51comm-heading);
}

.ct-side-card h4 i {
    color: var(--k51comm-primary);
    margin-right: 0.4rem;
}

.ct-side-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--k51comm-text-light);
    line-height: 1.7;
}

.ct-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ct-product-tags span {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: var(--k51comm-bg-light);
    color: var(--k51comm-text-light);
    font-size: 0.76rem;
    font-weight: 600;
}

/* =====================================================
   Franchise Page
   ===================================================== */

/* ----- Hero ----- */
.fz-hero {
    position: relative;
    width: 100vw;
    margin: 0 calc(-50vw + 50%);
    min-height: var(--k51comm-banner-height, 450px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.fz-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 15, 28, 0.85) 0%,
        rgba(15, 30, 50, 0.5) 50%,
        rgba(10, 15, 28, 0.3) 100%
    );
}

.fz-hero-body {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 4rem 1rem;
}

.fz-hero-sub {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.fz-hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.fz-hero-desc {
    margin: 0 auto;
    font-size: 1.05rem;
    opacity: 0.8;
    max-width: 560px;
}

/* ----- Advantages ----- */
.fz-advantages {
    padding: 5rem 0;
    background: #fff;
}

.fz-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.fz-adv-card {
    position: relative;
    padding: 2rem 1.5rem;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.fz-adv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--k51comm-primary);
}

.fz-adv-num {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #5c3d0e, #c4882b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.fz-adv-card h4 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--k51comm-heading);
}

.fz-adv-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--k51comm-text-light);
    line-height: 1.7;
}

/* ----- Process Steps ----- */
.fz-process {
    padding: 5rem 0;
    background: var(--k51comm-bg-light);
}

.fz-process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.fz-step {
    text-align: center;
    flex: 1;
}

.fz-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c3d0e, #c4882b);
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(92, 61, 14, 0.3);
}

.fz-step-circle span {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

.fz-step h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--k51comm-heading);
}

.fz-step p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--k51comm-text-light);
    line-height: 1.6;
    padding: 0 0.5rem;
}

.fz-step-line {
    flex-shrink: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c4882b, #5c3d0e);
    margin-top: 32px;
    opacity: 0.4;
}

/* ----- CTA ----- */
.fz-cta {
    padding: 3.5rem 0;
}

.fz-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.fz-cta-text h3 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f4d28a;
}

.fz-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 520px;
}

.fz-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    background: #f4d28a;
    color: #1a1a2e;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.fz-cta-btn:hover {
    background: #fff;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* ========== Contact & Franchise responsive ========== */
@media (max-width: 992px) {
    .ct-main-grid {
        grid-template-columns: 1fr;
    }

    .fz-adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fz-process-steps {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .fz-step-line {
        display: none;
    }

    .fz-step {
        flex: 0 0 calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .ct-side-contact-list .ct-info-row {
        padding: 0.75rem 0;
    }

    .ct-side-contact-list .ct-text-block {
        padding: 1rem;
    }

    .ct-side-contact-list .ct-text-block p {
        padding-left: 2.35rem;
        font-size: 0.86rem;
    }

    .ct-side-contact-list .ct-text-block p::before {
        width: 28px;
        height: 28px;
        font-size: 0.78rem;
    }

    .ct-form-wrap {
        padding: 1.5rem;
    }

    .fz-adv-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .fz-process-steps {
        flex-direction: column;
        max-width: 320px;
        margin: 0 auto;
    }

    .fz-step {
        flex: 1;
    }

    .fz-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
}

/* ──────────────────────────────────────────────────
   Mobile Spacing & Layout Refinements
   ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Reduce large grid gaps uniformly */
    .about-grid,
    .contact-grid,
    .ab-intro-grid {
        gap: 1.5rem;
    }

    /* Footer tighter on mobile */
    .site-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Product detail description narrower margins */
    .product-detail-description {
        margin: 2.5rem auto 0;
        padding: 1.5rem;
        border-radius: 14px;
    }

    /* Reduce features section card spacing */
    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* About section stats */
    .ab-stats-grid {
        gap: 1rem;
    }

    .ab-stat-num {
        font-size: 1.5rem;
    }

    /* News cards */
    .news-grid {
        gap: 1.25rem;
    }

    /* Products grid */
    .products-grid {
        gap: 1.25rem;
    }

    /* Floating bar smaller */
    .floating-bar a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    /* Smaller buttons on very small screens */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
    }

    .footer-grid {
        gap: 1rem;
    }
}

/* ──────────────────────────────────────────────────
   Mobile: Inner Page Banner — unified reset
   ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* === All banner containers: reset desktop 100vw === */
    .ab-hero,
    .nd-hero,
    .product-hero,
    .ct-hero,
    .fz-hero,
    .product-plain-banner {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    /* === Contact & Franchise: explicit min-height (CSS background-image, no <img>) === */
    .ct-hero,
    .fz-hero {
        min-height: 220px;
        display: flex;
        align-items: center;
    }

    /* === All banner <img>: back to doc flow === */
    .ab-hero-bg img,
    .nd-hero-bg img,
    .product-hero-bg img,
    .product-plain-banner img {
        position: static !important;
        display: block;
        width: 100%;
        height: auto;
        filter: none;
    }

    /* === bg wrappers: relative so absolute overlay can work === */
    .ab-hero-bg,
    .nd-hero-bg,
    .product-hero-bg {
        position: relative;
    }

    /* === Text bodies: absolute overlay centered === */
    .ab-hero-body,
    .nd-hero-body,
    .product-hero-body,
    .ct-hero-body,
    .fz-hero-body {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        max-width: none;
        padding: 1rem;
    }

    /* === Overlays: keep absolute with proper z-index === */
    .ab-hero-overlay,
    .nd-hero-overlay,
    .product-hero-overlay,
    .ct-hero-overlay,
    .fz-hero-overlay {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.2) 60%,
            rgba(0, 0, 0, 0.0) 100%
        );
    }

    /* === Title sizes === */
    .ab-hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
    .ct-hero-title,
    .fz-hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .product-hero-title {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }
}

/* ──────────────────────────────────────────────────
   Mobile: xyj-reference-banner (News / Product Category)
   Same pattern as .ab-hero — img doc-flow, overlay + layer absolute
   ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .xyj-reference-banner,
    .product-traditional-layout .xyj-reference-banner {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-height: 220px;
        overflow: hidden;
    }

    .xyj-reference-banner img {
        position: static !important;
        display: block;
        width: 100%;
        height: auto;
        filter: none;
    }

    .xyj-reference-banner::after {
        z-index: 1;
    }

    .xyj-reference-banner-layer {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        max-width: none;
        margin: 0;
        min-height: 0;
        padding: 1rem;
    }

    .xyj-reference-banner-layer strong {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}
