/*
Theme Name: Đoàn gỗ đẹp Gia Lai
Theme URI: https://doangogialai.com
Description: Theme WordPress chuẩn SEO dành riêng cho Đoàn gỗ đẹp Gia Lai - Xẻ gỗ tận tâm, nâng tầm giá trị.
Author: Đoàn Gia Lai
Version: 1.0.0
Tags: custom-background, custom-logo, featured-images, responsive-layout
*/

:root {
    --primary-color: #16a34a;
    --dark-green: #064e3b;
    --accent-orange: #f97316;
    --text-color: #334155;
    --bg-light: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text-color); background-color: var(--bg-light); line-height: 1.6; min-width:337px;}


/* Header & Navigation */
.top-bar { background: var(--dark-green); color: #fff; padding: 8px 5%; display: flex; justify-content: space-between; font-size: 14px; flex-wrap: wrap; }
.top-bar {
	background: var(--dark-green);
    color: #fff;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: nowrap;
    align-content: flex-start;
    flex-direction: column;
}
.main-header { background: #fff; padding: 15px 5%; display: flex; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: sticky; top: 0; justify-content: space-around;}
.logo img { max-height: 60px; }
.search-box{ margin: 0 auto;   /* đẩy ra giữa */}
.search-box input { border: 1px solid #cbd5e1; width: 250px; outline: none; }
.search-box button{
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0 !important;
    cursor: pointer;
}
.search-input-inner {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #27ae60;
  border-radius: 30px;
  padding: 4px 6px 4px 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.search-input-inner input[type="text"] {
  flex: 1;
  border: none;        /* bỏ border riêng */
  outline: none;
  padding: 10px;
  font-size: 15px;
  color: #333;
  background: transparent;
}

.search-submit-action {
  background: #27ae60;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 0 30px 30px 0; /* bo tròn bên phải để liền với input */
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-submit-action:hover {
  background: #219150;
}


.search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px; /* bo góc tròn */
  overflow: hidden;
  background: #fff;
}

.search-icon {
  padding: 0 10px;
  color: #888;
}

.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 14px;
}

.button .button-primary{background: #0078d4; border-radius: 30px; padding: 4px 6px 4px 18px;}
/* Hero Banner dạng sóng lượn giống hình mẫu */
.hero-section { background: linear-gradient(135deg, var(--primary-color), var(--dark-green)); color: #fff; padding: 60px 5%; display: flex; align-items: center; justify-content: space-between; position: relative; border-bottom-left-radius: 50% 8%; border-bottom-right-radius: 50% 8%; }
.hero-content { max-width: 50%; }
.hero-content h1 { font-size: 3rem; margin-bottom: 15px; }
.hero-buttons .btn { display: inline-block; padding: 10px 25px; margin-right: 10px; border-radius: 20px; font-weight: bold; text-decoration: none; color: #fff; }
.btn-red { background: #ef4444; }
.btn-orange { background: var(--accent-orange); }
.hero-image img { max-width: 100%; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; object-fit: cover; }

/* Grid Sản Phẩm & Bài Viết */
.section-title { text-align: center; color: var(--primary-color); margin: 40px 0 10px; font-size: 34px; text-transform: uppercase; font-weight: bold; }
.section-subtitle { text-align: center; color: #64748b; margin-bottom: 30px; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; padding: 0 5% 40px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; }
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-info { padding: 15px; }
.product-info h3 { font-size: 16px; margin-bottom: 8px; color: #1e293b; }

/* Cam kết dịch vụ */
.commitments { background: #fff; padding: 20px 5%; display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; border-bottom: 1px solid #e2e8f0; }
.commit-item { flex: 1; min-width: 330px; padding: 10px; font-size: 18px; float:right; text-align: left;}

/* Bản tin Subscribe Section dưới chân trang giống hình mẫu */
.subscribe-section { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; padding: 40px 5%; text-align: center; }
.subscribe-form { margin-top: 20px; display: inline-flex; max-width: 600px; width: 100%; }
.subscribe-form input { flex: 1; padding: 15px 25px; border-radius: 30px 0 0 30px; border: none; outline: none; }
.subscribe-form button { padding: 15px 35px; background: #ef4444; color: #fff; border: none; border-radius: 0 30px 30px 0; font-weight: bold; cursor: pointer; }

/* Footer */
footer { background: #111827; color: #9ca3af; padding: 20px 5%; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #374151; padding-top: 15px; margin-top: 15px; flex-wrap: wrap; }
.social-icons a { display: inline-block; margin: 0 10px; width: 40px; height: 40px; border-radius: 50%; background: #374151; text-align: center; line-height: 40px; color: #fff; text-decoration: none; }

/* Responsive break points chống vỡ giao diện */
@media (max-width: 1024px) {
    .hero-section { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; margin-bottom: 30px; }
    .main-header { flex-direction: column; gap: 15px; }
    .subscribe-form { flex-direction: column; gap: 10px; }
    .subscribe-form input, .subscribe-form button { border-radius: 30px; }
}

.commit-item img.emoji {
		height: 4em !important;
		width: 4em !important;
		float:left;
	}
	
	.xanhla {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-green));
    color: #fff;
    padding: 60px 5%;
    display: flex;
    align-items: center;
    justify-content
Aligns flex items along the main axis of the current line of the flex container.

Widely available across major browsers (Baseline since March 2018)
Learn more

Don't show
: space-between;
    position: relative;
    border-bottom-left-radius: 50% 8%;
    border-bottom-right-radius: 50% 8%;
}

.subscribe-section {
    background: linear-gradient(135deg, #16532c, #15803d);
    color: #fff;
    padding: 40px 5%;
    text-align: center;
}

/* --- STYLE CHO GEMINI CHAT BOX --- */
#gemini-chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #134e4a;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 99999;
    transition: all 0.3s ease;
}
#gemini-chat-toggle:hover {
    background: #16a34a;
    transform: scale(1.1);
}

#gemini-chat-box {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    height: 480px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    font-family: sans-serif;
    border: 1px solid #e2e8f0;
}

/* Hiệu ứng mượt mà khi mở hộp chat */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: #134e4a;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.online-indicator {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}
.close-chat {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    opacity: 0.8;
}
.close-chat:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.message.bot {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-top-left-radius: 2px;
    border: 1px solid #e2e8f0;
}
.message.user {
    background: #16a34a;
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 2px;
}
.message.loading {
    font-style: italic;
    color: #64748b;
    background: transparent;
    border: none;
    padding-left: 0;
}
.message.error {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.chat-input-area {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}
#chat-user-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
    transition: border 0.2s;
}
#chat-user-input:focus {
    border-color: #16a34a;
}
#send-chat-btn {
    background: #134e4a;
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
#send-chat-btn:hover {
    background: #16a34a;
}
/* Responsive cho điện thoại di động */
@media (max-width: 480px) {
    #gemini-chat-box {
        width: calc(100% - 30px);
        height: 70vh;
        right: 15px;
        bottom: 85px;
    }
    #gemini-chat-toggle {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
}
/* Dự phòng cưỡng chế hiển thị nội dung trên toàn bộ trang xem chi tiết */
.single-post .site-main, 
.single-post article, 
.single-post .entry-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
}
/* ==========================================================================
   CSS CHO 2 MỤC: SẢN PHẨM & SẢN XUẤT (ĐOÀN GỖ ĐẸP GIA LAI)
   ========================================================================== */

/* Chung cho cả hai danh mục */
.product-category-container, .manufacturing-category-container {
    padding: 50px 0;
    background-color: #fcfcfc;
    color: #333333;
}
.product-category-container .container, .manufacturing-category-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.dggl-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #888888;
}
.dggl-breadcrumbs a {
    color: #16a34a;
    text-decoration: none;
}
.dggl-breadcrumbs a:hover {
    text-decoration: underline;
}
.category-header-box {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
.dggl-category-title {
    font-size: 30px;
    color: #134e4a; /* Màu thương hiệu xanh sẫm */
    margin: 0 0 8px 0;
    font-weight: bold;
}
.category-desc-text, .category-subtitle {
    font-size: 15px;
    color: #666666;
    margin: 0;
    font-style: italic;
}

/* --- 1. CSS Giao diện Lưới Sản phẩm --- */
.product-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.product-item-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.product-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(19, 78, 74, 0.1);
    border-color: #16a34a;
}
.product-image-wrapper {
    position: relative;
    padding-top: 75%; /* Tỷ lệ ảnh dạng khối gỗ chữ nhật */
    background: #f4f4f4;
    overflow: hidden;
}
.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-item-card:hover .product-image-wrapper img {
    transform: scale(1.06);
}
.product-badge-status {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}
.product-meta-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-title {
    font-size: 18px;
    margin: 0 0 12px 0;
    font-weight: bold;
    line-height: 1.4;
}
.product-card-title a {
    color: #1f2937;
    text-decoration: none;
}
.product-card-title a:hover {
    color: #134e4a;
}
.product-short-specs {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}
.product-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #ededed;
    padding-top: 12px;
    margin-bottom: 12px;
}
.product-price-label {
    font-size: 15px;
    color: #dc2626; /* Đỏ làm nổi bật trạng thái giá liên hệ */
    font-weight: bold;
}
.btn-product-call {
    font-size: 13px;
    color: #134e4a;
    text-decoration: none;
    font-weight: bold;
    background: #f0fdf4;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}
.btn-product-call:hover {
    background: #134e4a;
    color: #fff;
}
.btn-view-product-detail {
    display: block;
    text-align: center;
    background-color: #134e4a;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}
.btn-view-product-detail:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/* --- 2. CSS Giao diện Danh sách Sản xuất (Dạng Hàng Ngang/ Blog) --- */
.blog-list-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}
.blog-article-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    transition: box-shadow 0.3s ease;
}
.blog-article-card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
}
.blog-card-image {
    width: 35%;
    min-width: 260px;
    position: relative;
    background: #fafafa;
}
.blog-card-image a, .blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-info {
    padding: 25px;
    width: 65%;
    display: flex;
    flex-direction: column;
}
.blog-entry-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}
.blog-entry-title {
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: bold;
    line-height: 1.4;
}
.blog-entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}
.blog-entry-title a:hover {
    color: #16a34a;
}
.blog-entry-excerpt {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}
.btn-read-more-story {
    align-self: flex-start;
    color: #134e4a;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}
.btn-read-more-story:hover {
    color: #16a34a;
}

/* --- 3. CSS Phân trang & Trống --- */
.dggl-pagination {
    margin-top: 40px;
    text-align: center;
}
.dggl-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 6px;
}
.dggl-pagination ul li a, .dggl-pagination ul li span {
    display: block;
    padding: 9px 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.dggl-pagination ul li span.current {
    background: #134e4a;
    color: #fff;
    border-color: #134e4a;
}
.dggl-pagination ul li a:hover {
    background: #16a34a;
    color: #fff;
}
.empty-category-notice {
    text-align: center;
    padding: 50px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}
.btn-return-home {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #134e4a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* --- 4. Hiệu ứng Fade In mượt mà --- */
.fade-in-item {
    animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Cho Mobile & Máy tính bảng */
@media (max-width: 1024px) {
    .blog-article-card {
        flex-direction: column;
    }
    .blog-card-image {
        width: 100%;
        height: 200px;
    }
    .blog-card-info {
        width: 100%;
        padding: 20px;
    }
    .product-grid-layout {
        grid-template-columns: 1fr;
    }
    .dggl-category-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   CSS DANH MỤC VIDEO MỸ NGHỆ - ĐOÀN GỖ ĐẸP GIA LAI
   ========================================================================== */

.video-category-container {
    padding: 50px 0;
    background-color: #f9fafb;
}
.video-category-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Lưới Video responsive */
.video-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-item-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(19, 78, 74, 0.15);
    border-color: #16a34a;
}

/* Tỷ lệ khung hình chuẩn 16:9 cho Video Youtube */
.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Tỷ lệ vàng 16:9 */
    background-color: #000000;
}
.embed-responsive-youtube iframe, 
.video-thumbnail-wrapper .video-link-fallback,
.video-thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* Nút Play đè lên ảnh đại diện nếu không load được iframe trực tiếp */
.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55px;
    font-size: 20px;
    padding-left: 4px;
 }
.video-item-card:hover .play-icon-overlay {
      transform: translate(-50%, -50%) scale(1.1);
}

/* Nội dung chữ phía dưới Video */
.video-meta-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.video-date-tag {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    display: block;
}
.video-card-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: bold;
    line-height: 1.4;
}
.video-card-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}
.video-card-title a:hover {
    color: #134e4a;
}
.video-short-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}
.btn-view-post-detail {
    font-size: 13px;
    color: #134e4a;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    align-self: flex-start;
}
.btn-view-post-detail:hover {
    color: #16a34a;
}

