/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.7; color: #333; background: #fff; margin: 0; padding: 0; }
a { color: #1a5276; text-decoration: none; }
a:hover { color: #117a65; }
img { max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ===== COLUMN SYSTEM ===== */
.one-third { width: 33.33%; float: left; padding: 0 15px; box-sizing: border-box; }
.two-third { width: 66.66%; float: left; padding: 0 15px; box-sizing: border-box; }
.sixteen { width: 100%; }
.eight { width: 50%; float: left; padding: 0 15px; box-sizing: border-box; }
.ten { width: 62.5%; float: left; }
.six { width: 37.5%; float: left; }
.seven { width: 43.75%; float: left; }
.nine { width: 56.25%; float: left; }
.five { width: 33.33%; float: left; padding: 0 10px; box-sizing: border-box; }

/* ===== TOP NAV ===== */
.top-nav { background: #1a3a5c; color: #fff; padding: 8px 0; font-size: 13px; overflow: hidden; }
.top-nav ul { margin: 0; padding: 0; }
.top-nav ul li { display: inline; margin-right: 15px; }
.top-nav a { color: #fff; }
.top-nav .fa { margin-right: 5px; }
.cart-left { float: left; }
.cart-right { float: right; }
.lang-item { padding: 2px 6px; border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; font-weight: 700; font-size: 12px; cursor: pointer; }
.lang-item:hover { background: rgba(255,255,255,0.1); }

/* ===== HEADER ===== */
.branding { padding: 20px 0; border-bottom: 1px solid #eee; background: #fff; overflow: hidden; }
.site-title { font-family: 'Kanit', sans-serif; font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.site-title a { color: #1a3a5c; }
.site-description { font-size: 14px; color: #888; }
.header-right { overflow: hidden; }
.header-right .fa { font-size: 18px; color: #1a5276; margin-right: 5px; }
.header-right span { font-weight: 700; color: #333; font-size: 13px; }
.header-right div { font-size: 12px; color: #666; }
.right { text-align: right; }

/* ===== NAVIGATION ===== */
.header-menu-wrapper { background: #1a3a5c; overflow: hidden; }
.nav-wrap { position: relative; }
.main-navigation { position: relative; }
.menu-toggle { display: none; background: none; border: none; color: #fff; padding: 12px; cursor: pointer; font-size: 18px; }
.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation > ul > li { display: inline-block; position: relative; }
.main-navigation > ul > li > a { display: block; padding: 14px 18px; color: #fff; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; border-right: 1px solid rgba(255,255,255,0.1); }
.main-navigation > ul > li:last-child > a { border-right: none; }
.main-navigation > ul > li.active > a, .main-navigation > ul > li > a:hover { background: #117a65; }

/* ===== SLIDER ===== */
.flexslider { position: relative; overflow: hidden; background: #f5f5f5; }
.flexslider .slides { margin: 0; padding: 0; list-style: none; }
.flexslider .slides li { position: relative; }
.flex-image img { display: block; width: 100%; height: auto; }
.flex-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); padding: 40px 30px 30px; color: #fff; }
.flex-caption h1 { font-family: 'Kanit', sans-serif; font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.flex-caption p { font-size: 14px; line-height: 1.6; margin-bottom: 15px; max-width: 700px; }
.btn-slider { display: inline-block; padding: 10px 25px; background: #117a65; color: #fff; border-radius: 4px; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.btn-slider:hover { background: #0d5f4e; color: #fff; }

/* ===== SECTION HEAD ===== */
.section-head { text-align: center; padding: 40px 0 30px; }
.title-divider { font-family: 'Kanit', sans-serif; font-size: 28px; font-weight: 700; color: #1a3a5c; margin-bottom: 15px; position: relative; padding-bottom: 15px; }
.title-divider::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: #117a65; }
.sub-description { color: #666; font-size: 15px; max-width: 700px; margin: 0 auto; }
.clr-white { color: #fff; }
.clr-white .title-divider { color: #fff; }
.clr-white .title-divider::after { background: #48c9b0; }

/* ===== SERVICE WRAPPER ===== */
.service-wrapper { background: #f8f9fa; padding: 30px 0 50px; overflow: hidden; }
.service-wrapper .section-head img { max-width: 200px; margin-top: 20px; }
.services-wrapper { overflow: hidden; }
.service { margin-bottom: 30px; }
.icon-wrapper { width: 60px; height: 60px; background: #117a65; border-radius: 50%; display: flex; align-items: center; justify-content: center; float: left; margin-right: 15px; }
.icon-wrapper .fa { font-size: 24px; color: #fff; }
.service-content { overflow: hidden; }
.service-content h4 { font-family: 'Kanit', sans-serif; font-size: 16px; margin-bottom: 5px; }
.service-content h4 a { color: #1a3a5c; }
.service-content p { font-size: 13px; color: #666; margin: 0; }

/* ===== CONTENT SECTION ===== */
.content-section-wrapper { padding: 50px 0; background: #1a3a5c; color: #fff; overflow: hidden; }
.content-section-wrapper .title-divider { color: #fff; }
.content-section-wrapper .title-divider::after { background: #48c9b0; }
.about-content { overflow: hidden; }
.about-text-col { width: 66%; float: left; padding-right: 30px; box-sizing: border-box; }
.about-text-col p { font-size: 15px; line-height: 1.8; opacity: 0.9; }
.about-img-col { width: 33%; float: left; text-align: center; }
.about-img-col img { max-width: 100%; }

/* ===== AI SOLAR SECTION (NEW) ===== */
.ai-solar-section { background: linear-gradient(135deg, #0d2137, #1a5276); padding: 60px 0; color: #fff; }
.ai-solar-section .title-divider { color: #fff; }
.ai-solar-section .title-divider::after { background: #48c9b0; }
.ai-solar-section .sub-description { color: rgba(255,255,255,0.8); }
.ai-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin: 40px 0; }
.ai-feature { flex: 1; min-width: 220px; max-width: 280px; background: rgba(255,255,255,0.1); padding: 30px 20px; border-radius: 8px; text-align: center; backdrop-filter: blur(5px); }
.ai-feature .ai-icon { font-size: 40px; margin-bottom: 15px; }
.ai-feature .ai-icon .fa { color: #48c9b0; }
.ai-feature h4 { font-family: 'Kanit', sans-serif; font-size: 18px; margin-bottom: 10px; }
.ai-feature p { font-size: 13px; opacity: 0.85; line-height: 1.6; }
.btn-primary { display: inline-block; padding: 14px 35px; background: #117a65; color: #fff; border-radius: 5px; font-weight: 700; font-size: 15px; border: none; cursor: pointer; }
.btn-primary:hover { background: #0d5f4e; color: #fff; }

/* ===== POST WRAPPER / PRODUCTS ===== */
.post-wrapper { padding: 50px 0; background: #f8f9fa; overflow: hidden; }
.product-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 700px; margin: 0 auto 30px; }
.cat-item { background: #fff; padding: 12px 20px; border-radius: 6px; font-family: 'Kanit', sans-serif; font-size: 14px; color: #1a3a5c; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-left: 4px solid #117a65; }
.latest-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; }
.latest-posts .one-third { float: none !important; width: auto !important; padding: 0 !important; }
.latest-post { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.latest-post-thumb { background: #f4f6f8; }
.latest-post-thumb img { width: 100%; height: 200px; object-fit: contain; }
.latest-post-details { padding: 15px; }
.latest-post-details h4 { font-size: 15px; margin-bottom: 8px; }
.latest-post-details h4 a { color: #1a3a5c; }
.latest-post-details p,
.latest-post-content p { font-size: 13px; color: #666; margin: 0; }
.latest-post-content img { max-width: 100%; margin-bottom: 10px; }

/* ===== PORTFOLIO ===== */
.default { padding: 50px 0; }
.has-large-font-size { font-size: 28px; text-align: center; color: #1a3a5c; margin-bottom: 30px; font-family: 'Kanit', sans-serif; }
.wp-block-video { text-align: center; margin-bottom: 30px; }
.wp-block-video video { max-width: 100%; height: auto; }
.portfolio-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.portfolio-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }

/* ===== AI SOLAR PAGE ===== */
.page-header { padding: 60px 0; text-align: center; color: #fff; }
.page-header h1 { font-family: 'Kanit', sans-serif; font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.page-header p { font-size: 16px; opacity: 0.9; }
.content-area { padding: 50px 0; }
.text-block { margin-bottom: 25px; font-size: 15px; color: #444; line-height: 1.8; }
.ai-card { display: flex; gap: 25px; margin-bottom: 35px; background: #f8f9fa; padding: 30px; border-radius: 10px; border-left: 5px solid #117a65; }
.ai-card-icon { flex-shrink: 0; font-size: 48px; color: #117a65; }
.ai-card-body h3 { font-family: 'Kanit', sans-serif; font-size: 20px; margin-bottom: 12px; color: #1a3a5c; }
.ai-card-body p { font-size: 14px; color: #555; margin-bottom: 10px; }
.ai-card-body ul { padding-left: 20px; margin: 0; }
.ai-card-body ul li { margin-bottom: 6px; font-size: 14px; color: #555; }
.case-study { background: #fff; border: 1px solid #e0e0e0; padding: 25px; border-radius: 8px; margin-bottom: 20px; }
.case-study h3 { font-family: 'Kanit', sans-serif; font-size: 18px; color: #1a3a5c; margin-bottom: 10px; }
.case-study p { font-size: 14px; color: #555; }
.outlook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 30px 0; }
.outlook-item { background: #f8f9fa; padding: 25px; border-radius: 8px; border-top: 4px solid #117a65; }
.outlook-item h3 { font-family: 'Kanit', sans-serif; font-size: 17px; color: #1a3a5c; margin-bottom: 10px; }
.outlook-item p { font-size: 14px; color: #555; }
.conclusion-box { background: linear-gradient(135deg, #0d2137, #1a5276); color: #fff; padding: 40px; border-radius: 10px; margin: 30px 0; text-align: center; }
.conclusion-box h3 { font-family: 'Kanit', sans-serif; font-size: 22px; margin-bottom: 15px; }
.conclusion-box p { font-size: 15px; line-height: 1.8; opacity: 0.9; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-info-box h3, .contact-form-box h3 { font-family: 'Kanit', sans-serif; font-size: 22px; color: #1a3a5c; margin-bottom: 25px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-item .fa { font-size: 22px; color: #117a65; width: 30px; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 5px; font-family: 'Lato', sans-serif; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #117a65; }

/* ===== DELIVERY ===== */
.delivery-content { max-width: 800px; margin: 0 auto; }
.delivery-text p { font-size: 15px; color: #555; margin-bottom: 15px; line-height: 1.8; }
.delivery-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
.df-item { text-align: center; padding: 25px; background: #f8f9fa; border-radius: 8px; }
.df-item .fa { font-size: 36px; color: #117a65; margin-bottom: 10px; }
.df-item h4 { font-family: 'Kanit', sans-serif; font-size: 16px; color: #1a3a5c; }

/* ===== ABOUT PAGE ===== */
.about-wrapper { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 40px; }
.about-image { flex: 1; min-width: 300px; }
.about-text-full { flex: 1.5; min-width: 300px; }
.about-text-full p { font-size: 15px; color: #555; margin-bottom: 15px; line-height: 1.8; }
.features-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin: 40px 0; }
.feature-box { text-align: center; padding: 30px; background: #f8f9fa; border-radius: 8px; }
.feature-box .fa { font-size: 40px; color: #117a65; margin-bottom: 15px; }
.feature-box h3 { font-family: 'Kanit', sans-serif; font-size: 18px; color: #1a3a5c; margin-bottom: 10px; }
.feature-box p { font-size: 14px; color: #666; }

/* ===== PRODUCT PAGE ===== */
.category-list-full { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.cat-item-lg { background: #f8f9fa; padding: 12px 20px; border-radius: 6px; font-family: 'Kanit', sans-serif; font-size: 14px; color: #1a3a5c; border: 1px solid #e0e0e0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.product-info { padding: 20px; }
.product-info h3 { font-family: 'Kanit', sans-serif; font-size: 16px; color: #1a3a5c; margin-bottom: 8px; }
.product-info p { font-size: 13px; color: #666; }

/* ===== FOOTER ===== */
.site-footer { background: #0d2137; color: rgba(255,255,255,0.8); }
.footer-widgets { padding: 50px 0; overflow: hidden; }
.footer-widgets .one-third { padding: 0 15px; box-sizing: border-box; }
.widget-title { font-family: 'Kanit', sans-serif; font-size: 18px; color: #fff; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.widget-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: #117a65; }
.footer-widgets p { font-size: 14px; line-height: 1.7; }
.footer-widgets ul li { margin-bottom: 8px; font-size: 14px; }
.footer-widgets ul li a { color: rgba(255,255,255,0.7); }
.footer-widgets ul li a:hover { color: #48c9b0; }
.site-info { background: rgba(0,0,0,0.2); padding: 20px 0; text-align: center; font-size: 13px; overflow: hidden; }
.site-info a { color: rgba(255,255,255,0.7); }

/* ===== SCREEN READER ===== */
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .one-third, .two-third, .eight, .ten, .six, .seven, .nine, .five { width: 100%; float: none; padding: 0; }
    .menu-toggle { display: block; }
    .main-navigation > ul { display: none; flex-direction: column; }
    .main-navigation > ul.open { display: flex; }
    .main-navigation > ul > li { display: block; }
    .main-navigation > ul > li > a { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .flex-caption { position: relative; background: #1a3a5c; }
    .flex-caption h1 { font-size: 24px; }
    .cart-left, .cart-right { float: none; text-align: center; }
    .latest-posts { grid-template-columns: 1fr; }
    .about-text-col, .about-img-col { width: 100%; float: none; padding-right: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .ai-card { flex-direction: column; }
    .ai-features { flex-direction: column; align-items: center; }
    .ai-feature { max-width: 100%; }
    .header-right .five, .header-right .six { width: 100%; text-align: center; margin-bottom: 10px; }
    .right { text-align: center; }
}