/*
Theme Name: Twenty Twenty-Five Child - Điện nước Khánh Khôi
Theme URI: https://diennuockhanhkhoi.com/
Description: Built with native Gutenberg/FSE blocks so IT can edit text, images, buttons, icons, navigation and block layout in Appearance > Editor.
Author: MondiaL
Template: twentytwentyfive
Version: 1.1.0
*/

:root {
  --kk-red: #E5484D;
  --kk-blue: #0077B6;
  --kk-dark: #0b2a3c;
  --kk-yellow: #FFC20E;
}
html { scroll-behavior: smooth; }
body .wp-site-blocks > * { margin-block-start: 0; }
html, body {
  overflow-x: hidden;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}
.wp-site-blocks {
  padding-top: 90px;
}
a { transition: 0.3s ease-out; }
a,
a:focus,
a:active,
a:focus-visible {
  text-decoration: none !important;
  outline: none !important;
}
button:focus,
button:active,
button:focus-visible { outline: none !important; }

/*HEADER*/
.kk-main-menu {gap: 6px 25px}
.kk-main-menu a:hover { color: var(--kk-blue) !important }
@media (min-width: 901px) {
  .kk-main-menu a { position: relative; }
  .kk-main-menu a::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #0077B650;
    margin-right: 8px;
    transition: 0.3s;
  }
  .kk-main-menu a:hover::before { background-color: var(--kk-yellow) }
}

/*FOOTER*/
/*Breadcrumb*/
.custom-breadcrumbs * {
  color: #fff;
  margin-right: 6px;
  font-size: 13px;
}
.custom-breadcrumbs a:hover {
  color: var(--kk-yellow);
}

/*HOMEPAGE*/
.wp-block-columns.kk-home-blocks-4,
.wp-block-columns.kk-home-blocks-4d2m {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.wp-block-columns.kk-home-blocks-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 900px) {
  .wp-block-columns.kk-home-blocks-4 { grid-template-columns: repeat(2, 1fr); }
  .wp-block-columns.kk-home-blocks-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .wp-block-columns.kk-home-blocks-4d2m { grid-template-columns: repeat(2, 1fr); }
  .wp-block-columns.kk-home-blocks-4 { grid-template-columns: repeat(1, 1fr); }
  .wp-block-columns.kk-home-blocks-6 { grid-template-columns: repeat(2, 1fr); }
}
.kk-home-blocks-4 >.wp-block-column >.wp-block-group,
.kk-home-blocks-4 >.wp-block-column >.wp-block-group>.wp-block-columns  { height: 100% ; }


/*CUSTOM*/
/*responsive*/
@media (min-width: 601px) { 
  .dom { display: none !important; } 
  .tacd { text-align: center;}
}
@media (max-width: 600px) { 
  .talm { text-align: left !important; }
  .dod { display: none !important; } 
}

/*buttons*/
.wp-block-button__link {
  position: relative;
  z-index: 1;
  transition: 0.3s ease-out;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.wp-block-button__link::after {
  content: ">";
  margin-left: 10px;
  font-weight: 100;
  font-size: 2em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transform: translateY(-2px) translateX(5px);
}

/*Query posts*/
.wp-block-query>ul>li>.wp-block-group { height: 100%;}
.wp-block-query>ul>li>.wp-block-group .wp-block-read-more:hover { color: var(--kk-blue) }

/*ul*/
ul.wp-block-list { list-style: none; }
ul.wp-block-list li {
  position: relative;
  padding-left: 20px;
}
ul.wp-block-list li::before {
  position: absolute;
  left: 0;
  content: "✔";
  color: var(--kk-blue);
  font-weight: bold;
  flex-shrink: 0;
}

/*slide in effect*/
.slide-in-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

img.slide-in-right {
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, 
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}
.slide-in-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/*trang danh mục - sub category*/
.subcategories-horizontal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  max-width: var(--wp--style--global--wide-size, 1350px);
}
.subcategories-horizontal-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 6px 14px;
  background-color: var(--wp--preset--color--base-2, #f0f0f0);
  border: 1px solid transparent;
  font-size: 13px;
}
.subcategories-horizontal-list li:not(.active) a:hover { background-color: #ddd; }
.subcategories-horizontal-list li.active a {
  background-color: var(--kk-blue); 
  color: #ffffff;
}
.subcategories-horizontal-list li.active a .cat-count { opacity: 0.9; }