/*
Theme Name: Zip Theme
Theme URI: https://sodo66mobi.com/
Author: ZIP
Author URI: https://sodo66mobi.com/
Description: Theme phù hợp với các bạn có một chút kiến thức về HTML, CSS, JS.
Version: 1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zip-theme
*/

/* Add your custom styles here */
.bg {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
/*css breadcrumb của rankmath*/
nav.rank-math-breadcrumb {
    border-radius: 5px;
    line-height: normal;
    letter-spacing: 0.5px;
    background-color: #ffffff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
nav.rank-math-breadcrumb p {
    margin-bottom: 0;
}
/*Menu*/
 /* Animated Text Styles */
        .animated-text {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-link), var(--color-link-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 500% auto;
    animation: textShine 4s ease-in-out infinite alternate;
    font-weight: bold;
    font-size: 35px;
    font-family: 'FontAwesome';
    padding: 0 5px;
}
/*css cho menu sidebar*/
/* Container chính */
.sidebar-menu-container {
  position: fixed;
  left: -300px;
  top: 0;
  height: 100vh;
  width: 250px;
  background: #ffffff;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-menu-container.open {
  left: 0;
}

/* Tiêu đề Menu */
.sidebar-menu-container > p {
  color: #1f2937;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1.5rem;
  margin: 0;
  border-bottom: 2px solid #f3f4f6;
  letter-spacing: -0.5px;
  position: relative;
}

.sidebar-menu-container > p:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1.5rem;
    width: 50px;
    height: 2px;
    background: var(--color-primary);
}

/* Danh sách menu */
.sidebar-menu {
  list-style: none;
  margin: 0;
}

/* Mục menu */
.sidebar-menu .menu-item {
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-menu .menu-item a {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  color: #374151;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

/* Hiệu ứng hover */
.sidebar-menu .menu-item:hover a {
    background: #d3404030;
    color: #000000;
    transform: translateX(8px);
}

/* Mục active */
.sidebar-menu .current-menu-item a {
    background: #ffefef;
    font-weight: 600;
}
.sidebar-menu .current-menu-item a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
        background: var(--color-primary);
}

/* Phân cách mục menu */
.sidebar-menu .menu-item:not(:last-child):after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: #f3f4f6;
}

/* Icon mũi tên (optional) */
.sidebar-menu .menu-item a:after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  color: #9ca3af;
  opacity: 0;
  transition: all 0.3s ease;
}

.sidebar-menu .menu-item:hover a:after {
  opacity: 1;
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar-menu-container {
    width: 80%;
    left: -85%;
  }
  .sidebar-menu .menu-item a {
    font-size: 1.1rem;
    padding: 1rem 1.8rem;
  }
}

/* Animation */
@keyframes menuSlideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sidebar-menu-container.open {
  animation: menuSlideIn 0.4s ease forwards;
}

.hamburger.active .hamburger-inner::before {
            transform: translateY(8px) rotate(45deg);
            background-color: #fff;
        }

        .hamburger.active .hamburger-inner::after {
            transform: translateY(-8px) rotate(-45deg);
        }
       /* Desktop Navigation Styles */
    .primary-menu {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .primary-menu > li {
    position: relative;
    list-style: none;
}

    .primary-menu a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.primary-menu > li > a:hover {
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--color-link);
}

    /* Submenu Styling */
    .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 3px 15px rgb(0 0 0 / 35%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 100;
    border-radius: 8px;
}

    .menu-item-has-children:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .sub-menu li {
        padding: 10px 15px;
      transition: all 0.3s ease;
    }
.sub-menu li:hover {
    background-color: var(--color-link);
}
     .sub-menu li:hover > a {
    color: #fff !important; /* Màu chữ khi hover */
    transform: translateX(5px); /* Hiệu ứng di chuyển */
}
    .sub-menu a {
        white-space: nowrap;
    }

    /* Hamburger Icon Fix */
    .default-menu .hamburger {
    display:none;
}
.sidebar-menu .hamburger {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
}
.hamburger-box {
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
}

    .default-menu .hamburger-inner {
        width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
    }
.hamburger-inner, .hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}
.sidebar-menu .hamburger-inner::after {
    widtH: 60%;
    bottom: 5px;
}

.default-menu .hamburger-inner::before {
  top: -8px;
}

.default-menu .hamburger-inner::after {
  bottom: -8px;
}

/* Active State */
.hamburger.active .hamburger-inner {
  background-color: transparent;
}

