/*
Theme Name: Moogle Stage Lighting
Theme URI: https://moogle.mooglelite.com/
Author: Moogle
Author URI: https://mooglelite.com/
Description: Professional stage lighting company WordPress theme. Features full-screen banner slider, video gallery, news section, and responsive design.
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moogle-stage-lighting
Tags: one-column, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   BASE RESET & COMMON STYLES
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; height: 100%; }
body { 
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; 
    color: #595757; 
    line-height: 1.2; 
    min-height: 100%; 
    background-color: #fff; 
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; vertical-align: middle; height: auto; }
ul, li { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; }

/* ============================================================
   HEADER - Site-wide
   ============================================================ */
.head_pc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}
.head_pc.scrolled {
    background-color: rgba(4, 0, 0, 1);
}

.hc_box {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hc_box .logo {
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}
.hc_box .logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.hc_box .ul1 {
    display: flex;
}
.hc_box .ul1 .li1 {
    position: relative;
}
.hc_box .ul1 .a1 {
    line-height: 70px;
    display: block;
    padding: 0 15px;
    color: #fff;
    white-space: nowrap;
    position: relative;
}
.hc_box .ul1 .li1:hover .a1::before,
.hc_box .ul1 .li1.current-menu-item .a1::before,
.hc_box .ul1 .li1.current_page_item .a1::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}
.hc_box .ul1 .ul2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 120px;
    display: none;
    background-color: rgba(4, 0, 0, 0.9);
    border-radius: 5px;
    padding: 10px 0;
}
.hc_box .ul1 .li1:hover .ul2 {
    display: block;
}
.hc_box .ul1 .a2 {
    display: block;
    padding: 10px 20px;
    color: #fff;
    white-space: nowrap;
    text-align: center;
}
.hc_box .ul1 .a2:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.hc_box .hc_ri {
    display: flex;
    align-items: center;
}
.hc_box .lang {
    margin-left: 20px;
    position: relative;
    cursor: pointer;
}
.hc_box .lang .hd {
    display: flex;
    align-items: center;
    color: #fff;
    height: 70px;
}
.hc_box .search {
    margin-left: 20px;
    cursor: pointer;
    color: #fff;
}

/* Mobile Header */
.head_mob {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background-color: #040000;
}
.hm_b {
    height: 50px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hm_b .logo {
    height: 40px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}
.hm_b .logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}
.hm_b .hm_more {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
}
.hm_b .hm_more span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    left: 5px;
}
.hm_b .hm_more span:nth-child(1) { top: 8px; }
.hm_b .hm_more span:nth-child(2) { top: 14px; }
.hm_b .hm_more span:nth-child(3) { top: 20px; }

@media (max-width: 900px) {
    .head_pc { display: none; }
    .head_mob { display: block; }
}

/* ============================================================
   FOOTER - Site-wide
   ============================================================ */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #fff;
    padding: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Footer Main Content */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding: 60px 0 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Footer About */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #a0a0a0;
    margin: 0;
}

/* Footer Heading */
.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #9fca39, transparent);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #9fca39;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #9fca39;
    padding-left: 15px;
}

.footer-links a:hover::before {
    width: 10px;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #a0a0a0;
}

.contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(159, 202, 57, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fca39;
}