/* Responsive Cho Mobile */
@media (max-width: 768px) {
    .video-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .video-category-container {
        padding: 30px 0;
    }
}

.custom-login-container .wp-submit {
    background-color: #134e4a !important;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
}
.custom-login-container input[type="text"], 
.custom-login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

/* Giao diện trang đăng nhập tùy chỉnh */
body.login {
    background-color: #f4f7f6; /* Nền nhạt dễ nhìn */
}

.login h1 a {
    background-image: url('URL_LOGO_CỦA_BẠN') !important; /* Thay URL logo tại đây */
    background-size: contain !important;
    width: 200px !important;
    height: 100px !important;
}

.login #loginform {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px; /* Bo góc mộc mạc */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
    border: 1px solid #e0e0e0;
}

.login #loginform .button-primary {
    background-color: #134e4a !important; /* Màu xanh lá sẫm thương hiệu */
    border-color: #134e4a !important;
    text-shadow: none !important;
    box-shadow: none !important;
    width: 100%;
    padding: 10px;
    height: auto;
    border-radius: 5px;
    font-weight: bold;
}

.login #loginform .button-primary:hover {
    background-color: #16a34a !important; /* Màu xanh lá sáng hơn khi di chuột */
}

.login #loginform input[type="text"], 
.login #loginform input[type="password"] {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

    .gemini-container {
        background: #fff;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        max-width: 800px;
        margin: 20px auto;
        border-top: 5px solid #134e4a;
    }
    .gemini-container h1 { color: #134e4a; }
    .gemini-textarea {
        width: 100%;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        padding: 15px;
        font-size: 16px;
        margin-bottom: 15px;
    }
    .gemini-btn {
        background: #134e4a !important;
        color: white !important;
        padding: 10px 25px !important;
        border-radius: 5px !important;
        border: none !important;
        cursor: pointer;
    }
    .gemini-btn:hover { background: #16a34a !important; }
    #result-area {
        margin-top: 20px;
        padding: 15px;
        background: #f8fafc;
        border-left: 4px solid #134e4a;
        min-height: 100px;
    }

/* --- CSS Giao diện chung & Desktop --- */
.site-header {
    background-color: #134e4a; /* Màu xanh đậm thương hiệu */
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mặc định cho desktop */
.header-container {
 	max-width: 100%;
	margin: 0 auto;
/* 	display: 'flex',
	flexDirection: 'column',
	flexWrap: 'nowrap',
	alignItems: 'stretch'; */
	align-items:center;
	flex-direction: row-resize !important;
}

	/* Khi thêm class .active thì menu hiện */
.main-navigation .active {
	  display: flex;
	}
	
	/* Nút toggle */
.menu-toggle {
  display: flex;              /* thay vì inherit */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 30px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 9999;
}

/* Tạo 3 gạch ngang bằng pseudo-element */
.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: "";
  display: block;
  height: 2px;
  background: #fff;           /* màu gạch */
  border-radius: 2px;
}

/* Khoảng cách giữa các gạch */
.menu-toggle span {
  margin: 4px 0;
}


/* Container bọc ngoài ô tìm kiếm tổng thể */
.dggl-global-search-wrapper {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 15px;
    position: relative;
    font-family: Arial, sans-serif;
}
.search-container-box {
    position: relative;
    width: 97%;
}
/* Thiết kế thanh Tìm kiếm chính */
.search-input-inner {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #27ae60; /* Màu viền xanh mộc */
    border-radius: 30px;
    padding: 4px 6px 4px 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.search-embed-icon {
    font-size: 18px;
    color: #888;
    margin-right: 12px;
}
.search-input-inner input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 15px;
    color: #333;
    background: transparent;
}
/* .search-submit-action {
    background: #27ae60;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
} */
.search-submit-action:hover {
    background: #219653;
}

/* Bảng hiển thị kết quả thả xuống ngay phía dưới */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-height: 420px;
    overflow-y: auto;
    z-index: 999999; /* Đảm bảo luôn nằm trên các đối tượng khác */
    padding: 12px;
}

/* Định hình các nhóm kết quả (Bài viết / Danh mục) */
.res-group-box {
    margin-bottom: 15px;
}
.res-group-box:last-child {
    margin-bottom: 0;
}
.res-group-heading {
    font-size: 12px;
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.res-group-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.res-group-box li {
    margin-bottom: 6px;
}
.res-group-box li a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.res-group-box li a:hover {
    background: #f4f6f7;
    color: #e74c3c;
}

/* Các nhãn phân loại nội dung (Badges) */
.res-badge {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 12px;
    color: #ffffff;
    display: inline-block;
    min-width: 75px;
    text-align: center;
}
.res-badge.badge-cat { background: #f39c12; }      /* Danh mục - Cam */
.res-badge.badge-product { background: #27ae60; }  /* Sản phẩm - Xanh lá */
.res-badge.badge-post { background: #2980b9; }     /* Bài viết - Xanh dương */
.res-badge.badge-page { background: #7f8c8d; }     /* Trang tĩnh - Xám */

/* Trạng thái chữ thông báo (Đang tải / Không tìm thấy) */
.search-status-text {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
}
.search-status-text.text-error {
    color: #c0392b;
}