.hamburger.active .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}
/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* Primary Menu */
.primary-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item a {
    position: relative;
    color: #334155;
    text-decoration: none;
    padding: 10px 10px;
    transition: all 0.3sease;
}

/* Hover Effect */
.default-menu .menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-link);
  transition: width 0.3s ease;
}

.menu-item:hover a {
  color: #1d4ed8;
}

.menu-item:hover a::after {
  width: 100%;
}
/* Current Menu Item */
.current-menu-item a::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
}

.current-menu-item a {
    background: #ffefef;
    color: var(--color-link);
    padding: 10px 20px;
    border-radius: 8px;
}
.current-menu-item a::after {
    width: 100%;
}
        @media (max-width: 768px) {
           .default-menu .hamburger {
                display: block;
    z-index: 1001;
            }
          .sub-menu {
        right: 0;
        left: unset;
    }
            .menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
    padding: 60px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

            .menu-container.active {
    right: 0;
  }

            .primary-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .menu-item a {
     display: flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

            .menu-item a::after {
    display: none;
  }

  .menu-item:hover a {
    background: #f8fafc;
  }
            .menu-overlay.active {
                display: block;
            }

            .animated-text {
                font-size: 24px;
            }
          /* Điều chỉnh hamburger icon mobile */
            .hamburger {
        position: relative;
        z-index: 101;
        background: var(--color-primary);
        border: 1px solid #ddd;
        padding: 3px;
        border-radius: 8px;
    }

     }
/* Animation */
@keyframes menuItemEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 769px) {
  .menu-item {
    animation: menuItemEnter 0.4s ease backwards;
  }
}

        /* Hamburger Animation */
        .hamburger.active .hamburger-inner {
            transform: rotate(45deg);
        }

        .hamburger-inner,
        .hamburger-inner::before {
            transition: transform 0.3s ease;
        }

        @keyframes textShine {
            0% { background-position: 0% 50%; }
            100% { background-position: 100% 50%; }
        }
/* Container chính */
.meta-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 10px 0;
}

/* Các mục meta thông tin */
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: #333;
    transition: all 0.3s ease;
    justify-content: center;
}
.meta-item a {color:#333 !important}
.meta-item:hover {
  color: #333;
}

/* Icon */
.meta-item .icon, .meta-22 .fa-solid.fa-share-nodes
 {
    font-size: 14px;
    color: var(--color-primary);
}

/* Phần chia sẻ mạng xã hội */
.meta-22 {
    display: flex;
    align-items: center;
  	gap: 5px;
}

.meta-22 a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #555;
      background: #f5f5f5;
    border-radius: 20px;
    padding: 2px 12px;
    box-shadow: 2px 1px 4px 1px gray;
}

.share-label {
  font-size: 0.85em;
  font-weight: 500;
}

/* Icon mạng xã hội */
.meta-22 .fab {
  font-size: 20px;
}

.meta-22 .fa-facebook { color: #1877f2; }
.meta-22 .fa-twitter { color: #1da1f2; }

/* Responsive cho mobile */
@media (max-width: 768px) {
  .meta-1 {
    justify-content: flex-start;
  }
  
  .meta-item {
    max-width: 45%;
  }
  
  .meta-22 {
    justify-content: center;
  }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Font chữ cho nội dung chính */
    font-size: 16px; /* Kích thước chữ mặc định */
    line-height: 1.6; /* Khoảng cách giữa các dòng */
    color: #333; /* Màu chữ chính */
    background-color: #f9f9f9; /* Màu nền */
    margin: 0; /* Xóa margin mặc định */
    padding: 0; /* Xóa padding mặc định */
}

/* Tiêu đề */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Font chữ cho tiêu đề */
}

/* Ví dụ cho các tiêu đề */
h1 {
    font-size:30px; /* Kích thước chữ cho h1 */
    margin-bottom: 15px; /* Khoảng cách dưới tiêu đề */
}

h2 {
    font-size: 26px; /* Kích thước chữ cho h2 */
    margin-bottom: 10px; /* Khoảng cách dưới tiêu đề */
}

h3 {
    font-size: 22px; /* Kích thước chữ cho h3 */
    margin-bottom: 5px; /* Khoảng cách dưới tiêu đề */
}

a {
    text-decoration: none;
  font-weight:600;
}
.wp-caption-text {
    text-align: center;
    font-style: italic;
    font-size: 14px;
}
.container {
    max-width: 1200px;
    padding: 10px;
      margin: 0 auto;
}
ul li {
    list-style-position: inside;
}
figure {
    width: 100% !important;
}
img {width:100%;border-radius:8px}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 25px !important;
    background: var(--color-link);
    color: #fff;
    padding: 5px 10px;
    border-radius: 99%;
    border: 2px solid #fff;
}
/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  margin-bottom:10px;
}

