/* HEADER */
.k2t-header {
  display: flex;
  flex-direction: row; /* desktop stays horizontal */
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.k2t-logo img { height: 50px; }

.k2t-login-btn {
  background-color: #80336b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  margin-left: 15px;
  cursor: pointer;
}

.k2t-search-form {
  display: inline-flex;
  align-items: center;
  margin-left: 20px;
}

.k2t-search-form input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  width: 200px;
}

.k2t-search-form button {
  padding: 8px 12px;
  background: #80336b;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.k2t-search-form img {
  width: 16px;
  height: 16px;
}

/* New row containers */
.k2t-header-top,
.k2t-header-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* NAV */
.k2t-nav-container {
  display: flex;
  align-items: center;
  position: relative;
}

#k2t-nav-toggle {
  display: none;
}

.k2t-menu-icon {
  display: block;
  font-size: 26px;
  cursor: pointer;
  color: #80336b;
  margin-left: 20px;
}

/* Desktop hamburger drawer - opens from right */
.k2t-nav-links {
  display: none;
  position: fixed;
  right: 0;
  left: auto;
  top: 0;
  height: 100%;
  width: 280px;
  background: #fff;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  margin: 0;
  list-style: none;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1500;
  box-shadow: -6px 0 16px rgba(0,0,0,0.15);
  box-sizing: border-box;
}

#k2t-nav-toggle:checked ~ .k2t-nav-links {
  display: flex;
  transform: translateX(0);
}

.k2t-nav-links li {
  position: relative;
  list-style: none;
}

.k2t-nav-links a {
  text-decoration: none;
  color: #80336b;
  font-weight: 600;
  font-size: 18px;
  padding: 8px 10px;
  display: block;
}

.k2t-nav-links a:hover {
  color: #f7b948;
}

/* Drawer dropdowns */
.k2t-nav-links li ul {
  display: none;
  position: static;
  background: #f9f9f9;
  list-style: none;
  padding: 8px 0 8px 14px;
  margin: 4px 0 8px;
  box-shadow: none;
  min-width: 0;
}

.k2t-nav-links li ul li a {
  padding: 7px 10px;
  white-space: normal;
  font-size: 15px;
}

.k2t-nav-links li:hover > ul {
  display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
  .k2t-header {
    flex-direction: column; /* only mobile stacks */
    align-items: stretch;
    padding: 10px 15px;
  }

  .k2t-header-top,
  .k2t-header-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
  }

  .k2t-logo,
  .k2t-search-form {
    justify-self: start;
  }

  .k2t-login-btn,
  .k2t-menu-icon {
    justify-self: end;
  }

  .k2t-logo img {
    height: 40px;
  }

  .k2t-search-form {
    flex: 1;
    margin-left: 0;
  }

  .k2t-search-form input {
    width: 150px;
    max-width: 150px;
  }

  .k2t-nav-links {
    width: 280px;
    right: 0;
    left: auto;
    transform: translateX(100%);
  }

  #k2t-nav-toggle:checked ~ .k2t-nav-links {
    display: flex;
    transform: translateX(0);
  }

  .k2t-menu-icon {
    display: block;
  }
}

/* MODAL */
.k2t-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.k2t-modal-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  font-family: 'Poppins', sans-serif !important;
  position: relative;
}

.k2t-modal-box h2 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

.k2t-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.k2t-modal-toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.k2t-modal-toggle-buttons button {
  background-color: #80336b;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.k2t-modal-box input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif !important;
}

.k2t-toggle-container {
  position: relative;
}

.k2t-toggle-container input {
  padding-right: 60px;
}

.k2t-toggle-container button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

.k2t-disclosure {
  font-size: 13px;
  text-align: left;
  margin-top: 10px;
}

#k2t_pwWarning {
  font-size: 13px;
  color: red;
  display: none;
  text-align: left;
}

#k2t_pwCriteria {
  font-size: 13px;
  text-align: left;
  list-style: none;
  padding-left: 0;
  display: none;
}

.k2t-disabled {
  background-color: gray !important;
  cursor: not-allowed !important;
}

.k2t-enabled {
  background-color: #80336b !important;
  cursor: pointer !important;
}

.k2t-hidden {
  display: none;
}

.k2t-small {
  font-size: 13px;
  margin-top: 10px;
}
/* =========================================
   SLIDING PANEL MENU (DESKTOP)
========================================= */

.k2t-nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  overflow: hidden;
  display: block;
}

#k2t-nav-toggle:checked ~ .k2t-nav-links {
  transform: translateX(0);
}

.k2t-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.k2t-menu-panel.active {
  transform: translateX(0);
}

.k2t-panel-btn,
.k2t-panel-back {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  color: #80336b;
}

.k2t-panel-back {
  font-size: 16px;
  margin-bottom: 10px;
}

.k2t-menu-panel h3 {
  margin: 10px 0 15px;
  font-size: 20px;
  color: #80336b;
}

.k2t-menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.k2t-menu-panel ul li a {
  display: block;
  padding: 10px 0;
  color: #80336b;
  text-decoration: none;
  font-size: 16px;
}