/* =========================================
   GLOBAL LAYOUT
========================================= */
.container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 35px;
  width: 95%;
  max-width: 1280px;
  margin: 50px auto;
  padding-bottom: 40px;
}

/* =========================================
   SIDEBAR (LEFT PANEL)
========================================= */
.sidebar {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 22px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(1, 60, 116, 0.08);
  position: sticky;
  top: 100px;
  flex-shrink: 0; /* ensures sidebar width stays fixed */
}

.sidebar h3 {
  color: #013c74;
  margin-bottom: 18px;
  font-weight: 700;
  text-align: center;
  font-size: 1.2em;
  border-bottom: 2px solid #e2ecf5;
  padding-bottom: 8px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin-bottom: 35px;
}

.sidebar li {
  background: #f3f9ff;
  color: #013c74;
  padding: 12px 15px;
  margin-bottom: 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.sidebar li:hover,
.sidebar li.active {
  background: #013c74;
  color: #ffd700;
  border: 1px solid #ffd700;
}

/* FORM SECTION */
#membershipForm {
  margin-top: 20px;
}

#membershipForm label {
  display: block;
  font-size: 0.9em;
  color: #013c74;
  margin-bottom: 5px;
  font-weight: 600;
}

#membershipForm input,
#membershipForm select {
  width: 100%;
  padding: 9px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #c8d8eb;
  font-size: 0.9em;
}

#membershipForm button {
  background: #013c74;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

#membershipForm button:hover {
  background: #ffd700;
  color: #013c74;
}

/* =========================================
   MAIN CONTENT AREA
========================================= */
.main {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  min-height: 550px;
  color: #013c74;
  position: relative;
  z-index: 2;
}

.main h2 {
  color: #013c74;
  margin-bottom: 25px;
  font-size: 1.7em;
  font-weight: 700;
  text-align: left;
}

/* =========================================
   MEMBERSHIP INFO (QUALIFICATION, CRITERIA, BENEFITS)
========================================= */
.membership-info {
  margin-top: 40px;
  background: #ffffff; /* switched from light blue for better contrast */
  border-radius: 14px;
  padding: 35px 40px;
  border: 1px solid #d6e3f2;
  box-shadow: 0 4px 12px rgba(1, 60, 116, 0.08);
  position: relative;
  z-index: 2;
}

.membership-info h3 {
  color: #013c74;
  font-size: 1.35em;
  font-weight: 700;
  margin-bottom: 14px;
  border-left: 4px solid #ffd700;
  padding-left: 12px;
}

.membership-info h3:first-of-type {
  margin-top: 0;
}

/* --- Improved text and spacing for visibility --- */
.membership-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 28px;
}

.membership-info ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #1e3a56; /* darker blue-gray for better readability */
  line-height: 1.7;
  background: transparent;
}

.membership-info ul li::before {
  content: "✔";
  color: #013c74;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.6;
}

.membership-info ul li:last-child {
  margin-bottom: 0;
}

/* --- Hover effect for interactivity --- */
.membership-info ul li:hover {
  color: #013c74;
  transform: translateX(3px);
  transition: all 0.2s ease-in-out;
}


/* =========================================
   REGISTERED MEMBER CARDS — CLEAN VERSION
========================================= */
.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 35px;
  margin-top: 30px;
  justify-items: center;
  align-items: stretch;
}

/* CARD BASE */
.card {
  background: #f8fbff; /* ✅ no overlay */
  border: 1px solid #cfe1f0;
  border-radius: 20px;
  padding: 40px 25px 35px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(1, 60, 116, 0.08);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 320px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: visible; /* ✅ ensures no pseudo overlay clipping */
}

/* REMOVE ANY OLD OVERLAY EFFECT */
.card::before,
.card::after {
  content: none !important;
  background: none !important;
  display: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* CARD HOVER EFFECT */
.card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: #0254a2;
  box-shadow: 0 8px 18px rgba(1, 60, 116, 0.15);
}

/* IMAGE */
.card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #013c74;
  margin-bottom: 18px;
  background: #fff;
  transition: all 0.3s ease;
}

.card:hover img {
  transform: scale(1.08);
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
}

/* TEXT */
.card h4 {
  color: #012a56;
  font-size: 1.15em;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.card p {
  color: #34526f;
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.4;
  text-align: center;
  word-wrap: break-word;
}

/* JOINED DATE LINE */
.card p.joined {
  color: #4b5c75;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 6px;
  margin-bottom: 0;
}

/* HOVER COLOR CHANGE */
.card:hover h4,
.card:hover p {
  color: #013c74;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
  .card {
    max-width: 100%;
    min-height: 340px;
    padding: 30px 20px;
  }

  .card h4 {
    font-size: 1.05em;
  }

  .card p {
    font-size: 0.9rem;
  }
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .member-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .member-cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 30px 20px;
    min-height: 320px;
  }

  .card img {
    width: 100px;
    height: 100px;
  }
}
