body{
  font-size: 16px!important;
}
.party-container {
  display: block;
  max-width: 1200px;
  margin: auto;
  background: white;
  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
#party-container{
  margin-bottom: 5em;
}
.party-section{
  margin: 1em 0;
}
/* .test{
  width: 300px;
  height: 1000px;
} */
.party-info-intro{
  margin: auto;
  max-width: 800px;
  padding: 2em;
  text-align: left;
}
/* Nav */
#party-nav {
  position: fixed;
  bottom: 10%;
  left: 0;
  background: #ffffffed;
  padding: 1em 1.5em;
  border-radius: 0 10px 10px 0;
  z-index: 10;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
/* ---- Navigation List ---- */
#nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 1em;
}
/* ---- Navigation Items ---- */
#nav-list li {
  width: 30px;
  height: 40px;
  overflow: visible; 
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Ensure logo remains the same */
.nav-logo-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo{
  width: 100%;
  height: 100%;
  object-fit: contain; 
  display: block;
}
/* ---- Tooltip for Party Name ---- */
.nav-tooltip {
  position: absolute;
  z-index: 105;
  left: 0; /* Align tooltip to the left edge */
  transform: translateY(-5px);
  z-index: 105;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  pointer-events: none; 
}
/* Show tooltip on hover */
#nav-list li:hover .nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0%) translateY(-100%);
}
/* ---- Logo & Intro ---- */
.left-panel {
  padding: 40px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-left: 5px solid #0072CE;
}
.left-panel img {
  width: 120px;
  margin-bottom: 20px;
}
.left-panel h1 {
  font-size: 2rem;
  margin: 0;
}
.left-panel h2 {
  font-size: 18px;
  color: gray;
  font-weight: normal;
  margin-bottom: 15px;
}
.party-description{
  text-align: left;
  padding:1em 2em;
}
.basic-info{
  width: 100%;
  max-width: 500px;
  margin: auto;
}
/* ---- Right Panel ---- */
.right-panel {
  flex: 1.5;
  padding: 40px;
  background: #f9f9f9;
  border-left: 5px solid #0072CE;
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 60%;
}
/* ---- Stats Section ---- */
.stats {
  display: block;
  justify-content: space-between;
  max-width: 500px;
  padding:1em 2em;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}
.stats div {
  text-align: center;
  border-bottom: 1px solid #dbdbdb;
  margin-top: 0.5em;
  font-size: 0.9rem;
}
.stats div:first-child {
  margin-bottom: 0.5em;
}
.stats div:last-child {
  border-bottom: none;
}
.stats strong {
  font-size: 18px;
}
.stats .highlight {
  color: red;
  font-weight: bold;
}
.highlight-font{
  font-size: 1.2rem;
}
.parliament-note {
  font-size: 0.9rem;
  color: gray;
  background-image: url();
  margin: auto;
  line-height: 1.4;
  margin-bottom: 1em;
}
.parliament-no-seat {

  font-weight: bold;
  color: black;
}
.active-districts ul{
  padding-inline-start: 0;
 }
.active-districts ul li{
 list-style: none;
}
.keyword-btn {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 12px;
  background-color: #fff;
  color:#000;
  border: 1px solid #1c2129;
  text-decoration: none;
  font-size: 14px;
  border-radius: 25px;
}
.keyword-btn:hover {
  background-color: #1c2129;
  color: #fff !important;
}
/* ---- LEADERS SECTION ---- */
.team-grp h4{
  border-bottom: 1px solid #dbdbdb;
  padding: 0 0 0.5em 0;
  margin-bottom: 1em;
}
.other-members h4{
  border-bottom: 1px solid #dbdbdb;
  padding: 0 0 0.5em 0;
  margin-bottom: 1em;
}
.leader-container {
  text-align: center;
  margin-bottom: 30px;
}
.leader-container img {
  width: 150px; 
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ededed;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}
.leader-container p {
  font-size: 0.9rem;
  margin-top: 10px;
}
.member-name{
  font-size: 1.1rem;
}
/* ---- Team ---- */
.team-grid {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  padding-top: 1em;
  max-width: 100%; 
  margin: 0 auto;
}
.team-member {
  width: calc(25% - 20px); 
  max-width: 120px;
  text-align: center;
}
.team-member img {
  width: 80px;
  height: 80px;
  background-color: #ededed;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
.team-member p {
  font-size: 0.9rem;
  margin-top: 10px;
}
/* ---- Other Members Section ---- */
.other-members {
  margin-top: 20px;
  text-align: center;
}
.other-member {
  text-align: center;
}
.other-member img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  background-color: #ededed;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
.other-member p {
  font-size: 0.9rem;
  margin-top: 10px;
}
/* ---- Special Layout for People’s Alliance for Reform ---- */
.full-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
/* Adjusting leader grid so all leaders have the same size */
.full-grid .team-member {
  max-width: 150px;
  text-align: center;
}
.full-grid .team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) { /* Tablet (iPad) */
  .party-container {
      flex-direction: column; 
  }
  .basic-info {
    margin: auto;
  }
  .right-panel {
      border-left: 5px solid var(--primaryColor, #0072CE); 
  }
  .stats {
    margin: auto;
}
.party-info-intro {
  margin: 1em auto;
}
}

@media (max-width: 768px) { 
#party-nav {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 1em 0 0.5em 0;
  width: 100%;
  border-radius: 10px 10px 0 0;
  box-shadow: 0px 4px 10px rgb(0 0 0 / 28%);
}
#nav-list {
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.5em 1em;
  justify-content: center;
}
#nav-list li {
    width: 35px;
    height: 35px;
}
#nav-list li:hover .nav-tooltip {
  opacity: 0;
}
.nav-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain; 
  display: block;
}
.pap-logo {
  max-height: 120%;
}
  .party-info-intro{
    margin: 1em auto;
    padding: 0em 2em;
  }
  .left-panel {
      padding: 2em;
      display: block;
  }
  .right-panel {
      padding: 15px;
      border-left: none;
      border-left: 5px solid var(--primaryColor, #0072CE);
      background-size: 160%;
  }
  .stats {
    padding: 1.5em
  }
  .stats div {
    font-size: 1.3rem;
  }
  .party-description {
    padding: 0.5em;
  }
  .team-grid {
    gap: 10px;
  }
.team-member {
  width: calc(30% - 0px);
}
.full-grid .team-member img {
  width: 80px;
  height: 80px;
}
.member-name {
  font-size: 1.4rem;
}
.leader-container p {
  font-size: 1.1rem;
}
.team-member p {
  font-size: 1.1rem;
}
.highlight-font {
  font-size: 1.5rem;
}
.parliament-note {
  font-size: 1.1rem;
}
}