.logo img {
    max-height: 50px;
    width: auto;
}


/* Custom Buttons */
.header-bot {
    text-align: center;
}

.custom-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.custom-buttons a {
    padding: 5px 15px;
    border: none;
    background-color: var(--color-primary);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
  height: 40px;
}
.custom-buttons a:hover {
    background-color: #005bb5;
    color: #fff;
}

/* Main Content */
.content {
    display: flex;
    margin: 20px 0;
    gap: 20px;
}

.main-column {
    width: 75%;
}

.sidebar {
    width: 25%;
}

.post-box {
    background-color: #ffffff;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.post-box .post-excerpt {
    color: #666;
}
@media (max-width: 767px) {
.post-box{
    display: flex;
    flex-direction: column;
}
}
/* Footer */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Mặc định là 4 cột */
    gap: 10px; /* Khoảng cách giữa các cột */
}

.footer-columns .column {
    padding: 10px; /* Padding cho từng cột */
}

.footer-columns h3 {
    color: #333; /* Màu chữ tiêu đề */
    margin-bottom: 10px; /* Khoảng cách dưới tiêu đề */
}

.footer-columns p,
.footer-columns div {
    font-size: 1em; /* Kích thước chữ nội dung */
    color: #666; /* Màu chữ nội dung */
}
.footer-columns .column ul li {
    list-style-position: inside;
}
 .scroll-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #333;
      color: #fff;
      border: none;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  .scroll-top.show {
      opacity: 1;
      visibility: visible;
  }

  .scroll-top:hover {
      background: #555;
      transform: translateY(-2px);
  }

  .social-links {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-link);
    transform: translateY(-3px);
  color: #fff;
}

.social-links i {
    font-size: 18px;
}
  .payment-icons {
    text-align: center;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 32px;
    color: #95a5a6;
    transition: color 0.3s ease;
}

.payment-icons i:hover {
    color: #3498db;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
    font-size: 0.9em;
}
/* Responsive */
@media (max-width: 1200px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr); /* 3 cột cho màn hình nhỏ hơn */
    }
}

@media (max-width: 900px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr); /* 2 cột cho màn hình nhỏ hơn */
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr; /* 1 cột cho màn hình nhỏ nhất */
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .main-column, .sidebar {
        width: 100%;
    }
.container {
        flex-direction: column;
    }

    .main-column, .sidebar {
        width: 100%;
    }

    .sidebar {
        position: static; /* Sidebar không sticky trên mobile */
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

} 

/* Single Post */
article {
    background-color: #ffffff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.8;
    color: #333;
}

.post-tags a:hover {
    text-decoration: underline;
}
.post-meta {
    display: flex;
    align-items: center;
    margin: 5px 0;
    border-radius: 8px;
    gap: 3px;
}
 .post-meta .by, .post-meta time,.post-meta .reading-time {
    border-radius: 8px;
    padding: 0 5px;
    color: #fff;
    background: var(--color-primary);
  font-size: 13px;
}

