/*
Theme Name: NGOSON.COM
Theme URI:  https://ngoson.com/
Author:     NGOSON.COM
Author URI: https://ngoson.com/
Description: Theme NGOSON.COM
Version:    1.0
License:    GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngosoncom
*/

/* ========================
   1. Reset cơ bản
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================
   2. Cấu trúc tổng thể
======================== */
.site-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.content-area {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.main-column {
  flex: 3;
}

.sidebar {
  flex: 1;
}

/* ========================
   3. Header & Navigation
======================== */
.site-header {
  background: #ff5722;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.site-logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}

.site-logo img {
  max-height: 55px; /* chỉnh chiều cao logo */
  width: auto;      /* tự động giữ tỷ lệ */
  display: block;
}

.primary-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.primary-menu a {
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.primary-menu a:hover {
  opacity: 0.8;
}

/* ========================
   4. Entry / Bài viết
======================== */
.entry {
  background: #fff;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.entry img {
  border-radius: 6px;
  margin-bottom: 10px;
}

.entry-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.entry-title a {
  color: #ff5722;
}

.entry-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

.entry-summary {
  font-size: 14px;
}

/* ========================
   5. Sidebar / Widget
======================== */
.widget {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.widget-title {
  font-size: 16px;
  margin-bottom: 10px;
  border-bottom: 2px solid #ff5722;
  display: inline-block;
  padding-bottom: 4px;
}

/* ========================
   6. Footer
======================== */
.site-footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}

/* ========================
   7. Responsive (Mobile)
======================== */
@media (max-width: 768px) {
  .content-area {
    flex-direction: column;
  }

  .primary-menu ul {
    flex-direction: column;
    gap: 10px;
  }
}
/* css sidebar */

/* Danh sách bài viết */
.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Mỗi item bài viết */
.recent-post-item {
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Link bài viết */
.recent-post-item a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.recent-post-item a:hover {
    color: #0073aa;
}
/* Tao o bai viet moi sidebar*/
.recent-post-item {
    background: #fafafa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.recent-post-item:hover {
    transform: translateY(-2px);
}

.recent-post-item a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.recent-post-item a:hover {
    color: #ff5722;
}
/* Áp dụng cho tất cả widget WordPress */
.widget,
.widget * {
  word-wrap: break-word;     /* Hỗ trợ xuống dòng */
  overflow-wrap: break-word; /* Hỗ trợ trình duyệt mới */
  word-break: break-word;    /* Cắt chữ dài */
  white-space: normal;       /* Cho phép xuống dòng */
}
/* Ngăn chữ bị tràn ra ngoài khung */
.entry,
.entry-summary,
.entry-content,
.widget,
.widget * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}
.entry-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* CSS Voucher dạng thẻ */
/* Khuyết bo tròn dạng vé */
    .left-voucher::before,
    .left-voucher::after {
      content: "";
      position: absolute;
      right: -12px;
      width: 24px;
      height: 24px;
      background: #f5f6fa;
      border-radius: 50%;
    }
    .left-voucher::before {
      top: -12px;
    }
    .left-voucher::after {
      bottom: -12px;
    }
    /* Grid Hiển Thị Voucher */
    .voucher-categories .category-link {
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.voucher-categories .category-link.active,
.voucher-categories .category-link:hover {
  background: #16a34a; /* xanh lá */
  color: #fff;
}
/* FONT CHỮ */
/* Nội dung */
body {
    font-family: 'Source Serif Pro', serif;
    font-size: 17px;
    line-height: 1.9;
    color: #2c2c2c;
}

/* Tiêu đề */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2px;
}
