/* Simple shared nav */
.atl-nav-wrap {
  background: linear-gradient(135deg, #1f7a52, #1f6b47);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);  /* Giảm bóng đổ */
  position: sticky;
  top: 0;
  z-index: 2000;
}

.atl-nav {
  max-width: var(--atl-max-width);
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 2001;
}

.atl-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: translateY(2px);
}
.atl-logo img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.atl-menu-toggle {display: none;}
.atl-menu-btn {display: none; cursor: pointer; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.32); border-radius: 6px; background: rgba(255,255,255,0.08);}
.atl-menu-btn span, .atl-menu-btn::before, .atl-menu-btn::after {display: block; width: 18px; height: 2px; background: #f2fff7; border-radius: 2px; content: '';}
.atl-menu-btn span {margin: 3px 0;}
.atl-links {display: flex; align-items: center; gap: 9px; list-style: none; margin: 0; padding: 0; font-size: 13px;}
.atl-links a {text-decoration: none; color: #e9f6ee; font-weight: 600; pointer-events: auto; padding: 7px 8px; border-bottom: 0; transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease; border-radius: 999px;}
.atl-links a:hover {color: #ffffff; background: rgba(255,255,255,0.16);}
.atl-links a.active {color: #ffffff; background: rgba(255,255,255,0.22);}
.atl-brand-text {display: none;}

/* Dropdown */
.atl-has-submenu { position: relative; }
.atl-has-submenu > a::after {
  content: "▾";
  font-size: 10px;
  margin-left: 4px;
}
.atl-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: linear-gradient(135deg, #1f7a52, #12573b);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border-radius: 10px;
  z-index: 2100;
}
.atl-submenu li { width: 100%; }
.atl-submenu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  white-space: normal;
  border-radius: 0;
}

@media (min-width: 769px) {
  .atl-has-submenu:hover > .atl-submenu { display: block; }
}

@media (max-width: 768px) {
  .atl-nav-wrap {
    background: linear-gradient(135deg, rgba(31,122,82,0.95), rgba(18,87,59,0.95));
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  }
  .atl-nav {
    padding: 8px 12px;
    gap: 10px;
  }
  .atl-logo img {
    height: 32px;
  }
  .atl-menu-btn {display: inline-flex;}
  .atl-menu-btn {width: 32px; height: 32px; border-radius: 8px;}
  .atl-links {position: absolute; top: 48px; left: 0; right: 0; background: linear-gradient(135deg, #1f7a52, #12573b); flex-direction: column; align-items: flex-start; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.16); display: none; z-index: 2001;}
  .atl-links li {width: 100%;}
  .atl-links a {display: block; width: 100%; padding: 8px 10px; border: 0;}
  .atl-links a.active {background: rgba(255,255,255,0.18); border-radius: 999px; padding: 10px 12px;}
  .atl-menu-toggle:checked + label + ul {display: flex;}
  .atl-has-submenu > .atl-submenu {
    position: static;
    display: block;
    padding-left: 10px;
    box-shadow: none;
    background: transparent;
  }
  .atl-submenu a {
    padding-left: 14px;
    font-size: 13px;
    opacity: 0.9;
  }
  .atl-brand-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #e9f6ee;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.95;
  }
  @media (max-width: 360px) {
    .atl-brand-text {display: none;}
  }
}

/* Chat widget */
.atl-chat-launcher {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 2400;
  min-width: 72px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #28a067, #1f6b47);
  color: #ffffff;
  font-weight: 700;
  font-size: 19px;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 12px 24px rgba(18,90,64,0.26), 0 0 0 1px rgba(12,42,31,0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.atl-chat-launcher:hover {
  background: linear-gradient(135deg, #2eb776, #145034);
  box-shadow: 0 14px 28px rgba(18,90,64,0.3), 0 0 0 1px rgba(12,42,31,0.12);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transform: translateY(-1px) scale(1.02);
}
.atl-chat-launcher:active {transform: translateY(1px) scale(0.98);}
.atl-chat-launcher:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.36), 0 0 0 4px rgba(84,196,152,0.35);
}
.atl-chat-launcher span:not(.sr-only) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.atl-chat-launcher .atl-chat-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 2px 6px rgba(12,42,31,0.25);
}
.atl-chat-launcher .atl-chat-label-short {display: none !important;}
.atl-chat-launcher .atl-chat-label-full {display: inline-flex !important;}

@media (max-width: 640px) {
  .atl-chat-launcher .atl-chat-label-short {display: inline-flex !important;}
  .atl-chat-launcher .atl-chat-label-full {display: none !important;}
  .atl-chat-launcher {
    height: 40px;
    padding: 0 14px;
    gap: 8px;
    font-size: 18px;
  }
  .atl-chat-launcher .atl-chat-label {font-size: 13px;}
}
.atl-chat-launcher.is-hidden {display: none;}

.atl-chat-panel {
  position: fixed;
  bottom: 16px;
  right: 18px;
  width: 320px;
  max-width: calc(100vw - 24px);
  height: 75vh;
  max-height: 75vh;
  background: #f7faf8;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: none;
  z-index: 2400;
  padding: 0;
}
.atl-chat-panel.is-open {display: block;}
.atl-chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(135deg, #0f7a50, #0c6240);
  color: #f3fbf6;
  font-weight: 800;
  letter-spacing: 0.2px;
  gap: 10px;
  border-radius: 12px 12px 8px 8px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
.atl-chat-head-info {display: flex; align-items: center; gap: 10px;}
.atl-chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e9f7f0;
  color: #0c5536;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.atl-chat-title {font-size: 13.5px; line-height: 1.2;}
.atl-chat-sub {display: none;}
.atl-chat-close {
  background: transparent;
  color: #f5fbf7;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.atl-chat-close:hover {background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4);}
.atl-chat-close:active {transform: scale(0.96);}
.atl-chat-close:focus-visible {outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px;}
.atl-chat-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: calc(100% - 44px);
  background: #f7faf7;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.atl-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  background: linear-gradient(180deg, #f8faf8 0%, #eef4ef 100%);
}
.atl-chat-messages.is-empty {
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: 14px;
}
.atl-chat-messages::-webkit-scrollbar {width: 6px;}
.atl-chat-messages::-webkit-scrollbar-thumb {background: #cbd5e1; border-radius: 6px;}
.atl-chat-messages::-webkit-scrollbar-track {background: transparent;}
.atl-chat-msg {display: flex;}
.atl-chat-msg.is-user {justify-content: flex-end;}
.atl-chat-msg.is-bot {justify-content: flex-start;}
.atl-chat-bubble {
  max-width: 90%;
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  background: #cfe9d9;
  color: #0c2a1f;
}
.atl-chat-msg.is-bot .atl-chat-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}
.atl-chat-msg.is-user .atl-chat-bubble {box-shadow: 0 6px 14px rgba(15,81,50,0.1);}
.atl-typing .atl-chat-bubble {min-width: 54px;}
.atl-typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.atl-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0c2a1f;
  opacity: 0.4;
  animation: atlTyping 1s infinite ease-in-out;
}
.atl-typing-dots span:nth-child(2) {animation-delay: 0.15s;}
.atl-typing-dots span:nth-child(3) {animation-delay: 0.3s;}

@keyframes atlTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
  40% { transform: translateY(-3px); opacity: 0.8; }
}
.atl-chat-msg + .atl-chat-msg.is-bot {margin-top: 2px;}
.atl-chat-empty {text-align: center; color: #64748b; font-size: 13px;}
.atl-chat-status {padding: 4px 12px; font-size: 12px; color: #0f5132; opacity: 0.8;}
.atl-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px;
}
.atl-chat-action {
  border: 1px solid #c4e3d4;
  background: #f5fbf8;
  color: #0f5132;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.atl-chat-action:hover {background: #e9f7ef; border-color: #9ed2b4;}
.atl-chat-action:active {transform: translateY(1px);}
.atl-chat-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px;
  background: #f8faf8;
  border-top: 1px solid #e2e8f0;
  position: sticky;
  bottom: 0;
}
.atl-chat-form textarea {
  width: 100%;
  resize: none;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px; /* tránh iOS zoom khi focus */
  line-height: 1.4;
  font-family: inherit;
  min-height: 36px;
  flex: 1 1 auto;
}
.atl-chat-form button {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #1f7a52;
  background: #1f7a52;
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(31, 122, 82, 0.25);
}
.atl-chat-form button:hover {background: #175c3e; border-color: #175c3e;}
.atl-chat-form button:disabled {opacity: 0.6; cursor: not-allowed;}
.atl-chat-form button:active {transform: translateY(1px);}
.atl-chat-form button svg {width: 15px; height: 15px;}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.atl-chat-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  z-index: 2300;
}
.atl-chat-overlay.is-open {
  opacity: 0;
  pointer-events: auto;
}
@media (max-width: 640px) {
  .atl-chat-panel {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    inset: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: env(safe-area-inset-top, 0);
  }
  .atl-chat-launcher {bottom: 12px; right: 12px;}
}
.atl-chat-open {
  overflow: hidden;
  height: 100vh;
}

/* Global font cleanup: force a single stack to avoid Google Sites font clutter */
:root {
  --atl-font-heading: 'Merriweather', 'Arial', sans-serif;
  --atl-font-body: 'Merriweather', 'Arial', sans-serif;
}
body,
.zfr3Q, .C9DxTc, .qnVSj, .Glwbz, .OmQG5e, .duRjpb, .JYVBee, .aHM7ed, .aw5Odc, .qLrapd {
  font-family: var(--atl-font-body) !important;
}
h1, h2, h3, h4, h5, h6,
.yZbIUe, .JYVBee, .duRjpb {
  font-family: var(--atl-font-heading) !important;
  font-weight: 700;
}


/* Hide leftover Google Sites chrome that adds the black bar */
body {margin: 0 !important; padding-top: 0 !important;}
header#atIdViewHeader,
.BbxBP,
.M63kCb,
.Xpil1b,
.xgQ6eb,
.IFuOkc,
.O13XJf,
.eBSUbc,
.jsHFaf,
.Wnc78e,
.R3Gmyc,
.irqLRd,
nav.NpD4ec {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Extra Google Sites wrappers that still render the black bar */
.VLoccc,
.Pvc6xe,
.TlfmSc,
.zDUgLc,
.TxnWlb,
.QDWEj {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
