/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(143, 50%, 16%);
  --first-color-light: hsl(29, 80%, 70%);
  --black-color: #9bccc3;   /*===============b3d8d1 ===============*/
  --hod-color: #458780;
  --asst-color: #98ae9e;
  --text-color: hsl(0, 0%, 100%);
  --body-color: hsl(29, 100%, 99%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Poppins", sans-serif;
  --h3-font-size: 1.5rem;
  --smaller-font-size: 0.75rem;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  background-color: var(--text-color);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}
/*=============== FACULTY CARDS (responsive, compact) ===============*/

.custom-box-hod,
.custom-box {
  width: 100%;
  height: 100%;
}
.custom-box-hod,
.custom-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 280px;
  min-width: 0;
  margin: 0 auto;
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: 0 4px 16px hsla(153, 76%, 8%, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-box-hod { background-color: var(--hod-color); }
.custom-box     { background-color: var(--black-color); }

.custom-box-hod:hover,
.custom-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px hsla(153, 76%, 8%, 0.28);
}

/* Photo */
.circle {
  width: clamp(100px, 50%, 130px);   /* smaller on laptops */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--first-color);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
  margin: 0.2rem auto 0.7rem;
  flex-shrink: 0;
}
.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Name */
.circle-text {
  color: var(--first-color);
  font-size: clamp(1rem, 0.6vw + 0.85rem, 1.15rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.2rem;
}

/* Designation: no reserved height, no extra gap */
.profession-text {
  color: var(--text-color);
  font-size: clamp(0.78rem, 0.3vw + 0.7rem, 0.88rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0 0 0.45rem;
}

/* Divider */
.custom-box-hod hr,
.custom-box hr {
  width: 70%;
  border: 0;
  border-top: 2px solid var(--first-color);
  opacity: 0.35;
  margin: 0 auto 0.5rem;
}

/* Emails */
.email-text {
  color: var(--text-color);
  font-size: clamp(0.7rem, 0.3vw + 0.64rem, 0.8rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 0 0 0.7rem;
}
.email-text i {
  margin-right: 0.3rem;
  font-size: 0.9em;
  vertical-align: -1px;
}

.cv-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.45rem 1.2rem;
  font-size: clamp(0.75rem, 0.3vw + 0.7rem, 0.85rem);
  font-weight: 500;
  color: var(--text-color);
  background: var(--first-color);
  border-radius: 2rem;
}
.cv-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}
.cv-button:hover::after { left: 125%; }

/* Light card: dark text for readability, same palette */
.custom-box .profession-text,
.custom-box .email-text { color: var(--first-color); }

/* Phones: slightly larger photo since cards are full width */
@media (max-width: 575.98px) {
  .circle { width: 120px; }
}
@media (max-width: 360px) {
  .custom-box-hod, .custom-box { max-width: 100%; border-radius: 1rem; }
}

/* TTS label shown in front of the designation */
.tts-label {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  margin-right: 0.3rem;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--text-color);
  background: var(--first-color);
  border-radius: 2rem;
  vertical-align: 1px;
}