.footer-contact li span:last-child {
    padding-top: 7px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #9fca39;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: #666;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 0 30px;
    }
    
    .footer-heading {
        margin-bottom: 15px;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-item {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.sidebar-item.whatsapp { background-color: #9fca39; }
.sidebar-item.whatsapp:hover { background-color: #b8e050; }
.sidebar-item.top { background-color: #595757; }
.sidebar-item.top:hover { background-color: #9fca39; }
.sidebar-item.top::after {
    content: "";
    width: 12px;
    height: 12px;
    border-left: 3px solid #fff;
    border-top: 3px solid #fff;
    transform: rotate(45deg) translateY(3px);
}
@media (max-width: 900px) { .sidebar { display: none; } }

/* ============================================================
   HOMEPAGE - Banner Section
   ============================================================ */
.banner {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}
.banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.banner-slide.active { opacity: 1; }
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.banner-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dot.active {
    background-color: #9fca39;
    transform: scale(1.2);
}
.banner-dot:hover { background-color: #fff; }

/* ============================================================
   HOMEPAGE - Section Titles (Centered)
   ============================================================ */
.section-title {
    text-align: center;
    padding: 60px 20px 40px;
}
.section-title .en {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
}
.section-title .cn {
    font-size: 18px;
    color: #999;
    margin-top: 10px;
    letter-spacing: 4px;
}
.section-title .line {
    width: 40px;
    height: 3px;
    background-color: #9fca39;
    margin: 20px auto 0;
}

/* ============================================================
   HOMEPAGE - Video Section
   ============================================================ */
.video-section {
    background-color: #efefef;
    padding: 0 0 80px;
}
.video-section .section-title { margin-bottom: 40px; }
.video-swiper-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
    overflow: hidden;
}
.video-swiper {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}
.video-slide {
    flex: 0 0 calc(33.333% - 20px);
}
.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.video-card .thumb {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    background-color: #ddd;
}
.video-card .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.video-card:hover .thumb img { transform: scale(1.1); }
.video-card .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #9fca39;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.9;
    z-index: 5;
}
.video-card .play-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 24px solid #fff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}
.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: #b8e050;
    opacity: 1;
}

/* Video Navigation */
.video-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #9fca39;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.video-nav-btn:hover {
    background-color: #b8e050;
    transform: translateY(-50%) scale(1.1);
}
.video-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.video-nav-btn.prev { left: 15px; }
.video-nav-btn.next { right: 15px; }
.video-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Video Pagination */
.video-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
}
.video-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}
.video-pagination .dot.active {
    background-color: #9fca39;
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .video-slide { flex: 0 0 calc(50% - 15px); }
    .video-swiper-container { padding: 0 70px; }
    .video-nav-btn { width: 50px; height: 50px; }
    .video-card .play-btn { width: 60px; height: 60px; }
}
@media (max-width: 600px) {
    .video-slide { flex: 0 0 100%; }
    .video-swiper-container { padding: 0 50px; }
    .video-nav-btn { width: 40px; height: 40px; }
    .video-nav-btn svg { width: 18px; height: 18px; }
}

/* ============================================================
   HOMEPAGE - News Section
   ============================================================ */
.news-section {
    background-color: #f8f8f8;
    padding-bottom: 80px;
}
.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: block;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.news-card .thumb {
    width: 100%;
    padding-top: 65%;
    position: relative;
    overflow: hidden;
}
.news-card .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .info { padding: 20px; }
.news-card .category {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #9fca39;
    margin-bottom: 10px;
}
.news-card .category img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
.news-card .title {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.news-card:hover .title { color: #9fca39; }

.more-btn {
    text-align: center;
    padding-top: 40px;
}
.more-btn a {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #707070;
    color: #595757;
    transition: all 0.3s;
}
.more-btn a:hover {
    background-color: #707070;
    color: #fff;
}

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .news-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUCT DETAIL PAGE (prefix: pd-)
   ============================================================ */
.product-detail-page {
    background-color: #f5f5f5;
    padding-top: 70px;
}

.pd-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.pd-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}
.pd-breadcrumb a { color: #9fca39; }
.pd-breadcrumb a:hover { text-decoration: underline; }

/* Main Layout */
.pd-main {
    display: flex;
    gap: 40px;
    padding: 20px 0 40px;
}

/* LEFT: Images */
.pd-images {
    width: 40%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}
.pd-images-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}
.pd-main-image {
    position: relative;
    padding-top: 100%;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}
.pd-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pd-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.pd-thumb {
    width: 60px;
    height: 60px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    overflow: hidden;
}
.pd-thumb.active,
.pd-thumb:hover {
    border-color: #9fca39;
    opacity: 1;
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIGHT: Info */
.pd-info {
    width: 58%;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
}
.pd-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}
.pd-meta {
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.pd-meta span {
    display: inline-block;
    margin-right: 30px;
}

/* Specs */
.pd-specs ul { list-style: none; }
.pd-specs li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}
.pd-specs li:last-child { border-bottom: none; }
.pd-spec-label {
    min-width: 160px;
    color: #666;
    font-weight: 500;
}
.pd-spec-value {
    color: #333;
    flex: 1;
}

/* Actions */
.pd-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.pd-inquiry-btn {
    display: inline-block;
    background: linear-gradient(135deg, #9fca39 0%, #7ab02a 100%);
    color: #fff;
    padding: 15px 50px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}
.pd-inquiry-btn:hover {
    background: linear-gradient(135deg, #7ab02a 0%, #9fca39 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(159, 202, 57, 0.3);
}

/* Pictures Section */
.pd-pictures {
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}
.pd-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9fca39;
    display: inline-block;
}
.pd-pictures-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.pd-picture-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}
.pd-picture-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}
.pd-picture-item:hover img { transform: scale(1.05); }

/* Related Products */
.pd-related {
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pd-related-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.pd-related-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.pd-related-img {
    position: relative;
    padding-top: 100%;
    background: #f9f9f9;
}
.pd-related-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pd-related-name {
    padding: 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Product Detail Responsive */
@media (max-width: 1024px) {
    .pd-main { flex-direction: column; }
    .pd-images, .pd-info { width: 100%; }
    .pd-images { position: static; }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pd-info { padding: 20px; }
    .pd-title { font-size: 20px; }
    .pd-spec-label { min-width: 120px; }
    .pd-pictures-grid { grid-template-columns: 1fr; }
    .pd-related-grid { grid-template-columns: 1fr; }
    .pd-inquiry-btn { display: block; text-align: center; }
}

/* ============================================================
   PRODUCTS LIST PAGE (prefix: pl-)
   ============================================================ */
.page-banner {
    padding-top: 70px;
    background-color: #efefef;
}
.page-banner .container {
    padding: 50px 20px 30px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}
.page-banner .title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}
.page-banner .subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    letter-spacing: 2px;
}

.pl-list {
    background-color: #efefef;
    padding-bottom: 60px;
}
.pl-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 30px 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}
.pl-item {
    width: 46%;
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.pl-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.pl-item .img-box { width: 35%; flex-shrink: 0; }
.pl-item .img {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 4px;
}
.pl-item .img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}
.pl-item:hover .img img { transform: scale(1.05); }
.pl-item .info { width: 65%; padding-left: 25px; }
.pl-item .cat {
    font-size: 18px;
    font-weight: bold;
    color: #9fca39;
    margin-bottom: 8px;
}
.pl-item .series {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}
.pl-item .desc {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pl-item .more {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: #9fca39;
    font-size: 13px;
    transition: all 0.3s;
}
.pl-item .more:hover { color: #7ab52e; }

@media (max-width: 900px) {
    .pl-item { width: 100%; }
    .pl-item .img-box { width: 40%; }
    .pl-item .info { width: 60%; }
}
@media (max-width: 600px) {
    .pl-item { flex-direction: column; text-align: center; }
    .pl-item .img-box { width: 100%; max-width: 200px; margin: 0 auto 15px; }
    .pl-item .info { width: 100%; padding-left: 0; }
}

/* Legacy support for old class names */
.md-product { background-color: #efefef; padding-bottom: 60px; }
.pro_list3 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}
.pro_list3 .pro_a3 {
    width: 46%;
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}
.pro_list3 .pro_a3:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.pro_list3 .imgs { width: 35%; flex-shrink: 0; }
.pro_list3 .img {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 4px;
}
.pro_list3 .img img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}
.pro_list3 .pro_a3:hover .img img { transform: scale(1.05); }
.pro_list3 .te { width: 65%; padding-left: 25px; }
.pro_list3 .p1 {
    font-size: 18px;
    font-weight: bold;
    color: #9fca39;
    margin-bottom: 8px;
}
.pro_list3 .series {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}
.pro_list3 .p2 {
    font-size: 13px;
    line-height: 1.8;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pro_list3 .view-more {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: #9fca39;
    font-size: 13px;
    transition: all 0.3s;
}
.pro_list3 .view-more:hover { color: #7ab52e; }

@media (max-width: 900px) {
    .pro_list3 .pro_a3 { width: 100%; }
    .pro_list3 .imgs { width: 40%; }
    .pro_list3 .te { width: 60%; }
}
@media (max-width: 600px) {
    .pro_list3 .pro_a3 { flex-direction: column; text-align: center; }
    .pro_list3 .imgs { width: 100%; max-width: 200px; margin: 0 auto 15px; }
    .pro_list3 .te { width: 100%; padding-left: 0; }
}

/* ============================================================
   CONTACT PAGE (prefix: contact-)
   ============================================================ */
.contact-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
    margin-top: 70px;
}
.contact-banner h1 {
    color: #fff;
    font-size: 42px;
    margin: 0;
}
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    gap: 60px;
}
.contact-info { flex: 1; }
.contact-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}
.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}
.contact-info .info-icon {
    width: 50px;
    height: 50px;
    background: #9fca39;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
}
.contact-info .info-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.contact-info .info-content p {
    color: #666;
    line-height: 1.6;
}
.contact-form-wrapper { flex: 1; }
.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}
.contact-form {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #9fca39;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form .submit-btn {
    background: #9fca39;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form .submit-btn:hover { background: #7ab02a; }

@media (max-width: 900px) {
    .contact-content { flex-direction: column; }
}

/* ============================================================
   ABOUT PAGE (prefix: about-)
   ============================================================ */
.about-banner {
    margin-top: 70px;
    position: relative;
    height: 400px;
    overflow: hidden;
}
.about-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}
.about-banner-text h1 {
    font-size: 48px;
    margin-bottom: 15px;
}
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.about-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}
.about-text {
    flex: 1;
    line-height: 1.8;
    color: #666;
}
.about-text p { margin-bottom: 20px; }
.about-image { flex: 1; }
.about-image img {
    width: 100%;
    border-radius: 8px;
}
.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.about-values .value-item {
    text-align: center;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 8px;
}
.about-values .value-icon {
    width: 80px;
    height: 80px;
    background: #9fca39;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 32px;
}
.about-values .value-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}
.about-values .value-item p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .about-content { flex-direction: column; }
    .about-values { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE POST / NEWS DETAIL
   ============================================================ */
.single-post { padding-top: 70px; }
.single-post .post-header {
    padding: 60px 20px 30px;
    text-align: center;
    background-color: #f8f8f8;
}
.single-post .post-title {
    font-size: 28px;
    color: #333;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}
.single-post .post-meta {
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}
.single-post .post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.8;
}
.single-post .post-content p { margin-bottom: 20px; }
.single-post .post-content img { border-radius: 8px; }

/* ============================================================
   GENERIC PAGE TEMPLATE
   ============================================================ */
.page-content {
    padding-top: 70px;
    min-height: 60vh;
}
.page-content .entry-header {
    padding: 60px 20px 30px;
    text-align: center;
    background-color: #f8f8f8;
}
.page-content .entry-title {
    font-size: 32px;
    color: #333;
}
.page-content .entry-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.8;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
    padding-top: 70px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.error-404 .page-title {
    font-size: 120px;
    color: #9fca39;
    line-height: 1;
}
.error-404 .page-content { margin-top: 20px; }

/* ============================================================
   NEWS DETAIL PAGE (prefix: ns-)
   ============================================================ */
.ns-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* Breadcrumb */
.ns-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}
.ns-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.ns-breadcrumb a:hover { color: #9fca39; }
.ns-breadcrumb .current { color: #333; }

/* Article Header */
.ns-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.ns-title {
    font-size: 32px;
    color: #333;
    line-height: 1.4;
    margin: 0 0 15px;
}
.ns-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
}
.ns-category {
    background: #9fca39;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
}
.ns-date { color: #999; }

/* Featured Image */
.ns-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.ns-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.ns-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}
.ns-content p { margin-bottom: 20px; }
.ns-content h2 {
    font-size: 24px;
    color: #333;
    margin: 40px 0 20px;
}
.ns-content h3 {
    font-size: 20px;
    color: #333;
    margin: 30px 0 15px;
}
.ns-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.ns-content ul,
.ns-content ol {
    margin: 20px 0;
    padding-left: 30px;
}
.ns-content li { margin-bottom: 10px; }
.ns-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f8f8;
    border-left: 4px solid #9fca39;
    font-style: italic;
    color: #666;
}

