/* 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; }
.k2t-nav-links { display: flex; gap: 18px; margin-left: 30px; list-style: none; flex-wrap: wrap; }
.k2t-nav-links li { position: relative; }
.k2t-nav-links a { 
  text-decoration: none; 
  color: #80336b; 
  font-weight: 600; 
  font-size: 14px;
  padding: 6px 10px;
  display: block; 
}
.k2t-nav-links a:hover { color: #f7b948; }
.k2t-menu-icon { display: none; font-size: 26px; cursor: pointer; color: #80336b; margin-left: 20px; }
#k2t-nav-toggle { display: none; }

/* Desktop dropdowns */
.k2t-nav-links li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 1200;
}
.k2t-nav-links li ul li a {
  padding: 8px 15px;
  white-space: nowrap;
}
.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;
  }

  /* Force two-column layout on mobile */
  .k2t-header-top,
  .k2t-header-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two equal columns */
    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; } /* smaller logo for mobile */
  .k2t-search-form { flex: 1; margin-left: 0; }
  .k2t-search-form input { width: 150px; max-width: 150px; }

  .k2t-nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1500;
  }

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

  .k2t-nav-links li ul {
    display: none;
    flex-direction: column;
    position: static;
    background: #f9f9f9;
    box-shadow: none;
    padding-left: 15px;
  }
  .k2t-nav-links li.open > ul {
    display: flex;
  }

  .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; }