/*css thumbnail*/
.post-thumbnail {
    position: relative;
    overflow: hidden;
}
.post-right {
    width: 100%;
    margin-left: 10px;
}
.post-right h2 {    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;}
.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .post-thumbnail img {
        height: auto;
    }
}
/*css cho sidebar*/
/* Widget Styling */
aside.site-sidebar {
    position: sticky;
    top: 138px;
}
.sidebar ul li, ul.sub-menu li {
    list-style: none;
    list-style-position: inside;
}
.widget {
    margin-bottom: 20px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

/* Recent Posts */
.recent-post-item {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.recent-post-link {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.recent-post-link:hover .recent-post-title {
    font-weight: 600;
}
.recent-post-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.recent-post-content {
    flex-grow: 1;
}

.recent-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.recent-post-date {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
}

/* Category List */
.category-filter {
    margin-bottom: 1rem;
}

.category-search {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.category-link:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

.category-count {
    background: var(--color-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-sidebar {
        position: sticky;
        top: 20px;
    }
    
    .recent-post-thumbnail {
        width: 60px;
        height: 60px;
    }
}
/* Global Search Widget */
.search-form {
    position: relative;
}

.search-wrapper {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
}

.search-submit {
    padding: 8px 10px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #005177;
}

.search-submit svg {
    vertical-align: middle;
}
/*tags*/
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.post-tags .tag-item {background: var(--color-link);}
.post-tags .tag-item a {color:#fff}
.tag-item a {
    text-decoration: none;
    color: #333; /* Màu chữ */
}

.tag-item a:hover {
    text-decoration: none; /* Gạch chân khi hover */
}
.tags-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.tag-item {
    display: inline-block;
    border-radius: 3px;
    padding: 1px 10px;
    color: #fff; /* Màu chữ */
    text-decoration: none; /* Bỏ gạch chân */
    transition: background-color 0.3s;
}

.tag-item:hover {
    opacity: 0.8; /* Hiệu ứng hover */
}
/* Swiper banner */
.banner-container {
   margin-bottom: 20px;
}

.banner-swiper {
    width: 100%;
    height: auto;
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

@media (max-width: 768px) {
    .banner-swiper {

    }
}
/* Phần giới thiệu */
.website-intro {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    text-align: center;
    color: #333;
}

.site-description {
  line-height: 1.8;
  color: #666;
  padding: 0 10px;
}

@media (max-width: 768px) {
    .site-title {
        font-size: 1.8em;
    }
    
    .site-description {
        font-size: 1em;
        padding: 0 10px;
    }
}
/* Grid Layout */
.posts-container.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.grid .post-box {
    display: flex;
    flex-direction: column;margin: 0;
      cursor: pointer;
}

/* List Layout */
.posts-container.list .post-box {
    display: flex;
    flex-direction: column;
   margin-bottom:20px;
}

.posts-container.list .post-thumbnail {
    order: -1;
}

/* Responsive */
@media (max-width: 768px) {
    .posts-container.grid {
        grid-template-columns: 1fr;
    }
}
/* Masonry Layout */
.posts-container.masonry {
    column-count: 3;
    column-gap: 20px;
}

.posts-container.masonry .post-box {
    break-inside: avoid;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.masonry  h3 a {
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.masonry .post-meta {
    font-size: 14px;
}
.masonry .post-box .post-excerpt {font-size:15px}
/* Carousel Layout */
.posts-container.carousel {
    overflow: hidden;
    padding: 20px 0;
}
.carousel .post-thumbnail {
    width: 25%;
}
.carousel .post-right {
    width: 75%;
}
.posts-container.carousel .post-box {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 8px;
  	cursor: pointer;
}
.posts-container.carousel .post-box:hover, .posts-container .grid .post-box:hover, .posts-container.list .post-box:hover, .posts-container.masonry .post-box:hover, .post-box.slidecard-item:hover {
    border: 2px solid var(--color-link);
}
.swiper-pagination,
.swiper-button-next,
.swiper-button-prev {
    position: static;
    margin-top: 10px;
}
span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    border: 2px solid;
}
/* Responsive */
@media (max-width: 1024px) {
    .posts-container.masonry { column-count: 2; }
  .carousel .post-thumbnail, .carousel .post-right {width:100%}
}

@media (max-width: 768px) {
    .posts-container.masonry { column-count: 1; }
  .carousel .post-thumbnail, .carousel .post-right {width:100%}
}
/* Section Tải App */
.app-download-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 20px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  margin: 20px 0;
}

.app-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
}

.app-content {
    /* flex: 1; */
    /* padding-right: 46px; */
    position: relative;
    z-index: 2;
    width: 70%;
}

.app-title {
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-description {
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 1;
}

.download-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.store-link {
    transition: transform 0.3s ease;
    display: inline-block;
}

.store-link:hover {
    transform: translateY(-3px);
}

.app-badge {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.app-preview {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 30%;
}

.app-preview .floating {
    max-width: 300px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 15px 10px rgba(0,0,0,0.2));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        text-align: center;
    }
    
   .app-content {
        padding-right: 0;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .download-badges {
        justify-content: center;
    }
    
    .app-preview img {
        max-width: 200px;
    }
}
/* App Preview Image Styling */

.app-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1; /* Đảm bảo tỷ lệ 1:1 */
}

/* Hiệu ứng layer */
.app-preview::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 80%;
    background: rgba(255,255,255,0.1);
    border-radius: 40px;
    z-index: -1;
}

/* Responsive Control */
@media (max-width: 1200px) {
    .app-preview {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .app-preview {
        max-width: 300px;
        width: 100%;
    }
    
    .app-preview img {
        border-width: 8px;
    }
  .slidecard-item {
    flex: none !important;
    width: 100%;
}
}
/* Slidecard Layout */
.posts-container.slidecard {
    overflow: hidden;
    position: relative;
}
.slidecard .post-right {margin:0}
.post-box.slidecard-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.slidecard-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 0 20px 0;
    gap: 15px;
}

.slidecard-item {
    scroll-snap-align: start;
    flex: 0 0 calc(100% / var(--columns) - 15px);
    /*min-width: 300px;*/
    transition: transform 0.3s ease;
    margin-bottom: 0;
}
.slidecard-item h3 {
    font-size: 18px;
}
/* Ẩn scrollbar */
.slidecard-wrapper::-webkit-scrollbar {
    display: none;
}

.slidecard-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.slidecard-controls {
    text-align: center;
}

.slidecard-prev,
.slidecard-next {
        background: var(--color-link);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.slidecard-prev:hover,
.slidecard-next:hover {
    background: #555;
}
/*css*/
/* Featured Games Section */
.featured-games-section {
    padding: clamp(1rem, 3vw, 2rem) 1rem;
}

.section-title {
    text-align: center;
    position: relative;
}


.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: 0 auto;
}

.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;margin:0;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover::before {
    opacity: 1;
}
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.media-wrapper {
    position: relative;
    padding-top: 62.5%;
    isolation: isolate;
   z-index: 0;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.8) 100%);
    mix-blend-mode: multiply;
  z-index: 1;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.game-title {
    color: #fff;
    margin: 0;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
   transition: all 0.3s ease; /* Thêm opacity vào transition */
    opacity: 1;
}

.hover-content {
    position: absolute;
    top: 0;
    left: 50%;
 transform: translate(-50%, -50%); /* Sửa từ -30% thành -50% */
  opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
    width: 100%;
    text-align: center;
  z-index: 3;
}

.play-icon {
    width: 2.5rem;
    height: 2.5rem;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.cta-text {
    color: #fff;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.game-card:hover .game-title {
    transform: translateY(150%); /* Tăng giá trị translate */
    opacity: 0;
}

.game-card:hover .hover-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}
.game-link {
    display: block;
    position: relative;
    height: 100%;
}
@media (max-width: 768px) {
    .games-container {
        grid-auto-flow: column;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
    
    .game-card {
        scroll-snap-align: center;
        min-width: 280px;
    }
    
    .game-card:hover {
        transform: none;
    }
    
    .game-card:active {
        transform: scale(0.98);
    }
  .game-card:hover .game-title {
        transform: none;
        opacity: 1;
    }
    
    .hover-content {
        display: none;
    }
    
    .game-card::before {
        display: none;
    }
}

@media (hover: none) {
    .game-card:hover .game-title {
        transform: none;
    }
    
    .hover-content {
        display: none;
    }
}
/* SODO Access Section - Light Version */
.sodo-access-section {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.sodo-access-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sodo-access-content {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.sodo-access-title {
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.sodo-access-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #0066ff;
}

.sodo-access-description {
    margin-bottom: 2rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.sodo-access-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.sodo-access-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-size: 1rem;
}

.sodo-access-btn .btn-icon {
    margin-right: 1rem;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.sodo-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sodo-access-btn:hover .btn-icon {
    transform: scale(1.15);
}

.primary-btn {
    background: var(--color-link);
    color: #fff;
    border-color: #631414;
}

.primary-btn:hover {
    background: #0052cc;
}

.secondary-btn {
    background: #ffffff;
    color: var(--color-link);;
    border: 2px solid var(--color-link);
}

.secondary-btn:hover {
    background: #f0f6ff;
}

.download-btn {
    background: #00cc88;
    color: #fff;
    grid-column: 1 / -1;
    border-color: #00aa6c;
}

.download-btn:hover {
    background: #00aa6c;
}

.sodo-access-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    min-width: 50px;
    text-align: center;
    color: #0066ff;
}

.feature-text {
    font-size: 1rem;
    color: #444;
    font-weight: 500;
}

@media (max-width: 768px) {
    .sodo-access-title {
        font-size: 2rem;
    }
    
    .sodo-access-content {
        padding: 2rem 1rem;
    }
    
    .sodo-access-buttons {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}