/*
Theme Name: KTG Group
Theme URI: https://ktcg.vn/
Description: Theme WordPress độc lập dành cho website KTG Group. Không phụ thuộc Hello Elementor hoặc child theme khác.
Author: KTG Group
Version: 7.0.0
Text Domain: ktg-group
Requires at least: 6.0
Requires PHP: 7.4
*/

/*
 * KTG Group standalone base.
 * Các stylesheet theo từng màn hình nằm trong assets/css/ và được enqueue có điều kiện.
 * Khối này thay thế các reset cơ bản trước đây do parent theme cung cấp.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: #1f2937;
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
}

img {
  height: auto;
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font: inherit;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

a {
  background-color: transparent;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

/* Fallback layout for ordinary WordPress content that does not use a KTG custom template. */
.ktg-default-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 61, 110, .12);
  background: #fff;
}

.ktg-default-header__inner,
.ktg-default-main,
.ktg-default-footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ktg-default-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.ktg-default-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #103d72;
  font-weight: 800;
  text-decoration: none;
}

.ktg-default-brand img,
.ktg-default-header .custom-logo {
  display: block;
  width: auto;
  max-height: 58px;
}

.ktg-default-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ktg-default-nav a {
  color: #17385d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ktg-default-main {
  min-height: 55vh;
  padding-block: 56px;
}

.ktg-default-article {
  max-width: 920px;
  margin-inline: auto;
}

.ktg-default-article__title {
  margin: 0 0 24px;
  color: #103d72;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
}

.ktg-default-content {
  font-size: 17px;
  line-height: 1.75;
}

.ktg-default-content img {
  max-width: 100%;
}

.ktg-default-footer {
  padding: 30px 0;
  background: #0c315d;
  color: #fff;
}

.ktg-default-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.ktg-default-footer a {
  color: inherit;
}

.ktg-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ktg-screen-reader-text:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #103d72;
  font-weight: 700;
}

@media (max-width: 900px) {
  .ktg-default-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .ktg-default-nav ul {
    gap: 12px 16px;
  }
}