/* Contact Info */
.ns-contact {
    margin-top: 50px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f8f8, #fff);
    border-radius: 8px;
    border: 1px solid #eee;
}
.ns-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ns-contact-label {
    font-weight: 600;
    color: #333;
}
.ns-contact-value {
    color: #9fca39;
    font-size: 18px;
    font-weight: 500;
}

/* Navigation */
.ns-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.ns-nav-prev,
.ns-nav-next {
    flex: 1;
}
.ns-nav-next { text-align: right; }
.ns-nav-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.ns-nav-prev a,
.ns-nav-next a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}
.ns-nav-prev a:hover,
.ns-nav-next a:hover { color: #9fca39; }

/* Back Button */
.ns-back {
    margin-top: 40px;
    text-align: center;
}
.ns-back-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    transition: background 0.3s;
}
.ns-back-btn:hover { background: #9fca39; }

@media (max-width: 768px) {
    .ns-container { padding: 90px 15px 40px; }
    .ns-title { font-size: 24px; }
    .ns-navigation { flex-direction: column; gap: 20px; }
    .ns-nav-next { text-align: left; }
}

/* ============================================================
   UTILITIES & WORDPRESS CORE
   ============================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
.hidden { display: none; }

.alignleft { display: inline; float: left; margin-right: 1.5em; }
.alignright { display: inline; float: right; margin-left: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }
.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption img[class*="wp-image-"] { display: block; margin-left: auto; margin-right: auto; }
.wp-caption .wp-caption-text { margin: 0.8075em 0; font-size: 14px; color: #666; }
.gallery { margin-bottom: 1.5em; }
.gallery-item { display: inline-block; text-align: center; vertical-align: top; width: 100%; }
.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }
.gallery-columns-5 .gallery-item { max-width: 20%; }
.gallery-columns-6 .gallery-item { max-width: 16.66%; }
.gallery-columns-7 .gallery-item { max-width: 14.28%; }
.gallery-columns-8 .gallery-item { max-width: 12.5%; }
.gallery-columns-9 .gallery-item { max-width: 11.11%; }

/* Elementor Support */
.elementor-page .site-header,
.elementor-page .site-footer { display: none; }
