* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body{
    overflow-x: hidden;
  }
.mentors-section {
    margin: 20px auto;
    padding: 0 20px;
}

.heading h4 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 12px;
    color: rgb(31, 30, 30);
}

.intro {
    text-align: center;
    font-size: 18px;
    line-height: 28px;
    max-width: 700px; /* 🔹 previous 45% broke layout on small screens */
    margin: 0 auto 35px;
    color: rgb(51, 50, 50);
}

.mentorWrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* 🔹 FULLY responsive */
    gap: 28px;
    justify-items: center;
}

.mentor {
    background: white;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s;
}

.mentor:hover {
    transform: translateY(-5px);
}

.mentorImage {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.mentorInfo {
    padding-top: 6px;
}

.mentorName {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.mentorTag {
    background-color: #ff69b4;
    color: white;
    border: none;
    padding: 6px 18px;
    font-size: 14px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.mentorBio {
    font-size: 14px;
    color: rgb(49, 48, 48);
    line-height: 21px;
    margin-bottom: 14px;
}

.mentorConnect {
    background-color: #8A00C4;
    color: white;
    border: none;
    padding: 10px 22px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.mentorConnect:hover {
    background-color: #ff69b4;
}

.findMentorBtn {
    text-align: center;
    margin-top: 28px;
}

#openFormBtn {
    padding: 12px 24px;
    background: white;
    border: 1.5px solid rgba(188, 19, 254);
    color: rgba(188, 19, 254);
    cursor: pointer;
    font-size: 15px;
    border-radius: 6px;
}

#openFormBtn:hover {
    background: rgba(188, 19, 254);
    color: white;
}

/* mentors filter section code */
.filterButtons {
    text-align: center;
    margin-bottom: 28px;
}

.filterBtn {
    padding: 8px 18px;
    border: 1px solid #8A00C4;
    background: white;
    color: #8A00C4;
    margin: 6px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 15px;
}

.filterBtn:hover,
.filterBtn.active {
    background: #8A00C4;
    color: white;
}


/* mentor form styling */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

.container {

  max-width: 650px;
  margin: 0 auto;
  display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 25%; top: 10%;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: transparent;

}
.container::-webkit-scrollbar {
  width: 0px;  /* removes scrollbar space */
  background: transparent; /* optional: transparent track */
}



.form {

  background: white;

  padding: 35px;

  border-radius: 25px;

  box-shadow: 0 5px 30px rgba(0,0,0,0.15);

}



/* HEADINGS */

.FormHead{

  text-align: center;

  font-size: 28px;

  margin-bottom: 10px;

}



.subtitle {

  text-align: center;

  color: #555;

  margin-bottom: 25px;

}



h3 {

  margin: 18px 0 10px;

}



/* INPUTS */

.input-group input,

textarea,

select {

  width: 100%;

  padding: 15px;

  border-radius: 10px;

  border: 1px solid #d7d7d7;

  margin-bottom: 18px;

  font-size: 15px;

}



textarea {

  height: 90px;

  resize: none;

}



/* TWO COLUMNS */

.two-col {

  display: flex;

  gap: 25px;

  align-items: flex-start;

}



.two-col input,

.two-col select {

  width: 100%;
  padding: 15px;
   border-radius: 10px;
  border: 1px solid #d7d7d7;

}



/* CHECKBOX & RADIO ALIGNMENT FIX */

label {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 8px;

  font-size: 15px;

  color: #333;

}



input[type="checkbox"],

input[type="radio"] {

  width: 18px;

  height: 18px;

}



/* EXPERIENCE GRID */

.experience-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px 25px;

}



/* SUBMIT BUTTON */

.submit-btn {

  width: 100%;

  padding: 18px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(135deg, #ff4bc8, #b45cff);

  color: white;

  font-size: 18px;

  font-weight: 600;

  margin-top: 15px;

  cursor: pointer;

}



.submit-btn:hover {

  opacity: 0.9;

}

.modal-content{
     background-color: #fff;
      margin: 10% auto;
      padding: 20px;
      border-radius: 8px;
      width: 600px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#footer {
  width: 100%;         
  margin: 0;            
  padding: 0;           
  overflow: visible; 
  box-sizing: border-box; 
}