/* ================= AUTHORS SECTION (HOME) ================= */



/* ===== AUTHORS SECTION – CARD STYLE ONLY ===== */
.authors-section {
  max-width: 1300px;          /* 🔥 left-right chhota */
  margin: 60px auto;          /* center + upar niche gap */
  padding: 40px 30px;
  background: #f9f9f9;
  border-radius: 18px;        /* 🔥 rounded corners */
  border: 1px solid #e6e6e6;  /* 🔥 light border */
  box-shadow: 0 10px 28px rgba(0,0,0,0.08); /* 🔥 soft shadow */
}



.authors-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #111;
  margin-top: 0;
}

/* GRID */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 200px));
  gap: 30px;

  /* 🔥 MAIN FIX */
  width: max-content;
  margin: 0 auto;     /* poora grid center */
}


/* AUTHOR CARD */
.author-card {
  background: #FFFFF0;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.12);
}

.author-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

.author-card h3 {
  font-size: 1.05rem;
  color: #111;
  margin-bottom: 8px;
}

.author-card .qualification {
  font-size: 0.9rem;
  color: #444;
  font-weight: 600;
}

.author-card .short {
  font-size: 0.85rem;
  color: #777;
  margin-top: 4px;
}

.author-card.active {
  border: 2px solid #b74b4b;
  box-shadow: 0 12px 28px rgba(183, 75, 75, 0.35);
  transform: translateY(-4px);
}
/* ================= DETAILS BOX ================= */

.author-details {
  grid-column: 1 / -1;
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  gap: 30px;
  margin-top: 10px;
  box-shadow: 0 16px 36px rgba(183, 75, 75, 0.35);
  pointer-events: none;
  align-items: center;
}

.author-details img {
  width: 220px;
  height: 260px;
  border-radius: 16px;
  object-fit: cover;
}

.author-details-content h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: #111;
  text-align: center;
}

.author-details-content .qualification {
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
  text-align: center;
}

.author-details-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

/* ================= AUTHOR DETAILS CLOSE BUTTON ================= */

.author-details {
  position: relative;   /* cross ke liye required */
}

.author-details .close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b74b4b;      /* same red */
  color: #ffffff;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  pointer-events: auto;
}

.author-details .close-btn:hover {
  background: #8a0000;
}

.authors-section {
  padding-bottom: 80px;
}

.authors-section h2 {
  margin-top: 0;          /* 🔥 ye main culprit hota hai */
}

.authors-section {
  margin-top: 0;
}
/* ================= AUTHOR DETAILS HIGHLIGHT ================= */

.author-details {
  border: 2px solid #b74b4b;   /* same red as theme */
}

/* Optional: top accent bar (professional look) */
.author-details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #b74b4b;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.author-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-photo h3 {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 1.1rem;
  color: #111;
}

.author-photo .qualification {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

.about-author-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0%;
  margin-bottom: 0px;
  color: #8a0000;
}


/* ================= AUTHOR CONNECTOR TRIANGLE ================= */

.author-connector {
  position: absolute;
  top: -30px;
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 30px solid #b74b4b;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(183, 75, 75, 0.4));
  pointer-events: none;
}


/* MOBILE */
@media (max-width: 768px) {
  .author-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-details img {
    width: 180px;
    height: 220px;
  }

}

@media (max-width: 1024px) {
  .authors-grid {
    grid-template-columns: repeat(3, 220px);
    width: max-content;
    margin: 0 auto;
  }
}




@media (max-width: 600px) {

  .author-details {
    flex-direction: column;
    align-items: center;
    text-align: Center;
  }

  .author-details img {
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-bottom: 14px;
  }

    /* Name center */
  .author-details-content h3 {
    text-align: center;
  }

  /* Qualification center */
  .author-details-content .qualification {
    text-align: center;
  }

  .author-details-content p {
    text-align: justify;
  }
}


/* ================= MOBILE – AUTHORS SECTION FINAL ================= */

@media (max-width: 600px) {

  /* SECTION – FULL WIDTH, NO SIDE GAP */
  .authors-section{
    width: 100%;
    max-width: 100%;
    margin: 30px 0;          /* sirf upar-niche gap */
    padding: 24px 0;         /* left-right zero */
    border-radius: 0;        /* simple corner */
    box-shadow: none;        /* clean look */
    background: #f9f9f9;
  }

  /* HEADING */
  .authors-section h2{
    margin-bottom: 22px;
    padding: 0 16px;         /* text breathing space */
  }

  /* GRID – CENTERED CARDS */
  .authors-grid{
    display: grid;
    grid-template-columns: repeat(2, 160px); /* 2 cards */
    gap: 20px;

    width: max-content;      /* 🔥 grid shrink */
    margin: 0 auto;          /* 🔥 pure center */
  }

  /* CARD */
  .author-card{
    margin: 0;
  }
}
